diff options
Diffstat (limited to 'arch/arc/plat-arcfpga/platform.c')
-rw-r--r-- | arch/arc/plat-arcfpga/platform.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/arc/plat-arcfpga/platform.c b/arch/arc/plat-arcfpga/platform.c index b3700c064c06..d71f3c3bcf24 100644 --- a/arch/arc/plat-arcfpga/platform.c +++ b/arch/arc/plat-arcfpga/platform.c | |||
@@ -77,6 +77,7 @@ static void __init setup_bvci_lat_unit(void) | |||
77 | 77 | ||
78 | /*----------------------- Platform Devices -----------------------------*/ | 78 | /*----------------------- Platform Devices -----------------------------*/ |
79 | 79 | ||
80 | #if IS_ENABLED(CONFIG_SERIAL_ARC) | ||
80 | static unsigned long arc_uart_info[] = { | 81 | static unsigned long arc_uart_info[] = { |
81 | 0, /* uart->is_emulated (runtime @running_on_hw) */ | 82 | 0, /* uart->is_emulated (runtime @running_on_hw) */ |
82 | 0, /* uart->port.uartclk */ | 83 | 0, /* uart->port.uartclk */ |
@@ -115,7 +116,7 @@ static struct platform_device arc_uart0_dev = { | |||
115 | static struct platform_device *fpga_early_devs[] __initdata = { | 116 | static struct platform_device *fpga_early_devs[] __initdata = { |
116 | &arc_uart0_dev, | 117 | &arc_uart0_dev, |
117 | }; | 118 | }; |
118 | #endif | 119 | #endif /* CONFIG_SERIAL_ARC_CONSOLE */ |
119 | 120 | ||
120 | static void arc_fpga_serial_init(void) | 121 | static void arc_fpga_serial_init(void) |
121 | { | 122 | { |
@@ -152,8 +153,13 @@ static void arc_fpga_serial_init(void) | |||
152 | * otherwise the early console never gets a chance to run. | 153 | * otherwise the early console never gets a chance to run. |
153 | */ | 154 | */ |
154 | add_preferred_console("ttyARC", 0, "115200"); | 155 | add_preferred_console("ttyARC", 0, "115200"); |
155 | #endif | 156 | #endif /* CONFIG_SERIAL_ARC_CONSOLE */ |
157 | } | ||
158 | #else /* !IS_ENABLED(CONFIG_SERIAL_ARC) */ | ||
159 | static void arc_fpga_serial_init(void) | ||
160 | { | ||
156 | } | 161 | } |
162 | #endif | ||
157 | 163 | ||
158 | static void __init plat_fpga_early_init(void) | 164 | static void __init plat_fpga_early_init(void) |
159 | { | 165 | { |
@@ -169,7 +175,7 @@ static void __init plat_fpga_early_init(void) | |||
169 | } | 175 | } |
170 | 176 | ||
171 | static struct of_dev_auxdata plat_auxdata_lookup[] __initdata = { | 177 | static struct of_dev_auxdata plat_auxdata_lookup[] __initdata = { |
172 | #if defined(CONFIG_SERIAL_ARC) || defined(CONFIG_SERIAL_ARC_MODULE) | 178 | #if IS_ENABLED(CONFIG_SERIAL_ARC) |
173 | OF_DEV_AUXDATA("snps,arc-uart", UART0_BASE, "arc-uart", arc_uart_info), | 179 | OF_DEV_AUXDATA("snps,arc-uart", UART0_BASE, "arc-uart", arc_uart_info), |
174 | #endif | 180 | #endif |
175 | {} | 181 | {} |