Home | History | Annotate | Download | only in fdt
History log of /src/sys/arch/arm/fdt/arm_platform.c
RevisionDateAuthorComments
 1.9  06-Sep-2025  thorpej Re-factor the console-related code into fdt_console.[ch]
 1.8  06-Sep-2025  thorpej Refactor the "platform" defitions into fdt_platform.h
 1.7  07-Apr-2023  skrll Rename ARM_PLATFORM to FDT_PLATFORM and make it available outside arm.
 1.6  25-Feb-2023  skrll Restore the ability to have EARLYCONS work for the QEMU virt after
SOC_VIRT got removed.
 1.5  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.4  04-Feb-2021  thorpej branches: 1.4.2;
Call acpi_device_register() / fdtbus_device_register() as approrpriate.
 1.3  28-Sep-2020  jmcneill branches: 1.3.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.2  06-Jan-2020  skrll branches: 1.2.6;
Fix DEVMAP build losage by reducing diffs between arm and aarch64

*sigh*
 1.1  05-Jan-2020  jmcneill Make the generic Arm platform available for arm32 as well.
 1.2.6.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.2.6.1  06-Jan-2020  martin file arm_platform.c was added on branch phil-wifi on 2020-04-08 14:07:29 +0000
 1.3.2.1  03-Apr-2021  thorpej Sync with HEAD.
 1.4.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