u-boot/arch/arm/mach-rockchip
Quentin Schulz e53856aaf4 rockchip: px30: fix possibly unused grf and cru variables
The grf and cru are only used when no UART base is provided by the user
(defaults to UART2) or for UART1, UART3 and UART5 to be used for the
debug UART. Therefore, let's surround those variable definitions with
the proper checks.

This wasn't an issue before support for UART0 was added, because all
cases were using cru and grf. UART0 only uses pmucru so there's a need
to not define those variables anymore.

Fixes: d0af506625 ("rockchip: px30: support debug uart on UART0")
Cc: Quentin Schulz <foss+uboot@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2023-01-16 18:01:11 +08:00
..
px30 rockchip: px30: fix possibly unused grf and cru variables 2023-01-16 18:01:11 +08:00
rk322x Convert CONFIG_SPL_PAD_TO et al to Kconfig 2022-06-06 12:09:06 -04:00
rk3036 rockchip: move ROCKCHIP_STIMER_BASE to Kconfig 2022-04-18 11:25:12 +08:00
rk3066 rockchip: rk3066: add Rikomagic MK808 board 2022-04-18 11:25:13 +08:00
rk3128 rockchip: move ROCKCHIP_STIMER_BASE to Kconfig 2022-04-18 11:25:12 +08:00
rk3188 rockchip: fix boot_devices constants 2022-04-18 11:25:13 +08:00
rk3288 rk32xx: Use standard TPL linker script 2022-12-23 10:07:03 -05:00
rk3308 rockchip: rk3308: fix same-as-spl boot order 2022-09-04 20:00:38 +08:00
rk3328 Convert CONFIG_SPL_PAD_TO et al to Kconfig 2022-06-06 12:09:06 -04:00
rk3368 spl: Move SPL_LDSCRIPT defaults to one place 2022-06-28 17:03:31 -04:00
rk3399 rockchip: Add initial support for the PINE64 Pinephone Pro 2023-01-16 18:01:11 +08:00
rk3568 rockchip: move ROCKCHIP_STIMER_BASE to Kconfig 2022-04-18 11:25:12 +08:00
rv1108 dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
rv1126 board: rockchip: Add Edgeble Neu2 IO Board 2023-01-16 18:01:11 +08:00
board.c rockchip: capsule: Add functions for supporting capsule updates 2022-12-19 10:56:12 +08:00
boot_mode.c rockchip: boot_mode: fix fastboot command 2021-12-24 15:17:51 +08:00
bootrom.c common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
cpu-info.c rockchip: Separate the reset cause from display cpuinfo 2020-07-22 20:55:13 +08:00
Kconfig arm: rockchip: Add RV1126 arch core support 2023-01-16 18:01:11 +08:00
make_fit_atf.py mach-rockchip: make_fit_atf.py: support OP-TEE tee.bin v1 format 2022-06-29 11:32:35 +08:00
Makefile arm: rockchip: Add RV1126 arch core support 2023-01-16 18:01:11 +08:00
misc.c dm: Rename DM_GET_DRIVER() to DM_DRIVER_GET() 2021-01-05 12:26:35 -07:00
px30-board-tpl.c Remove #include <version.h> from files which do not need it 2021-09-17 12:10:44 -04:00
rk3036-board-spl.c arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid 2022-04-21 15:27:18 -04:00
sdram.c global: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_* 2022-12-05 16:06:07 -05:00
spl-boot-order.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
spl.c arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid 2022-04-21 15:27:18 -04:00
tpl.c arm: set cntfrq_el0 if CONFIG_COUNTER_FREQUENCY is valid 2022-04-21 15:27:18 -04:00
u-boot-tpl-v8.lds linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00