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


Default branch: MAIN


Revision 1.17 / (download) - annotate - [select for diffs], Fri Apr 7 08:55:30 2023 UTC (12 months, 1 week ago) by skrll
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.16: +43 -43 lines
Diff to previous 1.16 (colored)

Rename ARM_PLATFORM to FDT_PLATFORM and make it available outside arm.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Aug 23 05:39:06 2022 UTC (19 months, 3 weeks ago) by ryo
Branch: 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
Changes since 1.15: +62 -2 lines
Diff to previous 1.15 (colored)

Add initial support for RK3588 SoC (CRU and IOMUX)

Revision 1.15 / (download) - annotate - [select for diffs], Fri Nov 12 22:02:08 2021 UTC (2 years, 5 months ago) by jmcneill
Branch: MAIN
Changes since 1.14: +92 -3 lines
Diff to previous 1.14 (colored)

arm: rockchip: Add support for RK3288 SoC.

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

Revision 1.14 / (download) - annotate - [select for diffs], Fri Sep 3 01:23:33 2021 UTC (2 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.13: +2 -14 lines
Diff to previous 1.13 (colored)

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) - annotate - [select for diffs], Sun Aug 1 22:42:05 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.12: +15 -2 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Sync with HEAD.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jun 23 00:56:41 2021 UTC (2 years, 9 months ago) by mrg
Branch: 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
Changes since 1.12: +15 -2 lines
Diff to previous 1.12 (colored)

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) - annotate - [select for diffs], Sat Apr 24 23:36:28 2021 UTC (2 years, 11 months ago) by thorpej
Branch: 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
Changes since 1.11: +2 -3 lines
Diff to previous 1.11 (colored)

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) - annotate - [select for diffs], Sat Apr 3 22:28:18 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Sync with HEAD.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 21:21:07 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.11: +2 -3 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

- 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) - annotate - [select for diffs], Thu Feb 4 22:36:53 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored)

Call acpi_device_register() / fdtbus_device_register() as approrpriate.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Sep 28 11:54:23 2020 UTC (3 years, 6 months ago) by jmcneill
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.9: +2 -4 lines
Diff to previous 1.9 (colored)

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) - annotate - [select for diffs], Fri Jul 10 12:25:09 2020 UTC (3 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Add support for KASAN on ARMv[67]

Thanks to maxv for many pointers and reviews.

Revision 1.1.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:55 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.1: +71 -13 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Revision 1.1.2.6 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:19 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.1.2.5: +3 -4 lines
Diff to previous 1.1.2.5 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.8 / (download) - annotate - [select for diffs], Tue Oct 30 16:41:52 2018 UTC (5 years, 5 months ago) by skrll
Branch: 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-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
Changes since 1.7: +2 -4 lines
Diff to previous 1.7 (colored)

Retire fdt_putchar and ap_early_put_char in favour of uartputc.

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:26 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.4: +3 -2 lines
Diff to previous 1.1.2.4 (colored) to branchpoint 1.1 (colored)

Sync with head

Revision 1.7 / (download) - annotate - [select for diffs], Sat Oct 20 05:38:27 2018 UTC (5 years, 6 months ago) by ryo
Branch: MAIN
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

add missing .ap_mpstart for rk3399

Revision 1.6 / (download) - annotate - [select for diffs], Thu Oct 18 09:01:53 2018 UTC (5 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-compat-1020
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

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) - annotate - [select for diffs], Sun Sep 30 01:45:38 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.3: +5 -5 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored)

Ssync with HEAD

Revision 1.5 / (download) - annotate - [select for diffs], Fri Sep 21 12:04:07 2018 UTC (5 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-compat-0930
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Centralise defparam CONSADDR, CONSPEED, CONMODE and CONADDR into
opt_console.h and adjust.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Sep 10 11:05:12 2018 UTC (5 years, 7 months ago) by ryo
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

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) - annotate - [select for diffs], Thu Sep 6 06:55:27 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.2: +68 -10 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)

Sync with HEAD

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

Revision 1.3 / (download) - annotate - [select for diffs], Sun Aug 12 16:48:05 2018 UTC (5 years, 8 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-0906
Changes since 1.2: +60 -2 lines
Diff to previous 1.2 (colored)

Add support for Rockchip RK3399 SoC.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 5 14:02:35 2018 UTC (5 years, 8 months ago) by skrll
Branch: MAIN
Changes since 1.1: +10 -10 lines
Diff to previous 1.1 (colored)

Add prefixes to struct arm_platform{,_info} members.

No functional change.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:39 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.1: +160 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Sync with HEAD

Revision 1.1.2.1, Sat Jun 16 00:19:04 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1: +0 -160 lines
FILE REMOVED

file rk_platform.c was added on branch pgoyette-compat on 2018-06-25 07:25:39 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jun 16 00:19:04 2018 UTC (5 years, 10 months ago) by jmcneill
Branch: 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.

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>