board-omap3beagle.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  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/gpio.h>
  23. #include <linux/input.h>
  24. #include <linux/gpio_keys.h>
  25. #include <linux/opp.h>
  26. #include <linux/mtd/mtd.h>
  27. #include <linux/mtd/partitions.h>
  28. #include <linux/mtd/nand.h>
  29. #include <linux/mmc/host.h>
  30. #include <linux/regulator/machine.h>
  31. #include <linux/i2c/twl.h>
  32. #include <mach/hardware.h>
  33. #include <asm/mach-types.h>
  34. #include <asm/mach/arch.h>
  35. #include <asm/mach/map.h>
  36. #include <asm/mach/flash.h>
  37. #include <plat/board.h>
  38. #include <plat/common.h>
  39. #include <video/omapdss.h>
  40. #include <video/omap-panel-generic-dpi.h>
  41. #include <plat/gpmc.h>
  42. #include <plat/nand.h>
  43. #include <plat/usb.h>
  44. #include <plat/omap_device.h>
  45. #include "mux.h"
  46. #include "hsmmc.h"
  47. #include "timer-gp.h"
  48. #include "pm.h"
  49. #include "common-board-devices.h"
  50. /*
  51. * OMAP3 Beagle revision
  52. * Run time detection of Beagle revision is done by reading GPIO.
  53. * GPIO ID -
  54. * AXBX = GPIO173, GPIO172, GPIO171: 1 1 1
  55. * C1_3 = GPIO173, GPIO172, GPIO171: 1 1 0
  56. * C4 = GPIO173, GPIO172, GPIO171: 1 0 1
  57. * XM = GPIO173, GPIO172, GPIO171: 0 0 0
  58. */
  59. enum {
  60. OMAP3BEAGLE_BOARD_UNKN = 0,
  61. OMAP3BEAGLE_BOARD_AXBX,
  62. OMAP3BEAGLE_BOARD_C1_3,
  63. OMAP3BEAGLE_BOARD_C4,
  64. OMAP3BEAGLE_BOARD_XM,
  65. };
  66. static u8 omap3_beagle_version;
  67. static u8 omap3_beagle_get_rev(void)
  68. {
  69. return omap3_beagle_version;
  70. }
  71. static struct gpio omap3_beagle_rev_gpios[] __initdata = {
  72. { 171, GPIOF_IN, "rev_id_0" },
  73. { 172, GPIOF_IN, "rev_id_1" },
  74. { 173, GPIOF_IN, "rev_id_2" },
  75. };
  76. static void __init omap3_beagle_init_rev(void)
  77. {
  78. int ret;
  79. u16 beagle_rev = 0;
  80. omap_mux_init_gpio(171, OMAP_PIN_INPUT_PULLUP);
  81. omap_mux_init_gpio(172, OMAP_PIN_INPUT_PULLUP);
  82. omap_mux_init_gpio(173, OMAP_PIN_INPUT_PULLUP);
  83. ret = gpio_request_array(omap3_beagle_rev_gpios,
  84. ARRAY_SIZE(omap3_beagle_rev_gpios));
  85. if (ret < 0) {
  86. printk(KERN_ERR "Unable to get revision detection GPIO pins\n");
  87. omap3_beagle_version = OMAP3BEAGLE_BOARD_UNKN;
  88. return;
  89. }
  90. beagle_rev = gpio_get_value(171) | (gpio_get_value(172) << 1)
  91. | (gpio_get_value(173) << 2);
  92. gpio_free_array(omap3_beagle_rev_gpios,
  93. ARRAY_SIZE(omap3_beagle_rev_gpios));
  94. switch (beagle_rev) {
  95. case 7:
  96. printk(KERN_INFO "OMAP3 Beagle Rev: Ax/Bx\n");
  97. omap3_beagle_version = OMAP3BEAGLE_BOARD_AXBX;
  98. break;
  99. case 6:
  100. printk(KERN_INFO "OMAP3 Beagle Rev: C1/C2/C3\n");
  101. omap3_beagle_version = OMAP3BEAGLE_BOARD_C1_3;
  102. break;
  103. case 5:
  104. printk(KERN_INFO "OMAP3 Beagle Rev: C4\n");
  105. omap3_beagle_version = OMAP3BEAGLE_BOARD_C4;
  106. break;
  107. case 0:
  108. printk(KERN_INFO "OMAP3 Beagle Rev: xM\n");
  109. omap3_beagle_version = OMAP3BEAGLE_BOARD_XM;
  110. break;
  111. default:
  112. printk(KERN_INFO "OMAP3 Beagle Rev: unknown %hd\n", beagle_rev);
  113. omap3_beagle_version = OMAP3BEAGLE_BOARD_UNKN;
  114. }
  115. }
  116. static struct mtd_partition omap3beagle_nand_partitions[] = {
  117. /* All the partition sizes are listed in terms of NAND block size */
  118. {
  119. .name = "X-Loader",
  120. .offset = 0,
  121. .size = 4 * NAND_BLOCK_SIZE,
  122. .mask_flags = MTD_WRITEABLE, /* force read-only */
  123. },
  124. {
  125. .name = "U-Boot",
  126. .offset = MTDPART_OFS_APPEND, /* Offset = 0x80000 */
  127. .size = 15 * NAND_BLOCK_SIZE,
  128. .mask_flags = MTD_WRITEABLE, /* force read-only */
  129. },
  130. {
  131. .name = "U-Boot Env",
  132. .offset = MTDPART_OFS_APPEND, /* Offset = 0x260000 */
  133. .size = 1 * NAND_BLOCK_SIZE,
  134. },
  135. {
  136. .name = "Kernel",
  137. .offset = MTDPART_OFS_APPEND, /* Offset = 0x280000 */
  138. .size = 32 * NAND_BLOCK_SIZE,
  139. },
  140. {
  141. .name = "File System",
  142. .offset = MTDPART_OFS_APPEND, /* Offset = 0x680000 */
  143. .size = MTDPART_SIZ_FULL,
  144. },
  145. };
  146. /* DSS */
  147. static int beagle_enable_dvi(struct omap_dss_device *dssdev)
  148. {
  149. if (gpio_is_valid(dssdev->reset_gpio))
  150. gpio_set_value(dssdev->reset_gpio, 1);
  151. return 0;
  152. }
  153. static void beagle_disable_dvi(struct omap_dss_device *dssdev)
  154. {
  155. if (gpio_is_valid(dssdev->reset_gpio))
  156. gpio_set_value(dssdev->reset_gpio, 0);
  157. }
  158. static struct panel_generic_dpi_data dvi_panel = {
  159. .name = "generic",
  160. .platform_enable = beagle_enable_dvi,
  161. .platform_disable = beagle_disable_dvi,
  162. };
  163. static struct omap_dss_device beagle_dvi_device = {
  164. .type = OMAP_DISPLAY_TYPE_DPI,
  165. .name = "dvi",
  166. .driver_name = "generic_dpi_panel",
  167. .data = &dvi_panel,
  168. .phy.dpi.data_lines = 24,
  169. .reset_gpio = -EINVAL,
  170. };
  171. static struct omap_dss_device beagle_tv_device = {
  172. .name = "tv",
  173. .driver_name = "venc",
  174. .type = OMAP_DISPLAY_TYPE_VENC,
  175. .phy.venc.type = OMAP_DSS_VENC_TYPE_SVIDEO,
  176. };
  177. static struct omap_dss_device *beagle_dss_devices[] = {
  178. &beagle_dvi_device,
  179. &beagle_tv_device,
  180. };
  181. static struct omap_dss_board_info beagle_dss_data = {
  182. .num_devices = ARRAY_SIZE(beagle_dss_devices),
  183. .devices = beagle_dss_devices,
  184. .default_device = &beagle_dvi_device,
  185. };
  186. static struct regulator_consumer_supply beagle_vdac_supply =
  187. REGULATOR_SUPPLY("vdda_dac", "omapdss_venc");
  188. static struct regulator_consumer_supply beagle_vdvi_supplies[] = {
  189. REGULATOR_SUPPLY("vdds_dsi", "omapdss"),
  190. REGULATOR_SUPPLY("vdds_dsi", "omapdss_dsi1"),
  191. };
  192. static void __init beagle_display_init(void)
  193. {
  194. int r;
  195. r = gpio_request_one(beagle_dvi_device.reset_gpio, GPIOF_OUT_INIT_LOW,
  196. "DVI reset");
  197. if (r < 0)
  198. printk(KERN_ERR "Unable to get DVI reset GPIO\n");
  199. }
  200. #include "sdram-micron-mt46h32m32lf-6.h"
  201. static struct omap2_hsmmc_info mmc[] = {
  202. {
  203. .mmc = 1,
  204. .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA,
  205. .gpio_wp = 29,
  206. },
  207. {} /* Terminator */
  208. };
  209. static struct regulator_consumer_supply beagle_vmmc1_supply = {
  210. .supply = "vmmc",
  211. };
  212. static struct regulator_consumer_supply beagle_vsim_supply = {
  213. .supply = "vmmc_aux",
  214. };
  215. static struct gpio_led gpio_leds[];
  216. static int beagle_twl_gpio_setup(struct device *dev,
  217. unsigned gpio, unsigned ngpio)
  218. {
  219. int r, usb_pwr_level;
  220. if (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_XM) {
  221. mmc[0].gpio_wp = -EINVAL;
  222. } else if ((omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_C1_3) ||
  223. (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_C4)) {
  224. omap_mux_init_gpio(23, OMAP_PIN_INPUT);
  225. mmc[0].gpio_wp = 23;
  226. } else {
  227. omap_mux_init_gpio(29, OMAP_PIN_INPUT);
  228. }
  229. /* gpio + 0 is "mmc0_cd" (input/IRQ) */
  230. mmc[0].gpio_cd = gpio + 0;
  231. omap2_hsmmc_init(mmc);
  232. /* link regulators to MMC adapters */
  233. beagle_vmmc1_supply.dev = mmc[0].dev;
  234. beagle_vsim_supply.dev = mmc[0].dev;
  235. /*
  236. * TWL4030_GPIO_MAX + 0 == ledA, EHCI nEN_USB_PWR (out, XM active
  237. * high / others active low)
  238. * DVI reset GPIO is different between beagle revisions
  239. */
  240. if (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_XM) {
  241. usb_pwr_level = GPIOF_OUT_INIT_HIGH;
  242. beagle_dvi_device.reset_gpio = 129;
  243. /*
  244. * gpio + 1 on Xm controls the TFP410's enable line (active low)
  245. * gpio + 2 control varies depending on the board rev as below:
  246. * P7/P8 revisions(prototype): Camera EN
  247. * A2+ revisions (production): LDO (DVI, serial, led blocks)
  248. */
  249. r = gpio_request_one(gpio + 1, GPIOF_OUT_INIT_LOW,
  250. "nDVI_PWR_EN");
  251. if (r)
  252. pr_err("%s: unable to configure nDVI_PWR_EN\n",
  253. __func__);
  254. r = gpio_request_one(gpio + 2, GPIOF_OUT_INIT_HIGH,
  255. "DVI_LDO_EN");
  256. if (r)
  257. pr_err("%s: unable to configure DVI_LDO_EN\n",
  258. __func__);
  259. } else {
  260. usb_pwr_level = GPIOF_OUT_INIT_LOW;
  261. beagle_dvi_device.reset_gpio = 170;
  262. /*
  263. * REVISIT: need ehci-omap hooks for external VBUS
  264. * power switch and overcurrent detect
  265. */
  266. if (gpio_request_one(gpio + 1, GPIOF_IN, "EHCI_nOC"))
  267. pr_err("%s: unable to configure EHCI_nOC\n", __func__);
  268. }
  269. gpio_request_one(gpio + TWL4030_GPIO_MAX, usb_pwr_level, "nEN_USB_PWR");
  270. /* TWL4030_GPIO_MAX + 1 == ledB, PMU_STAT (out, active low LED) */
  271. gpio_leds[2].gpio = gpio + TWL4030_GPIO_MAX + 1;
  272. return 0;
  273. }
  274. static struct twl4030_gpio_platform_data beagle_gpio_data = {
  275. .gpio_base = OMAP_MAX_GPIO_LINES,
  276. .irq_base = TWL4030_GPIO_IRQ_BASE,
  277. .irq_end = TWL4030_GPIO_IRQ_END,
  278. .use_leds = true,
  279. .pullups = BIT(1),
  280. .pulldowns = BIT(2) | BIT(6) | BIT(7) | BIT(8) | BIT(13)
  281. | BIT(15) | BIT(16) | BIT(17),
  282. .setup = beagle_twl_gpio_setup,
  283. };
  284. /* VMMC1 for MMC1 pins CMD, CLK, DAT0..DAT3 (20 mA, plus card == max 220 mA) */
  285. static struct regulator_init_data beagle_vmmc1 = {
  286. .constraints = {
  287. .min_uV = 1850000,
  288. .max_uV = 3150000,
  289. .valid_modes_mask = REGULATOR_MODE_NORMAL
  290. | REGULATOR_MODE_STANDBY,
  291. .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
  292. | REGULATOR_CHANGE_MODE
  293. | REGULATOR_CHANGE_STATUS,
  294. },
  295. .num_consumer_supplies = 1,
  296. .consumer_supplies = &beagle_vmmc1_supply,
  297. };
  298. /* VSIM for MMC1 pins DAT4..DAT7 (2 mA, plus card == max 50 mA) */
  299. static struct regulator_init_data beagle_vsim = {
  300. .constraints = {
  301. .min_uV = 1800000,
  302. .max_uV = 3000000,
  303. .valid_modes_mask = REGULATOR_MODE_NORMAL
  304. | REGULATOR_MODE_STANDBY,
  305. .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE
  306. | REGULATOR_CHANGE_MODE
  307. | REGULATOR_CHANGE_STATUS,
  308. },
  309. .num_consumer_supplies = 1,
  310. .consumer_supplies = &beagle_vsim_supply,
  311. };
  312. /* VDAC for DSS driving S-Video (8 mA unloaded, max 65 mA) */
  313. static struct regulator_init_data beagle_vdac = {
  314. .constraints = {
  315. .min_uV = 1800000,
  316. .max_uV = 1800000,
  317. .valid_modes_mask = REGULATOR_MODE_NORMAL
  318. | REGULATOR_MODE_STANDBY,
  319. .valid_ops_mask = REGULATOR_CHANGE_MODE
  320. | REGULATOR_CHANGE_STATUS,
  321. },
  322. .num_consumer_supplies = 1,
  323. .consumer_supplies = &beagle_vdac_supply,
  324. };
  325. /* VPLL2 for digital video outputs */
  326. static struct regulator_init_data beagle_vpll2 = {
  327. .constraints = {
  328. .name = "VDVI",
  329. .min_uV = 1800000,
  330. .max_uV = 1800000,
  331. .valid_modes_mask = REGULATOR_MODE_NORMAL
  332. | REGULATOR_MODE_STANDBY,
  333. .valid_ops_mask = REGULATOR_CHANGE_MODE
  334. | REGULATOR_CHANGE_STATUS,
  335. },
  336. .num_consumer_supplies = ARRAY_SIZE(beagle_vdvi_supplies),
  337. .consumer_supplies = beagle_vdvi_supplies,
  338. };
  339. static struct twl4030_usb_data beagle_usb_data = {
  340. .usb_mode = T2_USB_MODE_ULPI,
  341. };
  342. static struct twl4030_codec_audio_data beagle_audio_data;
  343. static struct twl4030_codec_data beagle_codec_data = {
  344. .audio_mclk = 26000000,
  345. .audio = &beagle_audio_data,
  346. };
  347. static struct twl4030_platform_data beagle_twldata = {
  348. .irq_base = TWL4030_IRQ_BASE,
  349. .irq_end = TWL4030_IRQ_END,
  350. /* platform_data for children goes here */
  351. .usb = &beagle_usb_data,
  352. .gpio = &beagle_gpio_data,
  353. .codec = &beagle_codec_data,
  354. .vmmc1 = &beagle_vmmc1,
  355. .vsim = &beagle_vsim,
  356. .vdac = &beagle_vdac,
  357. .vpll2 = &beagle_vpll2,
  358. };
  359. static struct i2c_board_info __initdata beagle_i2c_eeprom[] = {
  360. {
  361. I2C_BOARD_INFO("eeprom", 0x50),
  362. },
  363. };
  364. static int __init omap3_beagle_i2c_init(void)
  365. {
  366. omap3_pmic_init("twl4030", &beagle_twldata);
  367. /* Bus 3 is attached to the DVI port where devices like the pico DLP
  368. * projector don't work reliably with 400kHz */
  369. omap_register_i2c_bus(3, 100, beagle_i2c_eeprom, ARRAY_SIZE(beagle_i2c_eeprom));
  370. return 0;
  371. }
  372. static struct gpio_led gpio_leds[] = {
  373. {
  374. .name = "beagleboard::usr0",
  375. .default_trigger = "heartbeat",
  376. .gpio = 150,
  377. },
  378. {
  379. .name = "beagleboard::usr1",
  380. .default_trigger = "mmc0",
  381. .gpio = 149,
  382. },
  383. {
  384. .name = "beagleboard::pmu_stat",
  385. .gpio = -EINVAL, /* gets replaced */
  386. .active_low = true,
  387. },
  388. };
  389. static struct gpio_led_platform_data gpio_led_info = {
  390. .leds = gpio_leds,
  391. .num_leds = ARRAY_SIZE(gpio_leds),
  392. };
  393. static struct platform_device leds_gpio = {
  394. .name = "leds-gpio",
  395. .id = -1,
  396. .dev = {
  397. .platform_data = &gpio_led_info,
  398. },
  399. };
  400. static struct gpio_keys_button gpio_buttons[] = {
  401. {
  402. .code = BTN_EXTRA,
  403. .gpio = 7,
  404. .desc = "user",
  405. .wakeup = 1,
  406. },
  407. };
  408. static struct gpio_keys_platform_data gpio_key_info = {
  409. .buttons = gpio_buttons,
  410. .nbuttons = ARRAY_SIZE(gpio_buttons),
  411. };
  412. static struct platform_device keys_gpio = {
  413. .name = "gpio-keys",
  414. .id = -1,
  415. .dev = {
  416. .platform_data = &gpio_key_info,
  417. },
  418. };
  419. static void __init omap3_beagle_init_early(void)
  420. {
  421. omap2_init_common_infrastructure();
  422. omap2_init_common_devices(mt46h32m32lf6_sdrc_params,
  423. mt46h32m32lf6_sdrc_params);
  424. }
  425. static void __init omap3_beagle_init_irq(void)
  426. {
  427. omap3_init_irq();
  428. #ifdef CONFIG_OMAP_32K_TIMER
  429. omap2_gp_clockevent_set_gptimer(12);
  430. #endif
  431. }
  432. static struct platform_device *omap3_beagle_devices[] __initdata = {
  433. &leds_gpio,
  434. &keys_gpio,
  435. };
  436. static const struct usbhs_omap_board_data usbhs_bdata __initconst = {
  437. .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY,
  438. .port_mode[1] = OMAP_EHCI_PORT_MODE_PHY,
  439. .port_mode[2] = OMAP_USBHS_PORT_MODE_UNUSED,
  440. .phy_reset = true,
  441. .reset_gpio_port[0] = -EINVAL,
  442. .reset_gpio_port[1] = 147,
  443. .reset_gpio_port[2] = -EINVAL
  444. };
  445. #ifdef CONFIG_OMAP_MUX
  446. static struct omap_board_mux board_mux[] __initdata = {
  447. { .reg_offset = OMAP_MUX_TERMINATOR },
  448. };
  449. #endif
  450. static void __init beagle_opp_init(void)
  451. {
  452. int r = 0;
  453. /* Initialize the omap3 opp table */
  454. if (omap3_opp_init()) {
  455. pr_err("%s: opp default init failed\n", __func__);
  456. return;
  457. }
  458. /* Custom OPP enabled for XM */
  459. if (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_XM) {
  460. struct omap_hwmod *mh = omap_hwmod_lookup("mpu");
  461. struct omap_hwmod *dh = omap_hwmod_lookup("iva");
  462. struct device *dev;
  463. if (!mh || !dh) {
  464. pr_err("%s: Aiee.. no mpu/dsp devices? %p %p\n",
  465. __func__, mh, dh);
  466. return;
  467. }
  468. /* Enable MPU 1GHz and lower opps */
  469. dev = &mh->od->pdev.dev;
  470. r = opp_enable(dev, 800000000);
  471. /* TODO: MPU 1GHz needs SR and ABB */
  472. /* Enable IVA 800MHz and lower opps */
  473. dev = &dh->od->pdev.dev;
  474. r |= opp_enable(dev, 660000000);
  475. /* TODO: DSP 800MHz needs SR and ABB */
  476. if (r) {
  477. pr_err("%s: failed to enable higher opp %d\n",
  478. __func__, r);
  479. /*
  480. * Cleanup - disable the higher freqs - we dont care
  481. * about the results
  482. */
  483. dev = &mh->od->pdev.dev;
  484. opp_disable(dev, 800000000);
  485. dev = &dh->od->pdev.dev;
  486. opp_disable(dev, 660000000);
  487. }
  488. }
  489. return;
  490. }
  491. static void __init omap3_beagle_init(void)
  492. {
  493. omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
  494. omap3_beagle_init_rev();
  495. omap3_beagle_i2c_init();
  496. platform_add_devices(omap3_beagle_devices,
  497. ARRAY_SIZE(omap3_beagle_devices));
  498. omap_display_init(&beagle_dss_data);
  499. omap_serial_init();
  500. omap_mux_init_gpio(170, OMAP_PIN_INPUT);
  501. /* REVISIT leave DVI powered down until it's needed ... */
  502. gpio_request_one(170, GPIOF_OUT_INIT_HIGH, "DVI_nPD");
  503. usb_musb_init(NULL);
  504. usbhs_init(&usbhs_bdata);
  505. omap_nand_flash_init(NAND_BUSWIDTH_16, omap3beagle_nand_partitions,
  506. ARRAY_SIZE(omap3beagle_nand_partitions));
  507. /* Ensure msecure is mux'd to be able to set the RTC. */
  508. omap_mux_init_signal("sys_drm_msecure", OMAP_PIN_OFF_OUTPUT_HIGH);
  509. /* Ensure SDRC pins are mux'd for self-refresh */
  510. omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
  511. omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
  512. beagle_display_init();
  513. beagle_opp_init();
  514. }
  515. MACHINE_START(OMAP3_BEAGLE, "OMAP3 Beagle Board")
  516. /* Maintainer: Syed Mohammed Khasim - http://beagleboard.org */
  517. .boot_params = 0x80000100,
  518. .reserve = omap_reserve,
  519. .map_io = omap3_map_io,
  520. .init_early = omap3_beagle_init_early,
  521. .init_irq = omap3_beagle_init_irq,
  522. .init_machine = omap3_beagle_init,
  523. .timer = &omap3_secure_timer,
  524. MACHINE_END