devices.c (498495dba268b20e8eadd7fe93c140c68b6cc9d2) | devices.c (9dd79fed1bed6089f9729027e2d8cfa1049266e5) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2#include <linux/kernel.h> 3#include <linux/init.h> 4#include <linux/serial_8250.h> 5#include <linux/platform_device.h> 6#include <asm/bootinfo.h> 7 8#include <ath25_platform.h> --- 59 unchanged lines hidden (view full) --- 68 if ((ath25_soc >= ARRAY_SIZE(soc_type_strings)) || 69 !soc_type_strings[ath25_soc]) 70 return soc_type_strings[ATH25_SOC_UNKNOWN]; 71 return soc_type_strings[ath25_soc]; 72} 73 74void __init ath25_serial_setup(u32 mapbase, int irq, unsigned int uartclk) 75{ | 1// SPDX-License-Identifier: GPL-2.0 2#include <linux/kernel.h> 3#include <linux/init.h> 4#include <linux/serial_8250.h> 5#include <linux/platform_device.h> 6#include <asm/bootinfo.h> 7 8#include <ath25_platform.h> --- 59 unchanged lines hidden (view full) --- 68 if ((ath25_soc >= ARRAY_SIZE(soc_type_strings)) || 69 !soc_type_strings[ath25_soc]) 70 return soc_type_strings[ATH25_SOC_UNKNOWN]; 71 return soc_type_strings[ath25_soc]; 72} 73 74void __init ath25_serial_setup(u32 mapbase, int irq, unsigned int uartclk) 75{ |
76#ifdef CONFIG_SERIAL_8250_CONSOLE |
|
76 struct uart_port s; 77 78 memset(&s, 0, sizeof(s)); 79 80 s.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP; 81 s.iotype = UPIO_MEM32; 82 s.irq = irq; 83 s.regshift = 2; 84 s.mapbase = mapbase; 85 s.uartclk = uartclk; 86 87 early_serial_setup(&s); | 77 struct uart_port s; 78 79 memset(&s, 0, sizeof(s)); 80 81 s.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_IOREMAP; 82 s.iotype = UPIO_MEM32; 83 s.irq = irq; 84 s.regshift = 2; 85 s.mapbase = mapbase; 86 s.uartclk = uartclk; 87 88 early_serial_setup(&s); |
89#endif /* CONFIG_SERIAL_8250_CONSOLE */ |
|
88} 89 90int __init ath25_add_wmac(int nr, u32 base, int irq) 91{ 92 struct resource *res; 93 94 ath25_wmac[nr].dev.platform_data = &ath25_board; 95 res = &ath25_wmac[nr].resource[0]; --- 31 unchanged lines hidden --- | 90} 91 92int __init ath25_add_wmac(int nr, u32 base, int irq) 93{ 94 struct resource *res; 95 96 ath25_wmac[nr].dev.platform_data = &ath25_board; 97 res = &ath25_wmac[nr].resource[0]; --- 31 unchanged lines hidden --- |