blob: 94d989bee8ad0594feee3af4289ab56b34f541f9 [file] [log] [blame]
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -07001/*
2 * Board support file for OMAP4430 SDP.
3 *
4 * Copyright (C) 2009 Texas Instruments
5 *
6 * Author: Santosh Shilimkar <santosh.shilimkar@ti.com>
7 *
8 * Based on mach-omap2/board-3430sdp.c
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13 */
14
15#include <linux/kernel.h>
16#include <linux/init.h>
17#include <linux/platform_device.h>
18#include <linux/io.h>
19#include <linux/gpio.h>
Maulik Mankadbce06682010-02-17 14:09:32 -080020#include <linux/usb/otg.h>
Abraham Arceb2aa5e52010-05-14 12:05:26 -070021#include <linux/spi/spi.h>
Balaji T K6e30a7d2010-05-12 08:27:30 +000022#include <linux/i2c/twl.h>
Shubhrajyoti Datta94ce7a62010-09-23 18:22:49 -070023#include <linux/gpio_keys.h>
Balaji T K6e30a7d2010-05-12 08:27:30 +000024#include <linux/regulator/machine.h>
Hemanth V509b6d92010-08-02 13:18:04 +030025#include <linux/leds.h>
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -070026
27#include <mach/hardware.h>
Santosh Shilimkarfbc9be12010-05-14 12:05:26 -070028#include <mach/omap4-common.h>
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -070029#include <asm/mach-types.h>
30#include <asm/mach/arch.h>
31#include <asm/mach/map.h>
32
Tony Lindgrence491cf2009-10-20 09:40:47 -070033#include <plat/board.h>
34#include <plat/common.h>
Maulik Mankadbce06682010-02-17 14:09:32 -080035#include <plat/usb.h>
kishore kadiyala717c1fb2010-05-15 18:21:06 +000036#include <plat/mmc.h>
Manjunath Kondaiah G04aeae72010-10-08 09:58:35 -070037
Benoit Coussonfb6bf632010-08-10 17:43:15 +020038#include "mux.h"
kishore kadiyala717c1fb2010-05-15 18:21:06 +000039#include "hsmmc.h"
Manjunath Kondaiah G04aeae72010-10-08 09:58:35 -070040#include "timer-gp.h"
Paul Walmsley4814ced2010-10-08 11:40:20 -060041#include "control.h"
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -070042
Abraham Arceb2aa5e52010-05-14 12:05:26 -070043#define ETH_KS8851_IRQ 34
44#define ETH_KS8851_POWER_ON 48
45#define ETH_KS8851_QUART 138
Shubhrajyoti Datta94ce7a62010-09-23 18:22:49 -070046#define OMAP4_SFH7741_SENSOR_OUTPUT_GPIO 184
47#define OMAP4_SFH7741_ENABLE_GPIO 188
Abraham Arceb2aa5e52010-05-14 12:05:26 -070048
Hemanth V509b6d92010-08-02 13:18:04 +030049static struct gpio_led sdp4430_gpio_leds[] = {
50 {
51 .name = "omap4:green:debug0",
52 .gpio = 61,
53 },
54 {
55 .name = "omap4:green:debug1",
56 .gpio = 30,
57 },
58 {
59 .name = "omap4:green:debug2",
60 .gpio = 7,
61 },
62 {
63 .name = "omap4:green:debug3",
64 .gpio = 8,
65 },
66 {
67 .name = "omap4:green:debug4",
68 .gpio = 50,
69 },
70 {
71 .name = "omap4:blue:user",
72 .gpio = 169,
73 },
74 {
75 .name = "omap4:red:user",
76 .gpio = 170,
77 },
78 {
79 .name = "omap4:green:user",
80 .gpio = 139,
81 },
82
83};
84
Shubhrajyoti Datta94ce7a62010-09-23 18:22:49 -070085static struct gpio_keys_button sdp4430_gpio_keys[] = {
86 {
87 .desc = "Proximity Sensor",
88 .type = EV_SW,
89 .code = SW_FRONT_PROXIMITY,
90 .gpio = OMAP4_SFH7741_SENSOR_OUTPUT_GPIO,
91 .active_low = 0,
92 }
93};
94
Hemanth V509b6d92010-08-02 13:18:04 +030095static struct gpio_led_platform_data sdp4430_led_data = {
96 .leds = sdp4430_gpio_leds,
97 .num_leds = ARRAY_SIZE(sdp4430_gpio_leds),
98};
99
Shubhrajyoti Datta94ce7a62010-09-23 18:22:49 -0700100static int omap_prox_activate(struct device *dev)
101{
102 gpio_set_value(OMAP4_SFH7741_ENABLE_GPIO , 1);
103 return 0;
104}
105
106static void omap_prox_deactivate(struct device *dev)
107{
108 gpio_set_value(OMAP4_SFH7741_ENABLE_GPIO , 0);
109}
110
111static struct gpio_keys_platform_data sdp4430_gpio_keys_data = {
112 .buttons = sdp4430_gpio_keys,
113 .nbuttons = ARRAY_SIZE(sdp4430_gpio_keys),
114 .enable = omap_prox_activate,
115 .disable = omap_prox_deactivate,
116};
117
118static struct platform_device sdp4430_gpio_keys_device = {
119 .name = "gpio-keys",
120 .id = -1,
121 .dev = {
122 .platform_data = &sdp4430_gpio_keys_data,
123 },
124};
125
Hemanth V509b6d92010-08-02 13:18:04 +0300126static struct platform_device sdp4430_leds_gpio = {
127 .name = "leds-gpio",
128 .id = -1,
129 .dev = {
130 .platform_data = &sdp4430_led_data,
131 },
132};
Abraham Arceb2aa5e52010-05-14 12:05:26 -0700133static struct spi_board_info sdp4430_spi_board_info[] __initdata = {
134 {
135 .modalias = "ks8851",
136 .bus_num = 1,
137 .chip_select = 0,
138 .max_speed_hz = 24000000,
139 .irq = ETH_KS8851_IRQ,
140 },
141};
142
143static int omap_ethernet_init(void)
144{
145 int status;
146
147 /* Request of GPIO lines */
148
149 status = gpio_request(ETH_KS8851_POWER_ON, "eth_power");
150 if (status) {
151 pr_err("Cannot request GPIO %d\n", ETH_KS8851_POWER_ON);
152 return status;
153 }
154
155 status = gpio_request(ETH_KS8851_QUART, "quart");
156 if (status) {
157 pr_err("Cannot request GPIO %d\n", ETH_KS8851_QUART);
158 goto error1;
159 }
160
161 status = gpio_request(ETH_KS8851_IRQ, "eth_irq");
162 if (status) {
163 pr_err("Cannot request GPIO %d\n", ETH_KS8851_IRQ);
164 goto error2;
165 }
166
167 /* Configuration of requested GPIO lines */
168
169 status = gpio_direction_output(ETH_KS8851_POWER_ON, 1);
170 if (status) {
171 pr_err("Cannot set output GPIO %d\n", ETH_KS8851_IRQ);
172 goto error3;
173 }
174
175 status = gpio_direction_output(ETH_KS8851_QUART, 1);
176 if (status) {
177 pr_err("Cannot set output GPIO %d\n", ETH_KS8851_QUART);
178 goto error3;
179 }
180
181 status = gpio_direction_input(ETH_KS8851_IRQ);
182 if (status) {
183 pr_err("Cannot set input GPIO %d\n", ETH_KS8851_IRQ);
184 goto error3;
185 }
186
187 return 0;
188
189error3:
190 gpio_free(ETH_KS8851_IRQ);
191error2:
192 gpio_free(ETH_KS8851_QUART);
193error1:
194 gpio_free(ETH_KS8851_POWER_ON);
195 return status;
196}
197
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -0700198static struct platform_device sdp4430_lcd_device = {
199 .name = "sdp4430_lcd",
200 .id = -1,
201};
202
203static struct platform_device *sdp4430_devices[] __initdata = {
204 &sdp4430_lcd_device,
Shubhrajyoti Datta94ce7a62010-09-23 18:22:49 -0700205 &sdp4430_gpio_keys_device,
Hemanth V509b6d92010-08-02 13:18:04 +0300206 &sdp4430_leds_gpio,
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -0700207};
208
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -0700209static struct omap_lcd_config sdp4430_lcd_config __initdata = {
210 .ctrl_name = "internal",
211};
212
213static struct omap_board_config_kernel sdp4430_config[] __initdata = {
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -0700214 { OMAP_TAG_LCD, &sdp4430_lcd_config },
215};
216
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -0700217static void __init omap_4430sdp_init_irq(void)
218{
Santosh Shilimkar5b7815b2009-10-22 14:48:14 -0700219 omap_board_config = sdp4430_config;
220 omap_board_config_size = ARRAY_SIZE(sdp4430_config);
Jean Pihet58cda882009-07-24 19:43:25 -0600221 omap2_init_common_hw(NULL, NULL);
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -0700222#ifdef CONFIG_OMAP_32K_TIMER
223 omap2_gp_clockevent_set_gptimer(1);
224#endif
225 gic_init_irq();
226 omap_gpio_init();
227}
228
Maulik Mankadbce06682010-02-17 14:09:32 -0800229static struct omap_musb_board_data musb_board_data = {
230 .interface_type = MUSB_INTERFACE_UTMI,
231 .mode = MUSB_PERIPHERAL,
232 .power = 100,
233};
kishore kadiyala717c1fb2010-05-15 18:21:06 +0000234
235static struct omap2_hsmmc_info mmc[] = {
236 {
237 .mmc = 1,
Sukumar Ghorai3a638332010-09-15 14:49:23 +0000238 .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA,
kishore kadiyala717c1fb2010-05-15 18:21:06 +0000239 .gpio_wp = -EINVAL,
240 },
241 {
242 .mmc = 2,
Sukumar Ghorai3a638332010-09-15 14:49:23 +0000243 .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA,
kishore kadiyala717c1fb2010-05-15 18:21:06 +0000244 .gpio_cd = -EINVAL,
245 .gpio_wp = -EINVAL,
246 .nonremovable = true,
kishore kadiyala64be9782010-10-01 16:35:28 -0700247 .ocr_mask = MMC_VDD_29_30,
kishore kadiyala717c1fb2010-05-15 18:21:06 +0000248 },
249 {} /* Terminator */
250};
251
Santosh Shilimkar50263912010-08-02 13:18:03 +0300252static struct regulator_consumer_supply sdp4430_vaux_supply[] = {
253 {
254 .supply = "vmmc",
255 .dev_name = "mmci-omap-hs.1",
256 },
257};
Balaji T K6e30a7d2010-05-12 08:27:30 +0000258static struct regulator_consumer_supply sdp4430_vmmc_supply[] = {
259 {
260 .supply = "vmmc",
kishore kadiyala717c1fb2010-05-15 18:21:06 +0000261 .dev_name = "mmci-omap-hs.0",
Balaji T K6e30a7d2010-05-12 08:27:30 +0000262 },
Balaji T K6e30a7d2010-05-12 08:27:30 +0000263};
264
kishore kadiyala717c1fb2010-05-15 18:21:06 +0000265static int omap4_twl6030_hsmmc_late_init(struct device *dev)
266{
267 int ret = 0;
268 struct platform_device *pdev = container_of(dev,
269 struct platform_device, dev);
270 struct omap_mmc_platform_data *pdata = dev->platform_data;
271
272 /* Setting MMC1 Card detect Irq */
kishore kadiyala72f2e2c2010-09-24 17:13:20 +0000273 if (pdev->id == 0) {
274 ret = twl6030_mmc_card_detect_config();
275 if (ret)
276 pr_err("Failed configuring MMC1 card detect\n");
kishore kadiyala717c1fb2010-05-15 18:21:06 +0000277 pdata->slots[0].card_detect_irq = TWL6030_IRQ_BASE +
278 MMCDETECT_INTR_OFFSET;
kishore kadiyala72f2e2c2010-09-24 17:13:20 +0000279 pdata->slots[0].card_detect = twl6030_mmc_card_detect;
280 }
kishore kadiyala717c1fb2010-05-15 18:21:06 +0000281 return ret;
282}
283
284static __init void omap4_twl6030_hsmmc_set_late_init(struct device *dev)
285{
Benoit Cousson531c21b2010-10-01 16:35:26 -0700286 struct omap_mmc_platform_data *pdata;
kishore kadiyala717c1fb2010-05-15 18:21:06 +0000287
Benoit Cousson531c21b2010-10-01 16:35:26 -0700288 /* dev can be null if CONFIG_MMC_OMAP_HS is not set */
289 if (!dev) {
290 pr_err("Failed %s\n", __func__);
291 return;
292 }
293 pdata = dev->platform_data;
kishore kadiyala717c1fb2010-05-15 18:21:06 +0000294 pdata->init = omap4_twl6030_hsmmc_late_init;
295}
296
297static int __init omap4_twl6030_hsmmc_init(struct omap2_hsmmc_info *controllers)
298{
299 struct omap2_hsmmc_info *c;
300
301 omap2_hsmmc_init(controllers);
302 for (c = controllers; c->mmc; c++)
303 omap4_twl6030_hsmmc_set_late_init(c->dev);
304
305 return 0;
306}
307
Balaji T K6e30a7d2010-05-12 08:27:30 +0000308static struct regulator_init_data sdp4430_vaux1 = {
309 .constraints = {
310 .min_uV = 1000000,
311 .max_uV = 3000000,
312 .apply_uV = true,
313 .valid_modes_mask = REGULATOR_MODE_NORMAL
314 | REGULATOR_MODE_STANDBY,
315 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
316 | REGULATOR_CHANGE_MODE
317 | REGULATOR_CHANGE_STATUS,
318 },
Santosh Shilimkar50263912010-08-02 13:18:03 +0300319 .num_consumer_supplies = 1,
320 .consumer_supplies = sdp4430_vaux_supply,
Balaji T K6e30a7d2010-05-12 08:27:30 +0000321};
322
323static struct regulator_init_data sdp4430_vaux2 = {
324 .constraints = {
325 .min_uV = 1200000,
326 .max_uV = 2800000,
327 .apply_uV = true,
328 .valid_modes_mask = REGULATOR_MODE_NORMAL
329 | REGULATOR_MODE_STANDBY,
330 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
331 | REGULATOR_CHANGE_MODE
332 | REGULATOR_CHANGE_STATUS,
333 },
334};
335
336static struct regulator_init_data sdp4430_vaux3 = {
337 .constraints = {
338 .min_uV = 1000000,
339 .max_uV = 3000000,
340 .apply_uV = true,
341 .valid_modes_mask = REGULATOR_MODE_NORMAL
342 | REGULATOR_MODE_STANDBY,
343 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
344 | REGULATOR_CHANGE_MODE
345 | REGULATOR_CHANGE_STATUS,
346 },
347};
348
349/* VMMC1 for MMC1 card */
350static struct regulator_init_data sdp4430_vmmc = {
351 .constraints = {
352 .min_uV = 1200000,
353 .max_uV = 3000000,
354 .apply_uV = true,
355 .valid_modes_mask = REGULATOR_MODE_NORMAL
356 | REGULATOR_MODE_STANDBY,
357 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
358 | REGULATOR_CHANGE_MODE
359 | REGULATOR_CHANGE_STATUS,
360 },
Santosh Shilimkar50263912010-08-02 13:18:03 +0300361 .num_consumer_supplies = 1,
Balaji T K6e30a7d2010-05-12 08:27:30 +0000362 .consumer_supplies = sdp4430_vmmc_supply,
363};
364
365static struct regulator_init_data sdp4430_vpp = {
366 .constraints = {
367 .min_uV = 1800000,
368 .max_uV = 2500000,
369 .apply_uV = true,
370 .valid_modes_mask = REGULATOR_MODE_NORMAL
371 | REGULATOR_MODE_STANDBY,
372 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
373 | REGULATOR_CHANGE_MODE
374 | REGULATOR_CHANGE_STATUS,
375 },
376};
377
378static struct regulator_init_data sdp4430_vusim = {
379 .constraints = {
380 .min_uV = 1200000,
381 .max_uV = 2900000,
382 .apply_uV = true,
383 .valid_modes_mask = REGULATOR_MODE_NORMAL
384 | REGULATOR_MODE_STANDBY,
385 .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
386 | REGULATOR_CHANGE_MODE
387 | REGULATOR_CHANGE_STATUS,
388 },
389};
390
391static struct regulator_init_data sdp4430_vana = {
392 .constraints = {
393 .min_uV = 2100000,
394 .max_uV = 2100000,
395 .apply_uV = true,
396 .valid_modes_mask = REGULATOR_MODE_NORMAL
397 | REGULATOR_MODE_STANDBY,
398 .valid_ops_mask = REGULATOR_CHANGE_MODE
399 | REGULATOR_CHANGE_STATUS,
400 },
401};
402
403static struct regulator_init_data sdp4430_vcxio = {
404 .constraints = {
405 .min_uV = 1800000,
406 .max_uV = 1800000,
407 .apply_uV = true,
408 .valid_modes_mask = REGULATOR_MODE_NORMAL
409 | REGULATOR_MODE_STANDBY,
410 .valid_ops_mask = REGULATOR_CHANGE_MODE
411 | REGULATOR_CHANGE_STATUS,
412 },
413};
414
415static struct regulator_init_data sdp4430_vdac = {
416 .constraints = {
417 .min_uV = 1800000,
418 .max_uV = 1800000,
419 .apply_uV = true,
420 .valid_modes_mask = REGULATOR_MODE_NORMAL
421 | REGULATOR_MODE_STANDBY,
422 .valid_ops_mask = REGULATOR_CHANGE_MODE
423 | REGULATOR_CHANGE_STATUS,
424 },
425};
426
427static struct regulator_init_data sdp4430_vusb = {
428 .constraints = {
429 .min_uV = 3300000,
430 .max_uV = 3300000,
431 .apply_uV = true,
432 .valid_modes_mask = REGULATOR_MODE_NORMAL
433 | REGULATOR_MODE_STANDBY,
434 .valid_ops_mask = REGULATOR_CHANGE_MODE
435 | REGULATOR_CHANGE_STATUS,
436 },
437};
438
439static struct twl4030_platform_data sdp4430_twldata = {
440 .irq_base = TWL6030_IRQ_BASE,
441 .irq_end = TWL6030_IRQ_END,
442
443 /* Regulators */
444 .vmmc = &sdp4430_vmmc,
445 .vpp = &sdp4430_vpp,
446 .vusim = &sdp4430_vusim,
447 .vana = &sdp4430_vana,
448 .vcxio = &sdp4430_vcxio,
449 .vdac = &sdp4430_vdac,
450 .vusb = &sdp4430_vusb,
451 .vaux1 = &sdp4430_vaux1,
452 .vaux2 = &sdp4430_vaux2,
453 .vaux3 = &sdp4430_vaux3,
454};
455
456static struct i2c_board_info __initdata sdp4430_i2c_boardinfo[] = {
457 {
458 I2C_BOARD_INFO("twl6030", 0x48),
459 .flags = I2C_CLIENT_WAKE,
460 .irq = OMAP44XX_IRQ_SYS_1N,
461 .platform_data = &sdp4430_twldata,
462 },
463};
Shubhrajyoti Datta83078f92010-08-02 13:18:04 +0300464static struct i2c_board_info __initdata sdp4430_i2c_3_boardinfo[] = {
465 {
466 I2C_BOARD_INFO("tmp105", 0x48),
467 },
468};
Shubhrajyoti Datta0df891b2010-09-23 18:22:47 -0700469static struct i2c_board_info __initdata sdp4430_i2c_4_boardinfo[] = {
470 {
471 I2C_BOARD_INFO("hmc5843", 0x1e),
472 },
473};
Santosh Shilimkarbaeb73e2010-05-12 08:27:29 +0000474static int __init omap4_i2c_init(void)
475{
476 /*
477 * Phoenix Audio IC needs I2C1 to
478 * start with 400 KHz or less
479 */
Balaji T K6e30a7d2010-05-12 08:27:30 +0000480 omap_register_i2c_bus(1, 400, sdp4430_i2c_boardinfo,
481 ARRAY_SIZE(sdp4430_i2c_boardinfo));
Santosh Shilimkarbaeb73e2010-05-12 08:27:29 +0000482 omap_register_i2c_bus(2, 400, NULL, 0);
Shubhrajyoti Datta83078f92010-08-02 13:18:04 +0300483 omap_register_i2c_bus(3, 400, sdp4430_i2c_3_boardinfo,
484 ARRAY_SIZE(sdp4430_i2c_3_boardinfo));
Shubhrajyoti Datta0df891b2010-09-23 18:22:47 -0700485 omap_register_i2c_bus(4, 400, sdp4430_i2c_4_boardinfo,
486 ARRAY_SIZE(sdp4430_i2c_4_boardinfo));
Santosh Shilimkarbaeb73e2010-05-12 08:27:29 +0000487 return 0;
488}
Shubhrajyoti Datta94ce7a62010-09-23 18:22:49 -0700489
490static void __init omap_sfh7741prox_init(void)
491{
492 int error;
493
494 error = gpio_request(OMAP4_SFH7741_ENABLE_GPIO, "sfh7741");
495 if (error < 0) {
496 pr_err("%s:failed to request GPIO %d, error %d\n",
497 __func__, OMAP4_SFH7741_ENABLE_GPIO, error);
498 return;
499 }
500
501 error = gpio_direction_output(OMAP4_SFH7741_ENABLE_GPIO , 0);
502 if (error < 0) {
503 pr_err("%s: GPIO configuration failed: GPIO %d,error %d\n",
504 __func__, OMAP4_SFH7741_ENABLE_GPIO, error);
505 gpio_free(OMAP4_SFH7741_ENABLE_GPIO);
506 }
507}
508
Benoit Coussonfb6bf632010-08-10 17:43:15 +0200509#ifdef CONFIG_OMAP_MUX
510static struct omap_board_mux board_mux[] __initdata = {
511 { .reg_offset = OMAP_MUX_TERMINATOR },
512};
513#else
514#define board_mux NULL
515#endif
516
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -0700517static void __init omap_4430sdp_init(void)
518{
Abraham Arceb2aa5e52010-05-14 12:05:26 -0700519 int status;
Benoit Cousson6fea7b02010-09-27 10:50:33 +0200520 int package = OMAP_PACKAGE_CBS;
Abraham Arceb2aa5e52010-05-14 12:05:26 -0700521
Benoit Cousson6fea7b02010-09-27 10:50:33 +0200522 if (omap_rev() == OMAP4430_REV_ES1_0)
523 package = OMAP_PACKAGE_CBL;
524 omap4_mux_init(board_mux, package);
525
Santosh Shilimkarbaeb73e2010-05-12 08:27:29 +0000526 omap4_i2c_init();
Shubhrajyoti Datta94ce7a62010-09-23 18:22:49 -0700527 omap_sfh7741prox_init();
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -0700528 platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices));
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -0700529 omap_serial_init();
kishore kadiyala717c1fb2010-05-15 18:21:06 +0000530 omap4_twl6030_hsmmc_init(mmc);
Maulik Mankadbce06682010-02-17 14:09:32 -0800531 /* OMAP4 SDP uses internal transceiver so register nop transceiver */
532 usb_nop_xceiv_register();
Santosh Shilimkarae46ec772010-02-16 19:29:20 +0530533 /* FIXME: allow multi-omap to boot until musb is updated for omap4 */
534 if (!cpu_is_omap44xx())
535 usb_musb_init(&musb_board_data);
Abraham Arceb2aa5e52010-05-14 12:05:26 -0700536
537 status = omap_ethernet_init();
538 if (status) {
539 pr_err("Ethernet initialization failed: %d\n", status);
540 } else {
541 sdp4430_spi_board_info[0].irq = gpio_to_irq(ETH_KS8851_IRQ);
542 spi_register_board_info(sdp4430_spi_board_info,
543 ARRAY_SIZE(sdp4430_spi_board_info));
544 }
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -0700545}
546
547static void __init omap_4430sdp_map_io(void)
548{
549 omap2_set_globals_443x();
Tony Lindgren6fbd55d2010-02-12 12:26:47 -0800550 omap44xx_map_common_io();
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -0700551}
552
553MACHINE_START(OMAP_4430SDP, "OMAP4430 4430SDP board")
554 /* Maintainer: Santosh Shilimkar - Texas Instruments Inc */
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -0700555 .boot_params = 0x80000100,
556 .map_io = omap_4430sdp_map_io,
Russell King71ee7da2010-05-23 10:18:16 +0100557 .reserve = omap_reserve,
Santosh Shilimkar46ba0ab2009-05-28 14:16:05 -0700558 .init_irq = omap_4430sdp_init_irq,
559 .init_machine = omap_4430sdp_init,
560 .timer = &omap_timer,
561MACHINE_END