summaryrefslogtreecommitdiffstats
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* psci: Fix warnings when compiling with W=1Patrick Delaunay2019-07-245-13/+28
| | | | | | | | | | | | | | | | | | This patch solves the following warnings: arch/arm/mach-stm32mp/psci.c: warning: no previous prototype for ‘psci_set_state’ [-Wmissing-prototypes] warning: no previous prototype for ‘psci_arch_cpu_entry’ [-Wmissing-prototypes] warning: no previous prototype for ‘psci_features’ [-Wmissing-prototypes] warning: no previous prototype for ‘psci_version’ [-Wmissing-prototypes] warning: no previous prototype for ‘psci_affinity_info’ [-Wmissing-prototypes] warning: no previous prototype for ‘psci_migrate_info_type’ [-Wmissing-prototypes] warning: no previous prototype for ‘psci_cpu_on’ [-Wmissing-prototypes] warning: no previous prototype for ‘psci_cpu_off’ [-Wmissing-prototypes] warning: no previous prototype for ‘psci_system_reset’ [-Wmissing-prototypes] warning: no previous prototype for ‘psci_system_off’ [-Wmissing-prototypes] Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
* Merge tag 'efi-2019-10-rc1-2' of ↵Tom Rini2019-07-233-16/+13
|\ | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-efi Pull request for UEFI sub-system for v2019.10-rc1 (2) * Implement the EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE event. * Address errors of type -Werror=address-of-packed-member when building with GCC9.1 * Fix an error when adding memory add addres 0x00000000. * Rework some code comments for Sphinx compliance.
| * efi_loader: use predefined constants in crt0_*_efi.SHeinrich Schuchardt2019-07-163-16/+13
| | | | | | | | | | | | | | | | | | | | | | We should use predefined constants instead of magic numbers. Move some constant definitions from include/pe.h to include/asm-generic/pe.h. Use these constants in crt0_*_efi.S. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* | Merge tag 'u-boot-stm32-20190723' of ↵Tom Rini2019-07-233-2/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-stm - add rtc driver for stm32mp1 - add remoteproc driver for stm32mp1 - use kernel qspi compatible string for stm32
| * | ARM: dts: stm32: Use kernel qspi compatible string for ↵Patrice Chotard2019-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stm32f469-disco-uboot.dtsi For STM32 QSPI driver, "st,stm32-qspi" compatible string was first introduced in U-boot. But later in kernel side, "st,stm32f469-qspi" was used. To simplify, align U-boot QSPI compatible string with kernel one. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | ARM: dts: stm32: Use kernel qspi compatible string for stm32f7-uboot.dtsiPatrice Chotard2019-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | For STM32 QSPI driver, "st,stm32-qspi" compatible string was first introduced in U-boot. But later in kernel side, "st,stm32f469-qspi" was used. To simplify, align U-boot QSPI compatible string with kernel one. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
| * | dm: core: Introduce xxx_translate_dma_address()Fabien Dessenne2019-07-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the following functions to translate DMA address to CPU address: - dev_translate_dma_address() - ofnode_translate_dma_address() - of_translate_dma_address() - fdt_translate_dma_address() These functions work the same way as xxx_translate_address(), with the difference that the translation relies on the "dma-ranges" property instead of the "ranges" property. Add related test. Test report: => ut dm fdt_translation Test: dm_test_fdt_translation: test-fdt.c Test: dm_test_fdt_translation: test-fdt.c (flat tree) Failures: 0 Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
* | | Merge tag 'rockchip-for-v2019.07-2' of ↵Tom Rini2019-07-231-1/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip - rk3399 sdhci driver fixup - TPL BANNER fixup
| * | | rockchip: TPL banner should depend on CONFIG_TPL_BANNER_PRINTChris Webb2019-07-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The generic code in common/spl/spl.c allows TPL/SPL banners to be silenced by unsetting CONFIG_TPL_BANNER_PRINT or CONFIG_SPL_BANNER_PRINT respectively. However, arch/arm/mach-rockchip/tpl.c prints this banner unconditionally. Fix the rockchip-specific tpl.c so that the TPL banner depends on CONFIG_TPL_BANNER_PRINT in the same way as the generic code. Signed-off-by: <chris@arachsys.com> Reviewed-by: Kever Yang <Kever.yang@rock-chips.com>
| * | | rockchip: Fix TPL build without CONFIG_TPL_SERIAL_SUPPORTChris Webb2019-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If CONFIG_DEBUG_UART is set but CONFIG_TPL_SERIAL_SUPPORT is not, the serial output should be available in SPL and full U-Boot, but not built in TPL. However, the rockchip tpl.c instead fails to compile with undefined references to the debug UART. Instead, initialise the debug UART and print the TPL banner only if both CONFIG_DEBUG_UART and CONFIG_TPL_SERIAL_SUPPORT are set. Signed-off-by: <chris@arachsys.com> Reviewed-by: Kever Yang <Kever.yang@rock-chips.com>
* | | | Merge tag 'rockchip-for-v2019.07' of ↵Tom Rini2019-07-2164-851/+2898
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip - rk3399 lpddr4 support - rk3399-rock960 board support improvement - Eliminate pyelftools dependency by make_fit_atf.py - clean up rockchip dts to use -u-boot.dtsi - use ARM arch/generic timer instead of rk_timer - clean up Kconfig options for board support
| * | | rockchip: make_fit_atf.py: Eliminate pyelftools dependencyChris Webb2019-07-201-43/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | make_fit_aft.py depends on the non-standard library pyelftools to pull out PT_LOAD segments from ELF files. However, this is as easy to do manually, without imposing the extra dependency on users. Structures in the ELF file are unpacked into variables named to exactly match the ELF spec to ensure the destructuring code is reasonably self-documenting. Signed-off-by: Chris Webb <chris@arachsys.com> Reviewed-by: Andy Yan <andy.yan@rock-chips.com> Reviewed-by: Kever Yang <Kever.yang@rock-chips.com>
| * | | rockchip: enable rk322x TPL_BOOTROM_SUPPORT in KconfigKever Yang2019-07-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The TPL_BOOTROM_SUPPORT is needed for boot from bootrom like other storages. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3399: use common TPL board fileKever Yang2019-07-203-72/+1
| | | | | | | | | | | | | | | | | | | | | | | | Use common tpl.c instead of rk3399-board-tpl.c Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3399: remove TPL_BOARD_INITKever Yang2019-07-202-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | RK3399 TPL do not need a dedicate board init, print the firmware info when debug init instead. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3399: use common secure_timer_init() for spl/tplKever Yang2019-07-203-37/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SPL/TPL share the same secure_timer_init(), update to use one copy source code and update to use CONFIG_ROCKCHIP_STIMER_BASE as base address and rename to function name to rockchip_stimer_init(). Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3368: use common TPL board fileKever Yang2019-07-203-75/+1
| | | | | | | | | | | | | | | | | | | | | | | | Use common tpl.c instead of rk3368-board-tpl.c Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3288: use common TPL board fileKever Yang2019-07-203-90/+1
| | | | | | | | | | | | | | | | | | | | | | | | Use Common tpl.c instead of rk3288-board-tpl.c Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk322x: use common TPL board fileKever Yang2019-07-203-81/+1
| | | | | | | | | | | | | | | | | | | | | | | | Use Common tpl.c instead of rk322x-board-tpl.c Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: add common tpl board fileKever Yang2019-07-203-0/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rockchip SoCs have similar boot process, prefer to use TPL for DRAM init and back to bootrom, and SPL as Trust ATF/U-Boot loader. TPL common board is a basic TPL board init which can be shared for most of SoCs to avoid copy-pase for different SoCs. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: evb-px5: switch to use ARM generic timerKever Yang2019-07-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Default to use ARM generic timer in ARM64, switch from rk timer to generic timer. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3368-lion: switch to use ARM generic timerKever Yang2019-07-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Default to use ARM generic timer in ARM64, switch from rk timer to generic timer. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3368: enable stimer for rk3368Kever Yang2019-07-202-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add stimer_init() for spl/tpl so that we able to switch to use arch timer. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3368: move sgrf init to spl as arch_cpu_init()Kever Yang2019-07-203-70/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The SoC related init will move to SPL and keep TPL clean, so that we can reuse the common TPL board file. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: remove rk_timerKever Yang2019-07-202-43/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We have convert all SoC to use DM timer or ARM arch/generic timer, we can remove this rk_timer now. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: remove no use header file in board codeKever Yang2019-07-202-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | The timer.h is no use any more, remove it from the board files. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3128: use ARM arch timer instead of rk_timerKever Yang2019-07-202-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We prefer to use ARM arch timer instead of rockchip timer, so that we are using the same timer for SPL, U-Boot and Kernel, which will make things simple and easy to track to boot time. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3288: use ARM arch timer instead of rk_timerKever Yang2019-07-203-5/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We prefer to use ARM arch timer instead of rockchip timer, so that we are using the same timer for SPL, U-Boot and Kernel, which will make things simple and easy to track to boot time. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3036: use ARM arch timer instead of rk_timerKever Yang2019-07-202-4/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We prefer to use ARM arch timer instead of rockchip timer, so that we are using the same timer for SPL, U-Boot and Kernel, which will make things simple and easy to track the boot time. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3036: sdram: use udelay instead of rockchip_udelayKever Yang2019-07-201-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use system api for udelay instead of vendor defined api, and rockchip_udelay() will be removed. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk322x: use ARM arch timer instead of rk_timerKever Yang2019-07-203-4/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We prefer to use ARM arch timer instead of rockchip timer, so that we are using the same timer for SPL, U-Boot and Kernel, which will make things simple and easy to track to boot time. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3288: dts: enable spl-boot-orderKever Yang2019-07-202-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We share the same default SPL boot order for all rk3288 boards, use dts instead of hard code in board file. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: spl-boot-order: update dependency to OF_LIBFDTKever Yang2019-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fdt interfaces are actuall depends on OF_LIBFDT instead of OF_CONTROL, some boards may enable OF_CONTROL while disable OF_LIBFDT. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: popmetal-rk3288: add -u-boot.dtsiKever Yang2019-07-202-26/+46
| | | | | | | | | | | | | | | | | | | | | | | | Move U-Boot relate dts node/property into -u-boot.dtsi Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: miqi-rk3288: add -u-boot.dtsiKever Yang2019-07-202-18/+38
| | | | | | | | | | | | | | | | | | | | | | | | Move U-Boot relate dts node/property into -u-boot.dtsi Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3288-firefly: sync sdmmc pinctrl from mainlineKever Yang2019-07-202-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The rk3288-firefly board have different setting for sdmmc io, sync then from kernel mainline: 6fbc7275c7a9 Linux 5.2-rc7 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: firefly-rk3288: add -u-boot.dtsiKever Yang2019-07-202-23/+54
| | | | | | | | | | | | | | | | | | | | | | | | Move U-Boot relate dts node/property into -u-boot.dtsi Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: fennec-rk3288: add -u-boot.dtsiKever Yang2019-07-202-25/+54
| | | | | | | | | | | | | | | | | | | | | | | | Move U-Boot relate dts node/property into -u-boot.dtsi Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: evb-rk3288: add -u-boot.dtsiKever Yang2019-07-202-25/+46
| | | | | | | | | | | | | | | | | | | | | | | | Move U-Boot relate dts node/property into -u-boot.dtsi Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3288: enable TPL for evb-rk3288Kever Yang2019-07-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable TPL for evb-rk3288 so that we can have a free size limited SPL. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3288: add default TPL_LDSCRIPT value in KconfigKever Yang2019-07-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We share the same TPL_LDSCRIPT for all rk3288 board, add default value in Kconfig. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3288: move configure_l2ctlr back to rk3288Kever Yang2019-07-202-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The configure_l2ctlr() is used only by rk3288, do not need to locate in sys_proto.h Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3288: add arch_cpu_init in splKever Yang2019-07-203-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add arch_cpu_init() in SPL for soc related init, and move configure_l2ctlr() into it. The arch_cpu_init() only need to run once, so no need to run in TPL. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3368: default enable SPL LIBCOMMON and LIBGENERICKever Yang2019-07-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We needs SPL LIBCOMMON and LIBGENERIC for all boards, so we can enable them by default and no need to define in each board. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk322x: default enable SPL LIBCOMMON and LIBGENERICKever Yang2019-07-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We needs SPL LIBCOMMON and LIBGENERIC for all boards, so we can enable them by default and no need to define in each board. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3328: default enable SPL LIBCOMMON and LIBGENERICKever Yang2019-07-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We needs SPL LIBCOMMON and LIBGENERIC for all boards, so we can enable them by default and no need to define in each board. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3399: default enable SPL LIBCOMMON and LIBGENERICKever Yang2019-07-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We needs SPL LIBCOMMON and LIBGENERIC for all boards, so we can enable them by default and no need to define in each board. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3368: use defaule value for SYS_MALLOC_F_LENKever Yang2019-07-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no difference in rk3368 board use for SYS_MALLOC_F_LEN, so we can use default value. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3328: use defaule value for SYS_MALLOC_F_LENKever Yang2019-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no difference in rk3328 board use for SYS_MALLOC_F_LEN, so we can use default value. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
| * | | rockchip: rk3399: use default value for SYS_MALLOC_F_LENKever Yang2019-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no difference in rk3399 board use for SYS_MALLOC_F_LEN, so we can use default value. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>