board-omap3beagle.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  1. /*
  2. * linux/arch/arm/mach-omap2/board-omap3beagle.c
  3. *
  4. * Copyright (C) 2008 Texas Instruments
  5. *
  6. * Modified from mach-omap2/board-3430sdp.c
  7. *
  8. * Initial code: Syed Mohammed Khasim
  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. #include <linux/kernel.h>
  15. #include <linux/init.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/delay.h>
  18. #include <linux/err.h>
  19. #include <linux/clk.h>
  20. #include <linux/io.h>
  21. #include <linux/leds.h>
  22. #include <linux/pwm.h>
  23. #include <linux/leds_pwm.h>
  24. #include <linux/gpio.h>
  25. #include <linux/input.h>
  26. #include <linux/gpio_keys.h>
  27. #include <linux/opp.h>
  28. #include <linux/cpu.h>
  29. #include <linux/mtd/mtd.h>
  30. #include <linux/mtd/partitions.h>
  31. #include <linux/mtd/nand.h>
  32. #include <linux/mmc/host.h>
  33. #include <linux/usb/phy.h>
  34. #include <linux/usb/usb_phy_gen_xceiv.h>
  35. #include <linux/regulator/machine.h>
  36. #include <linux/i2c/twl.h>
  37. #include <asm/mach-types.h>
  38. #include <asm/mach/arch.h>
  39. #include <asm/mach/map.h>
  40. #include <asm/mach/flash.h>
  41. #include <video/omapdss.h>
  42. #include <video/omap-panel-data.h>
  43. #include <linux/platform_data/mtd-nand-omap2.h>
  44. #include "common.h"
  45. #include "omap_device.h"
  46. #include "gpmc.h"
  47. #include "soc.h"
  48. #include "mux.h"
  49. #include "hsmmc.h"
  50. #include "pm.h"
  51. #include "board-flash.h"
  52. #include "common-board-devices.h"
  53. #define NAND_CS 0
  54. static struct pwm_lookup pwm_lookup[] = {
  55. /* LEDB -> PMU_STAT */
  56. PWM_LOOKUP("twl-pwmled", 1, "leds_pwm", "beagleboard::pmu_stat"),
  57. };
  58. static struct led_pwm pwm_leds[] = {
  59. {
  60. .name = "beagleboard::pmu_stat",
  61. .max_brightness = 127,
  62. .pwm_period_ns = 7812500,
  63. },
  64. };
  65. static struct led_pwm_platform_data pwm_data = {
  66. .num_leds = ARRAY_SIZE(pwm_leds),
  67. .leds = pwm_leds,
  68. };
  69. static struct platform_device leds_pwm = {
  70. .name = "leds_pwm",
  71. .id = -1,
  72. .dev = {
  73. .platform_data = &pwm_data,
  74. },
  75. };
  76. /*
  77. * OMAP3 Beagle revision
  78. * Run time detection of Beagle revision is done by reading GPIO.
  79. * GPIO ID -
  80. * AXBX = GPIO173, GPIO172, GPIO171: 1 1 1
  81. * C1_3 = GPIO173, GPIO172, GPIO171: 1 1 0
  82. * C4 = GPIO173, GPIO172, GPIO171: 1 0 1
  83. * XMA/XMB = GPIO173, GPIO172, GPIO171: 0 0 0
  84. * XMC = GPIO173, GPIO172, GPIO171: 0 1 0
  85. */
  86. enum {
  87. OMAP3BEAGLE_BOARD_UNKN = 0,
  88. OMAP3BEAGLE_BOARD_AXBX,
  89. OMAP3BEAGLE_BOARD_C1_3,
  90. OMAP3BEAGLE_BOARD_C4,
  91. OMAP3BEAGLE_BOARD_XM,
  92. OMAP3BEAGLE_BOARD_XMC,
  93. };
  94. static u8 omap3_beagle_version;
  95. /*
  96. * Board-specific configuration
  97. * Defaults to BeagleBoard-xMC
  98. */
  99. static struct {
  100. int mmc1_gpio_wp;
  101. bool usb_pwr_level; /* 0 - Active Low, 1 - Active High */
  102. int dvi_pd_gpio;
  103. int usr_button_gpio;
  104. int mmc_caps;
  105. } beagle_config = {
  106. .mmc1_gpio_wp = -EINVAL,
  107. .usb_pwr_level = 0,
  108. .dvi_pd_gpio = -EINVAL,
  109. .usr_button_gpio = 4,
  110. .mmc_caps = MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA,
  111. };
  112. static struct gpio omap3_beagle_rev_gpios[] __initdata = {
  113. { 171, GPIOF_IN, "rev_id_0" },
  114. { 172, GPIOF_IN, "rev_id_1" },
  115. { 173, GPIOF_IN, "rev_id_2" },
  116. };
  117. static void __init omap3_beagle_init_rev(void)
  118. {
  119. int ret;
  120. u16 beagle_rev = 0;
  121. omap_mux_init_gpio(171, OMAP_PIN_INPUT_PULLUP);
  122. omap_mux_init_gpio(172, OMAP_PIN_INPUT_PULLUP);
  123. omap_mux_init_gpio(173, OMAP_PIN_INPUT_PULLUP);
  124. ret = gpio_request_array(omap3_beagle_rev_gpios,
  125. ARRAY_SIZE(omap3_beagle_rev_gpios));
  126. if (ret < 0) {
  127. printk(KERN_ERR "Unable to get revision detection GPIO pins\n");
  128. omap3_beagle_version = OMAP3BEAGLE_BOARD_UNKN;
  129. return;
  130. }
  131. beagle_rev = gpio_get_value(171) | (gpio_get_value(172) << 1)
  132. | (gpio_get_value(173) << 2);
  133. gpio_free_array(omap3_beagle_rev_gpios,
  134. ARRAY_SIZE(omap3_beagle_rev_gpios));
  135. switch (beagle_rev) {
  136. case 7:
  137. printk(KERN_INFO "OMAP3 Beagle Rev: Ax/Bx\n");
  138. omap3_beagle_version = OMAP3BEAGLE_BOARD_AXBX;
  139. beagle_config.mmc1_gpio_wp = 29;
  140. beagle_config.dvi_pd_gpio = 170;
  141. beagle_config.usr_button_gpio = 7;
  142. break;
  143. case 6:
  144. printk(KERN_INFO "OMAP3 Beagle Rev: C1/C2/C3\n");
  145. omap3_beagle_version = OMAP3BEAGLE_BOARD_C1_3;
  146. beagle_config.mmc1_gpio_wp = 23;
  147. beagle_config.dvi_pd_gpio = 170;
  148. beagle_config.usr_button_gpio = 7;
  149. break;
  150. case 5:
  151. printk(KERN_INFO "OMAP3 Beagle Rev: C4\n");
  152. omap3_beagle_version = OMAP3BEAGLE_BOARD_C4;
  153. beagle_config.mmc1_gpio_wp = 23;
  154. beagle_config.dvi_pd_gpio = 170;
  155. beagle_config.usr_button_gpio = 7;
  156. break;
  157. case 0:
  158. printk(KERN_INFO "OMAP3 Beagle Rev: xM Ax/Bx\n");
  159. omap3_beagle_version = OMAP3BEAGLE_BOARD_XM;
  160. beagle_config.usb_pwr_level = 1;
  161. beagle_config.mmc_caps &= ~MMC_CAP_8_BIT_DATA;
  162. break;
  163. case 2:
  164. printk(KERN_INFO "OMAP3 Beagle Rev: xM C\n");
  165. omap3_beagle_version = OMAP3BEAGLE_BOARD_XMC;
  166. beagle_config.mmc_caps &= ~MMC_CAP_8_BIT_DATA;
  167. break;
  168. default:
  169. printk(KERN_INFO "OMAP3 Beagle Rev: unknown %hd\n", beagle_rev);
  170. omap3_beagle_version = OMAP3BEAGLE_BOARD_UNKN;
  171. }
  172. }
  173. static struct mtd_partition omap3beagle_nand_partitions[] = {
  174. /* All the partition sizes are listed in terms of NAND block size */
  175. {
  176. .name = "X-Loader",
  177. .offset = 0,
  178. .size = 4 * NAND_BLOCK_SIZE,
  179. .mask_flags = MTD_WRITEABLE, /* force read-only */
  180. },
  181. {
  182. .name = "U-Boot",
  183. .offset = MTDPART_OFS_APPEND, /* Offset = 0x80000 */
  184. .size = 15 * NAND_BLOCK_SIZE,
  185. .mask_flags = MTD_WRITEABLE, /* force read-only */
  186. },
  187. {
  188. .name = "U-Boot Env",
  189. .offset = MTDPART_OFS_APPEND, /* Offset = 0x260000 */
  190. .size = 1 * NAND_BLOCK_SIZE,
  191. },
  192. {
  193. .name = "Kernel",
  194. .offset = MTDPART_OFS_APPEND, /* Offset = 0x280000 */
  195. .size = 32 * NAND_BLOCK_SIZE,
  196. },
  197. {
  198. .name = "File System",
  199. .offset = MTDPART_OFS_APPEND, /* Offset = 0x680000 */
  200. .size = MTDPART_SIZ_FULL,
  201. },
  202. };
  203. /* DSS */
  204. static struct connector_dvi_platform_data beagle_dvi_connector_pdata = {
  205. .name = "dvi",
  206. .source = "tfp410.0",
  207. .i2c_bus_num = 3,
  208. };
  209. static struct platform_device beagle_dvi_connector_device = {
  210. .name = "connector-dvi",
  211. .id = 0,
  212. .dev.platform_data = &beagle_dvi_connector_pdata,
  213. };
  214. static struct encoder_tfp410_platform_data beagle_tfp410_pdata = {
  215. .name = "tfp410.0",
  216. .source = "dpi.0",
  217. .data_lines = 24,
  218. .power_down_gpio = -1,
  219. };
  220. static struct platform_device beagle_tfp410_device = {
  221. .name = "tfp410",
  222. .id = 0,
  223. .dev.platform_data = &beagle_tfp410_pdata,
  224. };
  225. static struct connector_atv_platform_data beagle_tv_pdata = {
  226. .name = "tv",
  227. .source = "venc.0",
  228. .connector_type = OMAP_DSS_VENC_TYPE_SVIDEO,
  229. .invert_polarity = false,
  230. };
  231. static struct platform_device beagle_tv_connector_device = {
  232. .name = "connector-analog-tv",
  233. .id = 0,
  234. .dev.platform_data = &beagle_tv_pdata,
  235. };
  236. static struct omap_dss_board_info beagle_dss_data = {
  237. .default_display_name = "dvi",
  238. };
  239. #include "sdram-micron-mt46h32m32lf-6.h"
  240. static struct omap2_hsmmc_info mmc[] = {
  241. {
  242. .mmc = 1,
  243. .caps = MMC_CAP_4_BIT_DATA,
  244. .gpio_wp = -EINVAL,
  245. .deferred = true,
  246. },
  247. {} /* Terminator */
  248. };
  249. static struct regulator_consumer_supply beagle_vmmc1_supply[] = {
  250. REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"),
  251. };
  252. static struct regulator_consumer_supply beagle_vsim_supply[] = {
  253. REGULATOR_SUPPLY("vmmc_aux", "omap_hsmmc.0"),
  254. };
  255. static struct gpio_led gpio_leds[];
  256. /* PHY's VCC regulator might be added later, so flag that we need it */
  257. static struct usb_phy_gen_xceiv_platform_data hsusb2_phy_data = {
  258. .needs_vcc = true,
  259. };
  260. static struct usbhs_phy_data phy_data[] = {
  261. {
  262. .port = 2,
  263. .reset_gpio = 147,
  264. .vcc_gpio = -1, /* updated in beagle_twl_gpio_setup */
  265. .vcc_polarity = 1, /* updated in beagle_twl_gpio_setup */
  266. .platform_data = &hsusb2_phy_data,
  267. },
  268. };
  269. static int beagle_twl_gpio_setup(struct device *dev,
  270. unsigned gpio, unsigned ngpio)
  271. {
  272. int r;
  273. mmc[0].gpio_wp = beagle_config.mmc1_gpio_wp;
  274. /* gpio + 0 is "mmc0_cd" (input/IRQ) */
  275. mmc[0].gpio_cd = gpio + 0;
  276. omap_hsmmc_late_init(mmc);
  277. /*
  278. * TWL4030_GPIO_MAX + 0 == ledA, EHCI nEN_USB_PWR (out, XM active
  279. * high / others active low)
  280. * DVI reset GPIO is different between beagle revisions
  281. */
  282. /* Valid for all -xM revisions */
  283. if (cpu_is_omap3630()) {
  284. /*
  285. * gpio + 1 on Xm controls the TFP410's enable line (active low)
  286. * gpio + 2 control varies depending on the board rev as below:
  287. * P7/P8 revisions(prototype): Camera EN
  288. * A2+ revisions (production): LDO (DVI, serial, led blocks)
  289. */
  290. r = gpio_request_one(gpio + 1, GPIOF_OUT_INIT_LOW,
  291. "nDVI_PWR_EN");
  292. if (r)
  293. pr_err("%s: unable to configure nDVI_PWR_EN\n",
  294. __func__);
  295. beagle_config.dvi_pd_gpio = gpio + 2;
  296. } else {
  297. /*
  298. * REVISIT: need ehci-omap hooks for external VBUS
  299. * power switch and overcurrent detect
  300. */
  301. if (gpio_request_one(gpio + 1, GPIOF_IN, "EHCI_nOC"))
  302. pr_err("%s: unable to configure EHCI_nOC\n", __func__);
  303. }
  304. beagle_tfp410_pdata.power_down_gpio = beagle_config.dvi_pd_gpio;
  305. platform_device_register(&beagle_tfp410_device);
  306. platform_device_register(&beagle_dvi_connector_device);
  307. platform_device_register(&beagle_tv_connector_device);
  308. /* TWL4030_GPIO_MAX i.e. LED_GPO controls HS USB Port 2 power */
  309. phy_data[0].vcc_gpio = gpio + TWL4030_GPIO_MAX;
  310. phy_data[0].vcc_polarity = beagle_config.usb_pwr_level;
  311. usbhs_init_phys(phy_data, ARRAY_SIZE(phy_data));
  312. return 0;
  313. }
  314. static struct twl4030_gpio_platform_data beagle_gpio_data = {
  315. .use_leds = true,
  316. .pullups = BIT(1),
  317. .pulldowns = BIT(2) | BIT(6) | BIT(7) | BIT(8) | BIT(13)
  318. | BIT(15) | BIT(16) | BIT(17),
  319. .setup = beagle_twl_gpio_setup,
  320. };
  321. /* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */
  322. static struct regulator_init_data beagle_vmmc1 = {
  323. .constraints = {
  324. .min_uV = 1850000,
  325. .max_uV = 3150000,
  326. .valid_modes_mask = REGULATOR_MODE_NORMAL
  327. | REGULATOR_MODE_STANDBY,
  328. .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
  329. | REGULATOR_CHANGE_MODE
  330. | REGULATOR_CHANGE_STATUS,
  331. },
  332. .num_consumer_supplies = ARRAY_SIZE(beagle_vmmc1_supply),
  333. .consumer_supplies = beagle_vmmc1_supply,
  334. };
  335. /* VSIM for MMC1 pins DAT4..DAT7 (2 mA, plus card == max 50 mA) */
  336. static struct regulator_init_data beagle_vsim = {
  337. .constraints = {
  338. .min_uV = 1800000,
  339. .max_uV = 3000000,
  340. .valid_modes_mask = REGULATOR_MODE_NORMAL
  341. | REGULATOR_MODE_STANDBY,
  342. .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
  343. | REGULATOR_CHANGE_MODE
  344. | REGULATOR_CHANGE_STATUS,
  345. },
  346. .num_consumer_supplies = ARRAY_SIZE(beagle_vsim_supply),
  347. .consumer_supplies = beagle_vsim_supply,
  348. };
  349. static struct twl4030_platform_data beagle_twldata = {
  350. /* platform_data for children goes here */
  351. .gpio = &beagle_gpio_data,
  352. .vmmc1 = &beagle_vmmc1,
  353. .vsim = &beagle_vsim,
  354. };
  355. static struct i2c_board_info __initdata beagle_i2c_eeprom[] = {
  356. {
  357. I2C_BOARD_INFO("eeprom", 0x50),
  358. },
  359. };
  360. static int __init omap3_beagle_i2c_init(void)
  361. {
  362. omap3_pmic_get_config(&beagle_twldata,
  363. TWL_COMMON_PDATA_USB | TWL_COMMON_PDATA_MADC |
  364. TWL_COMMON_PDATA_AUDIO,
  365. TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2);
  366. beagle_twldata.vpll2->constraints.name = "VDVI";
  367. omap3_pmic_init("twl4030", &beagle_twldata);
  368. /* Bus 3 is attached to the DVI port where devices like the pico DLP
  369. * projector don't work reliably with 400kHz */
  370. omap_register_i2c_bus(3, 100, beagle_i2c_eeprom, ARRAY_SIZE(beagle_i2c_eeprom));
  371. return 0;
  372. }
  373. static struct gpio_led gpio_leds[] = {
  374. {
  375. .name = "beagleboard::usr0",
  376. .default_trigger = "heartbeat",
  377. .gpio = 150,
  378. },
  379. {
  380. .name = "beagleboard::usr1",
  381. .default_trigger = "mmc0",
  382. .gpio = 149,
  383. },
  384. };
  385. static struct gpio_led_platform_data gpio_led_info = {
  386. .leds = gpio_leds,
  387. .num_leds = ARRAY_SIZE(gpio_leds),
  388. };
  389. static struct platform_device leds_gpio = {
  390. .name = "leds-gpio",
  391. .id = -1,
  392. .dev = {
  393. .platform_data = &gpio_led_info,
  394. },
  395. };
  396. static struct gpio_keys_button gpio_buttons[] = {
  397. {
  398. .code = BTN_EXTRA,
  399. /* Dynamically assigned depending on board */
  400. .gpio = -EINVAL,
  401. .desc = "user",
  402. .wakeup = 1,
  403. },
  404. };
  405. static struct gpio_keys_platform_data gpio_key_info = {
  406. .buttons = gpio_buttons,
  407. .nbuttons = ARRAY_SIZE(gpio_buttons),
  408. };
  409. static struct platform_device keys_gpio = {
  410. .name = "gpio-keys",
  411. .id = -1,
  412. .dev = {
  413. .platform_data = &gpio_key_info,
  414. },
  415. };
  416. static struct platform_device madc_hwmon = {
  417. .name = "twl4030_madc_hwmon",
  418. .id = -1,
  419. };
  420. static struct platform_device *omap3_beagle_devices[] __initdata = {
  421. &leds_gpio,
  422. &keys_gpio,
  423. &madc_hwmon,
  424. &leds_pwm,
  425. };
  426. static struct usbhs_omap_platform_data usbhs_bdata __initdata = {
  427. .port_mode[1] = OMAP_EHCI_PORT_MODE_PHY,
  428. };
  429. #ifdef CONFIG_OMAP_MUX
  430. static struct omap_board_mux board_mux[] __initdata = {
  431. { .reg_offset = OMAP_MUX_TERMINATOR },
  432. };
  433. #endif
  434. static int __init beagle_opp_init(void)
  435. {
  436. int r = 0;
  437. if (!machine_is_omap3_beagle())
  438. return 0;
  439. /* Initialize the omap3 opp table if not already created. */
  440. r = omap3_opp_init();
  441. if (r < 0 && (r != -EEXIST)) {
  442. pr_err("%s: opp default init failed\n", __func__);
  443. return r;
  444. }
  445. /* Custom OPP enabled for all xM versions */
  446. if (cpu_is_omap3630()) {
  447. struct device *mpu_dev, *iva_dev;
  448. mpu_dev = get_cpu_device(0);
  449. iva_dev = omap_device_get_by_hwmod_name("iva");
  450. if (IS_ERR(mpu_dev) || IS_ERR(iva_dev)) {
  451. pr_err("%s: Aiee.. no mpu/dsp devices? %p %p\n",
  452. __func__, mpu_dev, iva_dev);
  453. return -ENODEV;
  454. }
  455. /* Enable MPU 1GHz and lower opps */
  456. r = opp_enable(mpu_dev, 800000000);
  457. /* TODO: MPU 1GHz needs SR and ABB */
  458. /* Enable IVA 800MHz and lower opps */
  459. r |= opp_enable(iva_dev, 660000000);
  460. /* TODO: DSP 800MHz needs SR and ABB */
  461. if (r) {
  462. pr_err("%s: failed to enable higher opp %d\n",
  463. __func__, r);
  464. /*
  465. * Cleanup - disable the higher freqs - we dont care
  466. * about the results
  467. */
  468. opp_disable(mpu_dev, 800000000);
  469. opp_disable(iva_dev, 660000000);
  470. }
  471. }
  472. return 0;
  473. }
  474. omap_device_initcall(beagle_opp_init);
  475. static void __init omap3_beagle_init(void)
  476. {
  477. omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
  478. omap3_beagle_init_rev();
  479. if (gpio_is_valid(beagle_config.mmc1_gpio_wp))
  480. omap_mux_init_gpio(beagle_config.mmc1_gpio_wp, OMAP_PIN_INPUT);
  481. mmc[0].caps = beagle_config.mmc_caps;
  482. omap_hsmmc_init(mmc);
  483. omap3_beagle_i2c_init();
  484. gpio_buttons[0].gpio = beagle_config.usr_button_gpio;
  485. platform_add_devices(omap3_beagle_devices,
  486. ARRAY_SIZE(omap3_beagle_devices));
  487. if (gpio_is_valid(beagle_config.dvi_pd_gpio))
  488. omap_mux_init_gpio(beagle_config.dvi_pd_gpio, OMAP_PIN_OUTPUT);
  489. omap_display_init(&beagle_dss_data);
  490. omap_serial_init();
  491. omap_sdrc_init(mt46h32m32lf6_sdrc_params,
  492. mt46h32m32lf6_sdrc_params);
  493. usb_bind_phy("musb-hdrc.0.auto", 0, "twl4030_usb");
  494. usb_musb_init(NULL);
  495. usbhs_init(&usbhs_bdata);
  496. board_nand_init(omap3beagle_nand_partitions,
  497. ARRAY_SIZE(omap3beagle_nand_partitions), NAND_CS,
  498. NAND_BUSWIDTH_16, NULL);
  499. omap_twl4030_audio_init("omap3beagle", NULL);
  500. /* Ensure msecure is mux'd to be able to set the RTC. */
  501. omap_mux_init_signal("sys_drm_msecure", OMAP_PIN_OFF_OUTPUT_HIGH);
  502. /* Ensure SDRC pins are mux'd for self-refresh */
  503. omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
  504. omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
  505. pwm_add_table(pwm_lookup, ARRAY_SIZE(pwm_lookup));
  506. }
  507. MACHINE_START(OMAP3_BEAGLE, "OMAP3 Beagle Board")
  508. /* Maintainer: Syed Mohammed Khasim - http://beagleboard.org */
  509. .atag_offset = 0x100,
  510. .reserve = omap_reserve,
  511. .map_io = omap3_map_io,
  512. .init_early = omap3_init_early,
  513. .init_irq = omap3_init_irq,
  514. .handle_irq = omap3_intc_handle_irq,
  515. .init_machine = omap3_beagle_init,
  516. .init_late = omap3_init_late,
  517. .init_time = omap3_secure_sync32k_timer_init,
  518. .restart = omap3xxx_restart,
  519. MACHINE_END