History log of /netbsd/sys/arch/arm/nvidia/tegra_platform.c (Results 1 – 25 of 28)
Revision Date Author Comments
# 2e4048e4 07-Apr-2023 skrll <skrll@NetBSD.org>

Rename ARM_PLATFORM to FDT_PLATFORM and make it available outside arm.


# 3bee0c11 24-Apr-2021 thorpej <thorpej@NetBSD.org>

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 a

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?).

show more ...


# 0b69bb48 04-Feb-2021 thorpej <thorpej@NetBSD.org>

Call acpi_device_register() / fdtbus_device_register() as approrpriate.


# 8e90f9ed 27-Jan-2021 thorpej <thorpej@NetBSD.org>

Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all c

Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.

show more ...


# 589c3d80 28-Sep-2020 jmcneill <jmcneill@NetBSD.org>

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.


# 9eb7dc8e 21-Aug-2020 uwe <uwe@NetBSD.org>

#ifdef consistency.


# 078bd70b 10-Jul-2020 skrll <skrll@NetBSD.org>

Add support for KASAN on ARMv[67]

Thanks to maxv for many pointers and reviews.


# 280931cc 20-Jun-2020 skrll <skrll@NetBSD.org>

Convert to new proplib api


# e7fbe403 03-Jan-2019 jmcneill <jmcneill@NetBSD.org>

Add a link set for cpu enable methods.


# 6ae27e98 15-Dec-2018 jmcneill <jmcneill@NetBSD.org>

Add missing call to arm_fdt_cpu_mpstart, fixes SMP on Tegra X1


# 763b86b6 30-Oct-2018 skrll <skrll@NetBSD.org>

Retire fdt_putchar and ap_early_put_char in favour of uartputc.


# e4a950e6 18-Oct-2018 skrll <skrll@NetBSD.org>

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

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

show more ...


# 59508e8a 21-Sep-2018 skrll <skrll@NetBSD.org>

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


# 0102a965 10-Sep-2018 ryo <ryo@NetBSD.org>

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_m

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.

show more ...


# 107aadd0 05-Aug-2018 skrll <skrll@NetBSD.org>

Add prefixes to struct arm_platform{,_info} members.

No functional change.


# c6e44b6b 08-Jul-2018 jmcneill <jmcneill@NetBSD.org>

Use psci_fdt_bootstrap for MP spinup on Tegra210.


# 56ba9c3d 07-Jul-2018 jmcneill <jmcneill@NetBSD.org>

Use arm_generic_bs_tag instead of armv7_generic_bs_tag and conditionally
define SOC platform support (so we don't try to build 32-bit support into
64-bit kernels).


# 8694f07c 01-Apr-2018 ryo <ryo@NetBSD.org>

Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sun

Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)

show more ...


# 2e1981a2 17-Mar-2018 ryo <ryo@NetBSD.org>

move from sys/arch/arm/arm32/armv7_generic_dma.c to sys/arch/arm/arm/arm_generic_dma.c,
and change variable name from armv7_generic_dma_tag to arm_generic_dma_tag

no functional change. (preliminary

move from sys/arch/arm/arm32/armv7_generic_dma.c to sys/arch/arm/arm/arm_generic_dma.c,
and change variable name from armv7_generic_dma_tag to arm_generic_dma_tag

no functional change. (preliminary changes for merging aarch64)

show more ...


# e1044afa 19-Dec-2017 skrll <skrll@NetBSD.org>

Trailing whitespace


# d37cc0de 22-Oct-2017 skrll <skrll@NetBSD.org>

Centralise defines for DEVMAP_{ALIGN,SIZE,ENTRY,ENTRY_END}


# 2f0a559a 20-Jul-2017 jmcneill <jmcneill@NetBSD.org>

Get rid of tegra_chip_id/tegra_chip_name and rely on FDT for this info.


# 45b0a61f 02-Jun-2017 jmcneill <jmcneill@NetBSD.org>

Allow platform code to specify the UART frequency for consinit


# 8702feb1 02-Jun-2017 jmcneill <jmcneill@NetBSD.org>

FDT-ize "delay" by having fdt_machdep provide the delay() function and
move the implementations into the platform code.


# 13d8fe7b 30-May-2017 jmcneill <jmcneill@NetBSD.org>

Fix VERBOSE_INIT_ARM build with TEGRA kernel.


12