Home | History | Annotate | Download | only in amlogic
History log of /src/sys/arch/arm/amlogic/meson_platform.c
RevisionDateAuthorComments
 1.22  06-Sep-2025  thorpej Refactor the "platform" defitions into fdt_platform.h
 1.21  07-Apr-2023  skrll Rename ARM_PLATFORM to FDT_PLATFORM and make it available outside arm.
 1.20  24-Apr-2021  thorpej 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?).
 1.19  05-Feb-2021  skrll branches: 1.19.2;
Fix build
 1.18  04-Feb-2021  thorpej Call acpi_device_register() / fdtbus_device_register() as approrpriate.
 1.17  29-Jan-2021  rin Fix build without MULTIPROCESSOR.
 1.16  28-Sep-2020  jmcneill branches: 1.16.2;
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.
 1.15  10-Jul-2020  skrll Add support for KASAN on ARMv[67]

Thanks to maxv for many pointers and reviews.
 1.14  20-Jun-2020  skrll Convert to new proplib api
 1.13  13-Aug-2019  skrll Updates to get Odroid-C1 in better shape since the last DTS import
 1.12  13-Aug-2019  skrll Trailing whitespace
 1.11  21-Apr-2019  jmcneill branches: 1.11.2; 1.11.4;
Fix SOC_MESON8B build
 1.10  21-Apr-2019  jmcneill Don't rely on the existing state of the GX watchdog control register when
resetting.
 1.9  21-Apr-2019  jmcneill Provide a separate ap_reset for Meson GX family SoCs
 1.8  19-Apr-2019  jmcneill Add support for Amlogic Meson GXL family SoCs.
 1.7  05-Apr-2019  jmcneill Fix AO base in cpu_enable_meson8b
 1.6  05-Apr-2019  jmcneill #define<tab>
 1.5  25-Feb-2019  jmcneill Add support for Amlogic S905 (Meson GXBB) SoCs.
 1.4  31-Jan-2019  skrll Change ap_mpstart to return non-zero value if any/all APs don't start.
 1.3  21-Jan-2019  jmcneill branches: 1.3.2;
Auto-detect root device on Meson8b
 1.2  20-Jan-2019  jmcneill Re-add support for awge0.mac-address, fb.scale, and fb.depth cmdline options
 1.1  19-Jan-2019  jmcneill Add support for (FDT-ized) Amlogic Meson8b.
 1.3.2.2  26-Jan-2019  pgoyette Sync with HEAD
 1.3.2.1  21-Jan-2019  pgoyette file meson_platform.c was added on branch pgoyette-compat on 2019-01-26 21:59:59 +0000
 1.11.4.1  15-Aug-2019  martin Pull up following revision(s) (requested by skrll in ticket #55):

sys/arch/arm/cortex/a9wdt.c: revision 1.10
sys/arch/evbarm/conf/HUMMINGBOARD: revision 1.9
sys/arch/evbarm/conf/GENERIC: revision 1.50
sys/arch/evbarm/conf/NITROGEN6X: revision 1.24
sys/arch/arm/cortex/a9tmr_var.h: revision 1.7
sys/arch/arm/fdt/files.fdt: revision 1.29
sys/arch/arm/amlogic/meson_platform.c: revision 1.12
sys/arch/arm/amlogic/meson8b_pinctrl.c: revision 1.2
sys/arch/arm/amlogic/meson_platform.c: revision 1.13
sys/arch/evbarm/conf/BCM5301X: revision 1.34
sys/arch/arm/dts/meson8b.dtsi: revision 1.6
sys/arch/arm/fdt/a9ptmr_fdt.c: revision 1.1
sys/arch/arm/dts/meson8b.dtsi: revision 1.7
sys/arch/arm/cortex/a9ptmr_var.h: revision 1.1
sys/arch/evbarm/conf/PANDABOARD: revision 1.30
sys/arch/evbarm/conf/DUOVERO: revision 1.14
sys/arch/arm/cortex/a9ptmr.c: revision 1.1
sys/arch/arm/cortex/a9ptmr.c: revision 1.2
sys/arch/arm/fdt/a9wdt_fdt.c: revision 1.1
sys/arch/evbarm/conf/BCM56340: revision 1.19
sys/arch/evbarm/conf/CUBOX-I: revision 1.23
sys/arch/arm/amlogic/meson8b_clkc.c: revision 1.4
sys/arch/evbarm/conf/PARALLELLA: revision 1.7
sys/arch/arm/cortex/files.cortex: revision 1.12
sys/arch/arm/dts/meson8b-odroidc1.dts: revision 1.4
sys/arch/arm/cortex/a9wdt.c: revision 1.9
sys/arch/evbarm/conf/ZEDBOARD: revision 1.6

spaces to tab

-

Add a driver for the A5/A9 Private timer.
While here FDTise the Watchdog driver.

-

Update for recent a9wdt changes
-

Trailing whitespace

-
Updates to get Odroid-C1 in better shape since the last DTS import

-

Various fixes / changes
- don't use prescaler
- improve AB_DEBUG output
- fix a9ptmr_delay to work with a decrementing counter!
Thanks to jmcneill@ for proving I'm an idiot

-

Add eth_rxd3 and eth_rxd2 pinctrl groups

-

Catch up to recent mainline dts changes
 1.11.2.3  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.11.2.2  10-Jun-2019  christos Sync with HEAD
 1.11.2.1  21-Apr-2019  christos file meson_platform.c was added on branch phil-wifi on 2019-06-10 22:05:51 +0000
 1.16.2.1  03-Apr-2021  thorpej Sync with HEAD.
 1.19.2.1  03-Apr-2021  thorpej - 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.

RSS XML Feed