The NetBSD Project

CVS log for src/sys/arch/arm/rockchip/rk_platform.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / arm / rockchip

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Apr 7 08:55:30 2023 UTC (20 months ago) by skrll
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +43 -43 lines
Rename ARM_PLATFORM to FDT_PLATFORM and make it available outside arm.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Aug 23 05:39:06 2022 UTC (2 years, 3 months ago) by ryo
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +62 -2 lines
Add initial support for RK3588 SoC (CRU and IOMUX)

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Nov 12 22:02:08 2021 UTC (3 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +92 -3 lines
arm: rockchip: Add support for RK3288 SoC.

The Rockchip RK3288 is a quad core Cortex-A17 SoC.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Sep 3 01:23:33 2021 UTC (3 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -14 lines
revert "make ahcisata(4) work on rk3399 (rockpro64)" from 23-06-2021.

this problem is known to affect more than AHCI, and a more general
solution has been commited now.

Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:05 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +15 -2 lines
Sync with HEAD.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Jun 23 00:56:41 2021 UTC (3 years, 5 months ago) by mrg
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +15 -2 lines
make ahcisata(4) work on rk3399 (rockpro64)

on rk3399, a marvell 9230 ahci sata card consistently takes between
1213 and 1216 milliseconds, the ahci spec says this should complete
in 1000 or fewer.

add a "pcie-reset-ms" uint32 property that ahcisata defaults to 1000
if not set, and the rockchip platform code sets to 2000.


ok @jmcneill

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:28 2021 UTC (3 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -3 lines
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:18 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +3 -2 lines
Sync with HEAD.

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 21:21:07 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +2 -3 lines
- FDT device enumeration now sets the device handle using CFARG_DEVHANDLE.
- fdtbus_device_register() is now obsolete, so G/C it.
- of_device_register() is now obsolete, so G/C it.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Feb 4 22:36:53 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -2 lines
Call acpi_device_register() / fdtbus_device_register() as approrpriate.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Sep 28 11:54:23 2020 UTC (4 years, 2 months ago) by jmcneill
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -4 lines
Get rid of a4x bus_space tag from fdtbus_attach_args. The only consumer
of this was various com(4) glue so modify all of that to use the new
com_init_regs_stride instead.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Jul 10 12:25:09 2020 UTC (4 years, 5 months ago) by skrll
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
Add support for KASAN on ARMv[67]

Thanks to maxv for many pointers and reviews.

Revision 1.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:05:55 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +71 -13 lines
Sync with HEAD

Revision 1.1.2.6: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:19 2018 UTC (6 years ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.1.2.5: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.5: +3 -4 lines
Sync with HEAD, resolve a couple of conflicts

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Oct 30 16:41:52 2018 UTC (6 years, 1 month ago) by skrll
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -4 lines
Retire fdt_putchar and ap_early_put_char in favour of uartputc.

Revision 1.1.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 20 06:58:26 2018 UTC (6 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.4: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.4: +3 -2 lines
Sync with head

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Oct 20 05:38:27 2018 UTC (6 years, 1 month ago) by ryo
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -2 lines
add missing .ap_mpstart for rk3399

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Oct 18 09:01:53 2018 UTC (6 years, 1 month ago) by skrll
Branches: MAIN
CVS tags: pgoyette-compat-1020
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -2 lines
Provide generic start code that assumes the MMU is off and caches are
disabled as per the linux booting protocol for ARMv6 and ARMv7 boards.
u-boot image type should be changed to 'linux' for correct behaviour.

The new start code builds a minimal "bootstrap" L1PT with cached access
disabled and uses the same table for all processors.  AP startup is
performed in less steps and more code is written in C.

The bootstrap tables and stack are placed into an (orphaned) section
"_init_memory" which is given to uvm when it is no longer used.

Various kernels have been converted to use this code and tested.  Some
boards were provided by TNF. Thanks!

The GENERIC kernel now boots on boards using the TEGRA, SUNXI and EXYNOS
kernels. The GENERIC kernel will also work on RPI2 using u-boot.

Thanks to martin@ and aymeric@ for testing on parallella and nanosoc
respectively

Revision 1.1.2.4: download - view: text, markup, annotated - select for diffs
Sun Sep 30 01:45:38 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.3: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.3: +5 -5 lines
Ssync with HEAD

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Sep 21 12:04:07 2018 UTC (6 years, 2 months ago) by skrll
Branches: MAIN
CVS tags: pgoyette-compat-0930
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
Centralise defparam CONSADDR, CONSPEED, CONMODE and CONADDR into
opt_console.h and adjust.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Sep 10 11:05:12 2018 UTC (6 years, 3 months ago) by ryo
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4 lines
cleanup aarch64 mpstart and fdt bootstrap
 * arm_cpu_hatch_arg is a bad idea. avoid serializing CPU startup, and eliminate arm_cpu_hatch_arg.
   in mpstart, resolve own cpu index using array of cpu_mpidr[] (aarch64)
 * add support fdt enable-method "spin-table"
 * add support fdt enable-method "brcm,bcm2836-smp" (for 32bit RaspberryPi)
 * use arm_fdt_cpu_bootstrap() instead of psci_fdt_bootstrap()
 * rename "arm/fdt/psci_fdt.h" to "arm/fdt/psci_fdtvar.h" because of conflict of include file for needs-flag
 * add devmap for cpu spin-table of raspberrypi3/aarch64
 * no need to force hatch APs for raspberrypi3/arm32 ifndef MULTIPROCESSOR.
 * fix to work pmap_extract(kerneltext/data/bss) even if before calling pmap_bootstrap

idea to use cpu_mpidr[] by jmcneill@. reviewd by skrll@. thanks.

Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:27 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.2: +68 -10 lines
Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Aug 12 16:48:05 2018 UTC (6 years, 4 months ago) by jmcneill
Branches: MAIN
CVS tags: pgoyette-compat-0906
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +60 -2 lines
Add support for Rockchip RK3399 SoC.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Aug 5 14:02:35 2018 UTC (6 years, 4 months ago) by skrll
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +10 -10 lines
Add prefixes to struct arm_platform{,_info} members.

No functional change.

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:39 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.1: +160 -0 lines
Sync with HEAD

Revision 1.1.2.1
Sat Jun 16 00:19:04 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
FILE REMOVED
Changes since revision 1.1: +0 -160 lines
file rk_platform.c was added on branch pgoyette-compat on 2018-06-25 07:25:39 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Jun 16 00:19:04 2018 UTC (6 years, 5 months ago) by jmcneill
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi, pgoyette-compat
Add initial support for Rockchip RK3328 SoC.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>