Skip to content

Commit

Permalink
serial: Rename SERIAL_SUPPORT to SERIAL
Browse files Browse the repository at this point in the history
Rename these options so that CONFIG_IS_ENABLED can be used with them.

Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
sjg20 authored and trini committed Sep 4, 2021
1 parent 73c6ff6 commit 2a73606
Show file tree
Hide file tree
Showing 313 changed files with 353 additions and 353 deletions.
6 changes: 3 additions & 3 deletions arch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ config RISCV
imply SPL_OF_CONTROL
imply SPL_LIBCOMMON_SUPPORT
imply SPL_LIBGENERIC_SUPPORT
imply SPL_SERIAL_SUPPORT
imply SPL_SERIAL
imply SPL_TIMER

config SANDBOX
Expand Down Expand Up @@ -259,7 +259,7 @@ config X86
imply SPL_PINCTRL
imply SPL_LIBCOMMON_SUPPORT
imply SPL_LIBGENERIC_SUPPORT
imply SPL_SERIAL_SUPPORT
imply SPL_SERIAL
imply SPL_SPI_FLASH_SUPPORT
imply SPL_SPI_SUPPORT
imply SPL_OF_CONTROL
Expand All @@ -273,7 +273,7 @@ config X86
imply TPL_PINCTRL
imply TPL_LIBCOMMON_SUPPORT
imply TPL_LIBGENERIC_SUPPORT
imply TPL_SERIAL_SUPPORT
imply TPL_SERIAL
imply TPL_OF_CONTROL
imply TPL_TIMER
imply TPL_REGMAP
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ config ARCH_SOCFPGA
select SPL_NAND_SUPPORT if SPL_NAND_DENALI
select SPL_OF_CONTROL
select SPL_SEPARATE_BSS if TARGET_SOCFPGA_SOC64
select SPL_SERIAL_SUPPORT
select SPL_SERIAL
select SPL_SYSRESET
select SPL_WATCHDOG
select SUPPORT_SPL
Expand Down Expand Up @@ -1038,7 +1038,7 @@ config ARCH_SUNXI
imply SPL_LIBGENERIC_SUPPORT
imply SPL_MMC if MMC
imply SPL_POWER
imply SPL_SERIAL_SUPPORT
imply SPL_SERIAL
imply USB_GADGET

config ARCH_U8500
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/cpu/arm926ejs/mxs/spl_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

DECLARE_GLOBAL_DATA_PTR;
static gd_t gdata __section(".data");
#ifdef CONFIG_SPL_SERIAL_SUPPORT
#ifdef CONFIG_SPL_SERIAL
static struct bd_info bdata __section(".data");
#endif

Expand Down Expand Up @@ -108,7 +108,7 @@ static void mxs_spl_fixup_vectors(void)

static void mxs_spl_console_init(void)
{
#ifdef CONFIG_SPL_SERIAL_SUPPORT
#ifdef CONFIG_SPL_SERIAL
gd->bd = &bdata;
gd->baudrate = CONFIG_BAUDRATE;
serial_init();
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-at91/spl_at91.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void board_init_f(ulong dummy)
at91_periph_clk_enable(ATMEL_ID_PIOC);
#endif

#if defined(CONFIG_SPL_SERIAL_SUPPORT)
#if defined(CONFIG_SPL_SERIAL)
/* init console */
at91_seriald_hw_init();
preloader_console_init();
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-exynos/lowlevel_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ int do_lowlevel_init(void)
if (actions & DO_CLOCKS) {
system_clock_init();
#ifdef CONFIG_DEBUG_UART
#if (defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_SERIAL_SUPPORT)) || \
#if (defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_SERIAL)) || \
!defined(CONFIG_SPL_BUILD)
exynos_pinmux_config(PERIPH_ID_UART3, PINMUX_FLAG_NONE);
debug_uart_init();
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/mx6/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ config TARGET_MX6DL_MAMOJ
select SPL_OF_LIBFDT if SPL
select SPL_PINCTRL if SPL
select SPL_SEPARATE_BSS if SPL
select SPL_SERIAL_SUPPORT if SPL
select SPL_SERIAL if SPL
select SPL_USB_GADGET if SPL
select SPL_USB_HOST if SPL
select SPL_USB_SDP_SUPPORT if SPL
Expand Down
6 changes: 3 additions & 3 deletions arch/arm/mach-omap2/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ config OMAP34XX
imply SPL_NAND_SUPPORT
imply SPL_OMAP3_ID_NAND
imply SPL_POWER
imply SPL_SERIAL_SUPPORT
imply SPL_SERIAL
imply SYS_I2C_OMAP24XX
imply SYS_THUMB_BUILD
imply TWL4030_POWER
Expand All @@ -46,7 +46,7 @@ config OMAP44XX
imply SPL_NAND_SIMPLE
imply SPL_NAND_SUPPORT
imply SPL_POWER
imply SPL_SERIAL_SUPPORT
imply SPL_SERIAL
imply SYS_I2C_OMAP24XX
imply SYS_THUMB_BUILD

Expand All @@ -71,7 +71,7 @@ config OMAP54XX
imply SPL_NAND_AM33XX_BCH
imply SPL_NAND_SUPPORT
imply SPL_POWER
imply SPL_SERIAL_SUPPORT
imply SPL_SERIAL
imply SYS_I2C_OMAP24XX

config TI814X
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-omap2/am33xx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ config TARGET_AM335X_EVM
imply SPL_OF_LIBFDT
imply SPL_POWER
imply SPL_SEPARATE_BSS
imply SPL_SERIAL_SUPPORT
imply SPL_SERIAL
imply SPL_SYS_MALLOC_SIMPLE
imply SPL_WATCHDOG
imply SPL_YMODEM_SUPPORT
Expand Down Expand Up @@ -233,7 +233,7 @@ config TARGET_AM43XX_EVM
imply SPL_MMC
imply SPL_NAND_SUPPORT
imply SPL_POWER
imply SPL_SERIAL_SUPPORT
imply SPL_SERIAL
imply SPL_WATCHDOG
imply SPL_YMODEM_SUPPORT
help
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-rmobile/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ config RCAR_GEN3
imply SPL_GZIP
imply SPL_LIBCOMMON_SUPPORT
imply SPL_LIBGENERIC_SUPPORT
imply SPL_SERIAL_SUPPORT
imply SPL_SERIAL
imply SPL_SYS_MALLOC_SIMPLE
imply SPL_TINY_MEMSET
imply SPL_YMODEM_SUPPORT
Expand Down
26 changes: 13 additions & 13 deletions arch/arm/mach-rockchip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ config ROCKCHIP_PX30
select TPL_NEEDS_SEPARATE_TEXT_BASE if SPL
select TPL_NEEDS_SEPARATE_STACK if TPL
imply SPL_SEPARATE_BSS
select SPL_SERIAL_SUPPORT
select TPL_SERIAL_SUPPORT
select SPL_SERIAL
select TPL_SERIAL
select DEBUG_UART_BOARD_INIT
imply ROCKCHIP_COMMON_BOARD
imply SPL_ROCKCHIP_COMMON_BOARD
Expand Down Expand Up @@ -84,9 +84,9 @@ config ROCKCHIP_RK322X
select TPL_NEEDS_SEPARATE_STACK if TPL
select SPL_DRIVERS_MISC
imply ROCKCHIP_COMMON_BOARD
imply SPL_SERIAL_SUPPORT
imply SPL_SERIAL
imply SPL_ROCKCHIP_COMMON_BOARD
imply TPL_SERIAL_SUPPORT
imply TPL_SERIAL
imply TPL_ROCKCHIP_COMMON_BOARD
select TPL_LIBCOMMON_SUPPORT
select TPL_LIBGENERIC_SUPPORT
Expand Down Expand Up @@ -119,7 +119,7 @@ config ROCKCHIP_RK3288
imply TPL_RAM
imply TPL_REGMAP
imply TPL_ROCKCHIP_COMMON_BOARD
imply TPL_SERIAL_SUPPORT
imply TPL_SERIAL
imply TPL_SYSCON
imply USB_FUNCTION_ROCKUSB
imply CMD_ROCKUSB
Expand All @@ -146,8 +146,8 @@ config ROCKCHIP_RK3308
imply SPL_REGMAP
imply SPL_SYSCON
imply SPL_RAM
imply SPL_SERIAL_SUPPORT
imply TPL_SERIAL_SUPPORT
imply SPL_SERIAL
imply TPL_SERIAL
imply SPL_SEPARATE_BSS
help
The Rockchip RK3308 is a ARM-based Soc which embedded with quad
Expand All @@ -165,8 +165,8 @@ config ROCKCHIP_RK3328
imply ROCKCHIP_COMMON_BOARD
imply ROCKCHIP_SDRAM_COMMON
imply SPL_ROCKCHIP_COMMON_BOARD
imply SPL_SERIAL_SUPPORT
imply TPL_SERIAL_SUPPORT
imply SPL_SERIAL
imply TPL_SERIAL
imply SPL_SEPARATE_BSS
select ENABLE_ARM_SOC_BOOT0_HOOK
select DEBUG_UART_BOARD_INIT
Expand All @@ -188,8 +188,8 @@ config ROCKCHIP_RK3368
imply ROCKCHIP_COMMON_BOARD
imply SPL_ROCKCHIP_COMMON_BOARD
imply SPL_SEPARATE_BSS
imply SPL_SERIAL_SUPPORT
imply TPL_SERIAL_SUPPORT
imply SPL_SERIAL
imply TPL_SERIAL
imply TPL_ROCKCHIP_COMMON_BOARD
help
The Rockchip RK3368 is a ARM-based SoC with a octa-core (organised
Expand Down Expand Up @@ -219,7 +219,7 @@ config ROCKCHIP_RK3399
select TPL_NEEDS_SEPARATE_TEXT_BASE if TPL
select TPL_NEEDS_SEPARATE_STACK if TPL
select SPL_SEPARATE_BSS
select SPL_SERIAL_SUPPORT
select SPL_SERIAL
select SPL_DRIVERS_MISC
select CLK
select FIT
Expand All @@ -235,7 +235,7 @@ config ROCKCHIP_RK3399
imply ROCKCHIP_SDRAM_COMMON
imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF
imply SPL_ROCKCHIP_COMMON_BOARD
imply TPL_SERIAL_SUPPORT
imply TPL_SERIAL
imply TPL_LIBCOMMON_SUPPORT
imply TPL_LIBGENERIC_SUPPORT
imply TPL_SYS_MALLOC_SIMPLE
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-rockchip/px30/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ config SYS_SOC
config SYS_MALLOC_F_LEN
default 0x400

config SPL_SERIAL_SUPPORT
config SPL_SERIAL
default y

config TPL_LDSCRIPT
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-rockchip/rk3036/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ config SYS_SOC
config SYS_MALLOC_F_LEN
default 0x400

config SPL_SERIAL_SUPPORT
config SPL_SERIAL
default y

source "board/rockchip/evb_rk3036/Kconfig"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-rockchip/rk3188/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ config SPL_LIBCOMMON_SUPPORT
config SPL_LIBGENERIC_SUPPORT
default y

config SPL_SERIAL_SUPPORT
config SPL_SERIAL
default y

config TPL_LIBCOMMON_SUPPORT
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-rockchip/rk322x/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ config SPL_LIBCOMMON_SUPPORT
config SPL_LIBGENERIC_SUPPORT
default y

config SPL_SERIAL_SUPPORT
config SPL_SERIAL
default y

config TPL_MAX_SIZE
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-rockchip/rk3288/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ config SPL_LIBCOMMON_SUPPORT
config SPL_LIBGENERIC_SUPPORT
default y

config SPL_SERIAL_SUPPORT
config SPL_SERIAL
default y

config TPL_LDSCRIPT
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-rockchip/rk3308/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ config SYS_SOC
config SYS_MALLOC_F_LEN
default 0x400

config SPL_SERIAL_SUPPORT
config SPL_SERIAL
default y

config ROCKCHIP_BOOT_MODE_REG
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-rockchip/tpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void board_init_f(ulong dummy)
struct udevice *dev;
int ret;

#if defined(CONFIG_DEBUG_UART) && defined(CONFIG_TPL_SERIAL_SUPPORT)
#if defined(CONFIG_DEBUG_UART) && defined(CONFIG_TPL_SERIAL)
/*
* Debug UART can be used from here if required:
*
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-stm32/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ config STM32F7
select SPL_OF_TRANSLATE
select SPL_PINCTRL
select SPL_RAM
select SPL_SERIAL_SUPPORT
select SPL_SERIAL
select SPL_SYS_MALLOC_SIMPLE
select SPL_TIMER
select SPL_XIP_SUPPORT
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-stm32mp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ config SPL
select SPL_PINCTRL
select SPL_REGMAP
select SPL_DM_RESET
select SPL_SERIAL_SUPPORT
select SPL_SERIAL
select SPL_SYSCON
select SPL_WATCHDOG if WATCHDOG
imply BOOTSTAGE_STASH if SPL_BOOTSTAGE
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-tegra/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ config SPL_LIBCOMMON_SUPPORT
config SPL_LIBGENERIC_SUPPORT
default y

config SPL_SERIAL_SUPPORT
config SPL_SERIAL
default y

config TEGRA_CLKRST
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-zynq/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ config SPL_LIBGENERIC_SUPPORT
config SPL_MMC
default y if MMC_SDHCI_ZYNQ

config SPL_SERIAL_SUPPORT
config SPL_SERIAL
default y

config SPL_SPI_FLASH_SUPPORT
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-zynqmp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ config SPL_LIBGENERIC_SUPPORT
config SPL_MMC
default y if MMC_SDHCI_ZYNQ

config SPL_SERIAL_SUPPORT
config SPL_SERIAL
default y

config SPL_SPI_FLASH_SUPPORT
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/mach-mtmips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ config SOC_MT7628
select SPL_OF_CONTROL if SPL_DM
select SPL_SIMPLE_BUS if SPL_DM
select SPL_DM_SERIAL if SPL_DM
select SPL_CLK if SPL_DM && SPL_SERIAL_SUPPORT
select SPL_CLK if SPL_DM && SPL_SERIAL
select SPL_SYSRESET if SPL_DM
select SPL_OF_LIBFDT if SPL_OF_CONTROL
help
Expand Down
4 changes: 2 additions & 2 deletions arch/mips/mach-mtmips/mt7620/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void board_debug_uart_init(void)

void mtmips_spl_serial_init(void)
{
#ifdef CONFIG_SPL_SERIAL_SUPPORT
#ifdef CONFIG_SPL_SERIAL
void __iomem *base = ioremap_nocache(SYSCTL_BASE, SYSCTL_SIZE);

#if CONFIG_CONS_INDEX == 1
Expand All @@ -32,5 +32,5 @@ void mtmips_spl_serial_init(void)
clrsetbits_32(base + SYSCTL_GPIOMODE_REG, UARTF_SHARE_MODE_M,
UARTF_MODE_UARTF_GPIO << UARTF_SHARE_MODE_S);
#endif
#endif /* CONFIG_SPL_SERIAL_SUPPORT */
#endif /* CONFIG_SPL_SERIAL */
}
4 changes: 2 additions & 2 deletions arch/mips/mach-mtmips/mt7628/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ config BOARD_MT7628_RFB

config BOARD_VOCORE2
bool "VoCore2"
select SPL_SERIAL_SUPPORT
select SPL_SERIAL
select SPL_UART2_SPIS_PINMUX
help
VoCore VoCore2 board has a MT7628 SoC with 128 MiB of RAM
Expand All @@ -39,7 +39,7 @@ endchoice

config SPL_UART2_SPIS_PINMUX
bool "Use alternative pinmux for UART2 in SPL stage"
depends on SPL_SERIAL_SUPPORT
depends on SPL_SERIAL
help
Select this if the UART2 of your board is connected to GPIO 16/17
(shared with SPIS) rather than the usual GPIO 20/21.
Expand Down
4 changes: 2 additions & 2 deletions arch/mips/mach-mtmips/mt7628/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

void mtmips_spl_serial_init(void)
{
#ifdef CONFIG_SPL_SERIAL_SUPPORT
#ifdef CONFIG_SPL_SERIAL
void __iomem *base = ioremap_nocache(SYSCTL_BASE, SYSCTL_SIZE);

#if CONFIG_CONS_INDEX == 1
Expand All @@ -30,5 +30,5 @@ void mtmips_spl_serial_init(void)
1 << SPIS_MODE_S);
#endif /* CONFIG_SPL_UART2_SPIS_PINMUX */
#endif /* CONFIG_CONS_INDEX */
#endif /* CONFIG_SPL_SERIAL_SUPPORT */
#endif /* CONFIG_SPL_SERIAL */
}
Loading

0 comments on commit 2a73606

Please sign in to comment.