11 #include <linux/kernel.h>
18 #include <linux/i2c.h>
57 .gpio_card_detect = 29,
60 static unsigned int openrd_mpp_config[]
__initdata = {
74 static unsigned int openrd_uart1_mpp_config[]
__initdata = {
87 .name =
"openrd-client-audio",
91 static int __initdata uart1;
93 static int __init sd_uart_selection(
char *
str)
103 }
else if (!
strncmp(str,
"485", 3)) {
107 if (machine_is_openrd_base()) {
117 __setup(
"kw_openrd_init_uart1=", sd_uart_selection);
119 static int __init uart1_mpp_config(
void)
153 static void __init openrd_init(
void)
166 if (machine_is_openrd_ultimate()) {
172 if (!machine_is_openrd_base())
179 if (machine_is_openrd_client() || machine_is_openrd_ultimate()) {
189 "UART1. Defaulting to SD. ERROR CODE: %d\n",
196 "selection, gpio: 34\n");
204 if (!uart1_mpp_config())
209 static int __init openrd_pci_init(
void)
211 if (machine_is_openrd_base() ||
212 machine_is_openrd_client() ||
213 machine_is_openrd_ultimate())
220 #ifdef CONFIG_MACH_OPENRD_BASE
223 .atag_offset = 0x100,
224 .init_machine = openrd_init,
233 #ifdef CONFIG_MACH_OPENRD_CLIENT
236 .atag_offset = 0x100,
237 .init_machine = openrd_init,
246 #ifdef CONFIG_MACH_OPENRD_ULTIMATE
247 MACHINE_START(OPENRD_ULTIMATE,
"Marvell OpenRD Ultimate Board")
249 .atag_offset = 0x100,
250 .init_machine = openrd_init,