board-mop500.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. /*
  2. * Copyright (C) 2008-2012 ST-Ericsson
  3. *
  4. * Author: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2, as
  8. * published by the Free Software Foundation.
  9. *
  10. */
  11. #include <linux/kernel.h>
  12. #include <linux/init.h>
  13. #include <linux/interrupt.h>
  14. #include <linux/platform_device.h>
  15. #include <linux/clk.h>
  16. #include <linux/io.h>
  17. #include <linux/i2c.h>
  18. #include <linux/platform_data/i2c-nomadik.h>
  19. #include <linux/platform_data/db8500_thermal.h>
  20. #include <linux/gpio.h>
  21. #include <linux/amba/bus.h>
  22. #include <linux/amba/pl022.h>
  23. #include <linux/amba/serial.h>
  24. #include <linux/spi/spi.h>
  25. #include <linux/mfd/abx500/ab8500.h>
  26. #include <linux/regulator/ab8500.h>
  27. #include <linux/regulator/fixed.h>
  28. #include <linux/regulator/driver.h>
  29. #include <linux/regulator/gpio-regulator.h>
  30. #include <linux/mfd/tc3589x.h>
  31. #include <linux/mfd/tps6105x.h>
  32. #include <linux/mfd/abx500/ab8500-gpio.h>
  33. #include <linux/mfd/abx500/ab8500-codec.h>
  34. #include <linux/platform_data/leds-lp55xx.h>
  35. #include <linux/input.h>
  36. #include <linux/smsc911x.h>
  37. #include <linux/gpio_keys.h>
  38. #include <linux/delay.h>
  39. #include <linux/leds.h>
  40. #include <linux/pinctrl/consumer.h>
  41. #include <linux/platform_data/pinctrl-nomadik.h>
  42. #include <linux/platform_data/dma-ste-dma40.h>
  43. #include <asm/mach-types.h>
  44. #include "setup.h"
  45. #include "devices.h"
  46. #include "irqs.h"
  47. #include <linux/platform_data/crypto-ux500.h>
  48. #include "ste-dma40-db8500.h"
  49. #include "db8500-regs.h"
  50. #include "devices-db8500.h"
  51. #include "board-mop500.h"
  52. #include "board-mop500-regulators.h"
  53. static struct gpio_led snowball_led_array[] = {
  54. {
  55. .name = "user_led",
  56. .default_trigger = "heartbeat",
  57. .gpio = 142,
  58. },
  59. };
  60. static struct gpio_led_platform_data snowball_led_data = {
  61. .leds = snowball_led_array,
  62. .num_leds = ARRAY_SIZE(snowball_led_array),
  63. };
  64. static struct platform_device snowball_led_dev = {
  65. .name = "leds-gpio",
  66. .dev = {
  67. .platform_data = &snowball_led_data,
  68. },
  69. };
  70. static struct fixed_voltage_config snowball_gpio_en_3v3_data = {
  71. .supply_name = "EN-3V3",
  72. .gpio = SNOWBALL_EN_3V3_ETH_GPIO,
  73. .microvolts = 3300000,
  74. .enable_high = 1,
  75. .init_data = &gpio_en_3v3_regulator,
  76. .startup_delay = 5000, /* 1200us */
  77. };
  78. static struct platform_device snowball_gpio_en_3v3_regulator_dev = {
  79. .name = "reg-fixed-voltage",
  80. .id = 1,
  81. .dev = {
  82. .platform_data = &snowball_gpio_en_3v3_data,
  83. },
  84. };
  85. /* Dynamically populated. */
  86. static struct gpio sdi0_reg_gpios[] = {
  87. { 0, GPIOF_OUT_INIT_LOW, "mmci_vsel" },
  88. };
  89. static struct gpio_regulator_state sdi0_reg_states[] = {
  90. { .value = 2900000, .gpios = (0 << 0) },
  91. { .value = 1800000, .gpios = (1 << 0) },
  92. };
  93. static struct gpio_regulator_config sdi0_reg_info = {
  94. .supply_name = "ext-mmc-level-shifter",
  95. .gpios = sdi0_reg_gpios,
  96. .nr_gpios = ARRAY_SIZE(sdi0_reg_gpios),
  97. .states = sdi0_reg_states,
  98. .nr_states = ARRAY_SIZE(sdi0_reg_states),
  99. .type = REGULATOR_VOLTAGE,
  100. .enable_high = 1,
  101. .enabled_at_boot = 0,
  102. .init_data = &sdi0_reg_init_data,
  103. .startup_delay = 100,
  104. };
  105. static struct platform_device sdi0_regulator = {
  106. .name = "gpio-regulator",
  107. .id = -1,
  108. .dev = {
  109. .platform_data = &sdi0_reg_info,
  110. },
  111. };
  112. static struct abx500_gpio_platform_data ab8500_gpio_pdata = {
  113. .gpio_base = MOP500_AB8500_PIN_GPIO(1),
  114. };
  115. /* ab8500-codec */
  116. static struct ab8500_codec_platform_data ab8500_codec_pdata = {
  117. .amics = {
  118. .mic1_type = AMIC_TYPE_DIFFERENTIAL,
  119. .mic2_type = AMIC_TYPE_DIFFERENTIAL,
  120. .mic1a_micbias = AMIC_MICBIAS_VAMIC1,
  121. .mic1b_micbias = AMIC_MICBIAS_VAMIC1,
  122. .mic2_micbias = AMIC_MICBIAS_VAMIC2
  123. },
  124. .ear_cmv = EAR_CMV_0_95V
  125. };
  126. static struct gpio_keys_button snowball_key_array[] = {
  127. {
  128. .gpio = 32,
  129. .type = EV_KEY,
  130. .code = KEY_1,
  131. .desc = "userpb",
  132. .active_low = 1,
  133. .debounce_interval = 50,
  134. .wakeup = 1,
  135. },
  136. {
  137. .gpio = 151,
  138. .type = EV_KEY,
  139. .code = KEY_2,
  140. .desc = "extkb1",
  141. .active_low = 1,
  142. .debounce_interval = 50,
  143. .wakeup = 1,
  144. },
  145. {
  146. .gpio = 152,
  147. .type = EV_KEY,
  148. .code = KEY_3,
  149. .desc = "extkb2",
  150. .active_low = 1,
  151. .debounce_interval = 50,
  152. .wakeup = 1,
  153. },
  154. {
  155. .gpio = 161,
  156. .type = EV_KEY,
  157. .code = KEY_4,
  158. .desc = "extkb3",
  159. .active_low = 1,
  160. .debounce_interval = 50,
  161. .wakeup = 1,
  162. },
  163. {
  164. .gpio = 162,
  165. .type = EV_KEY,
  166. .code = KEY_5,
  167. .desc = "extkb4",
  168. .active_low = 1,
  169. .debounce_interval = 50,
  170. .wakeup = 1,
  171. },
  172. };
  173. static struct gpio_keys_platform_data snowball_key_data = {
  174. .buttons = snowball_key_array,
  175. .nbuttons = ARRAY_SIZE(snowball_key_array),
  176. };
  177. static struct platform_device snowball_key_dev = {
  178. .name = "gpio-keys",
  179. .id = -1,
  180. .dev = {
  181. .platform_data = &snowball_key_data,
  182. }
  183. };
  184. static struct smsc911x_platform_config snowball_sbnet_cfg = {
  185. .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_HIGH,
  186. .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL,
  187. .flags = SMSC911X_USE_16BIT | SMSC911X_FORCE_INTERNAL_PHY,
  188. .shift = 1,
  189. };
  190. static struct resource sbnet_res[] = {
  191. {
  192. .name = "smsc911x-memory",
  193. .start = (0x5000 << 16),
  194. .end = (0x5000 << 16) + 0xffff,
  195. .flags = IORESOURCE_MEM,
  196. },
  197. {
  198. .start = NOMADIK_GPIO_TO_IRQ(140),
  199. .end = NOMADIK_GPIO_TO_IRQ(140),
  200. .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
  201. },
  202. };
  203. static struct platform_device snowball_sbnet_dev = {
  204. .name = "smsc911x",
  205. .num_resources = ARRAY_SIZE(sbnet_res),
  206. .resource = sbnet_res,
  207. .dev = {
  208. .platform_data = &snowball_sbnet_cfg,
  209. },
  210. };
  211. struct ab8500_platform_data ab8500_platdata = {
  212. .irq_base = MOP500_AB8500_IRQ_BASE,
  213. .regulator = &ab8500_regulator_plat_data,
  214. .gpio = &ab8500_gpio_pdata,
  215. .codec = &ab8500_codec_pdata,
  216. };
  217. static struct platform_device u8500_cpufreq_cooling_device = {
  218. .name = "db8500-cpufreq-cooling",
  219. };
  220. /*
  221. * TC35892
  222. */
  223. static void mop500_tc35892_init(struct tc3589x *tc3589x, unsigned int base)
  224. {
  225. struct device *parent = NULL;
  226. #if 0
  227. /* FIXME: Is the sdi actually part of tc3589x? */
  228. parent = tc3589x->dev;
  229. #endif
  230. mop500_sdi_tc35892_init(parent);
  231. }
  232. static struct tc3589x_gpio_platform_data mop500_tc35892_gpio_data = {
  233. .gpio_base = MOP500_EGPIO(0),
  234. .setup = mop500_tc35892_init,
  235. };
  236. static struct tc3589x_platform_data mop500_tc35892_data = {
  237. .block = TC3589x_BLOCK_GPIO,
  238. .gpio = &mop500_tc35892_gpio_data,
  239. .irq_base = MOP500_EGPIO_IRQ_BASE,
  240. };
  241. /* I2C0 devices only available on the first HREF/MOP500 */
  242. static struct i2c_board_info __initdata mop500_i2c0_devices[] = {
  243. {
  244. I2C_BOARD_INFO("tc3589x", 0x42),
  245. .irq = NOMADIK_GPIO_TO_IRQ(217),
  246. .platform_data = &mop500_tc35892_data,
  247. },
  248. };
  249. static struct i2c_board_info __initdata mop500_i2c2_devices[] = {
  250. {
  251. /* Light sensor Rohm BH1780GLI */
  252. I2C_BOARD_INFO("bh1780", 0x29),
  253. },
  254. };
  255. static int __init mop500_i2c_board_init(void)
  256. {
  257. if (machine_is_u8500())
  258. mop500_uib_i2c_add(0, mop500_i2c0_devices,
  259. ARRAY_SIZE(mop500_i2c0_devices));
  260. mop500_uib_i2c_add(2, mop500_i2c2_devices,
  261. ARRAY_SIZE(mop500_i2c2_devices));
  262. return 0;
  263. }
  264. device_initcall(mop500_i2c_board_init);
  265. static void __init mop500_i2c_init(struct device *parent)
  266. {
  267. db8500_add_i2c0(parent, NULL);
  268. db8500_add_i2c1(parent, NULL);
  269. db8500_add_i2c2(parent, NULL);
  270. db8500_add_i2c3(parent, NULL);
  271. }
  272. static struct gpio_keys_button mop500_gpio_keys[] = {
  273. {
  274. .desc = "SFH7741 Proximity Sensor",
  275. .type = EV_SW,
  276. .code = SW_FRONT_PROXIMITY,
  277. .active_low = 0,
  278. .can_disable = 1,
  279. }
  280. };
  281. static struct regulator *prox_regulator;
  282. static int mop500_prox_activate(struct device *dev);
  283. static void mop500_prox_deactivate(struct device *dev);
  284. static struct gpio_keys_platform_data mop500_gpio_keys_data = {
  285. .buttons = mop500_gpio_keys,
  286. .nbuttons = ARRAY_SIZE(mop500_gpio_keys),
  287. .enable = mop500_prox_activate,
  288. .disable = mop500_prox_deactivate,
  289. };
  290. static struct platform_device mop500_gpio_keys_device = {
  291. .name = "gpio-keys",
  292. .id = 0,
  293. .dev = {
  294. .platform_data = &mop500_gpio_keys_data,
  295. },
  296. };
  297. static int mop500_prox_activate(struct device *dev)
  298. {
  299. prox_regulator = regulator_get(&mop500_gpio_keys_device.dev,
  300. "vcc");
  301. if (IS_ERR(prox_regulator)) {
  302. dev_err(&mop500_gpio_keys_device.dev,
  303. "no regulator\n");
  304. return PTR_ERR(prox_regulator);
  305. }
  306. return regulator_enable(prox_regulator);
  307. }
  308. static void mop500_prox_deactivate(struct device *dev)
  309. {
  310. regulator_disable(prox_regulator);
  311. regulator_put(prox_regulator);
  312. }
  313. static struct cryp_platform_data u8500_cryp1_platform_data = {
  314. .mem_to_engine = {
  315. .dir = DMA_MEM_TO_DEV,
  316. .dev_type = DB8500_DMA_DEV48_CAC1,
  317. .mode = STEDMA40_MODE_LOGICAL,
  318. },
  319. .engine_to_mem = {
  320. .dir = DMA_DEV_TO_MEM,
  321. .dev_type = DB8500_DMA_DEV48_CAC1,
  322. .mode = STEDMA40_MODE_LOGICAL,
  323. }
  324. };
  325. static struct stedma40_chan_cfg u8500_hash_dma_cfg_tx = {
  326. .dir = DMA_MEM_TO_DEV,
  327. .dev_type = DB8500_DMA_DEV50_HAC1_TX,
  328. .mode = STEDMA40_MODE_LOGICAL,
  329. };
  330. static struct hash_platform_data u8500_hash1_platform_data = {
  331. .mem_to_engine = &u8500_hash_dma_cfg_tx,
  332. .dma_filter = stedma40_filter,
  333. };
  334. /* add any platform devices here - TODO */
  335. static struct platform_device *mop500_platform_devs[] __initdata = {
  336. &mop500_gpio_keys_device,
  337. &sdi0_regulator,
  338. };
  339. #ifdef CONFIG_STE_DMA40
  340. static struct stedma40_chan_cfg ssp0_dma_cfg_rx = {
  341. .mode = STEDMA40_MODE_LOGICAL,
  342. .dir = DMA_DEV_TO_MEM,
  343. .dev_type = DB8500_DMA_DEV8_SSP0,
  344. };
  345. static struct stedma40_chan_cfg ssp0_dma_cfg_tx = {
  346. .mode = STEDMA40_MODE_LOGICAL,
  347. .dir = DMA_MEM_TO_DEV,
  348. .dev_type = DB8500_DMA_DEV8_SSP0,
  349. };
  350. #endif
  351. struct pl022_ssp_controller ssp0_plat = {
  352. .bus_id = 0,
  353. #ifdef CONFIG_STE_DMA40
  354. .enable_dma = 1,
  355. .dma_filter = stedma40_filter,
  356. .dma_rx_param = &ssp0_dma_cfg_rx,
  357. .dma_tx_param = &ssp0_dma_cfg_tx,
  358. #else
  359. .enable_dma = 0,
  360. #endif
  361. /* on this platform, gpio 31,142,144,214 &
  362. * 224 are connected as chip selects
  363. */
  364. .num_chipselect = 5,
  365. };
  366. static void __init mop500_spi_init(struct device *parent)
  367. {
  368. db8500_add_ssp0(parent, &ssp0_plat);
  369. }
  370. #ifdef CONFIG_STE_DMA40
  371. static struct stedma40_chan_cfg uart0_dma_cfg_rx = {
  372. .mode = STEDMA40_MODE_LOGICAL,
  373. .dir = DMA_DEV_TO_MEM,
  374. .dev_type = DB8500_DMA_DEV13_UART0,
  375. };
  376. static struct stedma40_chan_cfg uart0_dma_cfg_tx = {
  377. .mode = STEDMA40_MODE_LOGICAL,
  378. .dir = DMA_MEM_TO_DEV,
  379. .dev_type = DB8500_DMA_DEV13_UART0,
  380. };
  381. static struct stedma40_chan_cfg uart1_dma_cfg_rx = {
  382. .mode = STEDMA40_MODE_LOGICAL,
  383. .dir = DMA_DEV_TO_MEM,
  384. .dev_type = DB8500_DMA_DEV12_UART1,
  385. };
  386. static struct stedma40_chan_cfg uart1_dma_cfg_tx = {
  387. .mode = STEDMA40_MODE_LOGICAL,
  388. .dir = DMA_MEM_TO_DEV,
  389. .dev_type = DB8500_DMA_DEV12_UART1,
  390. };
  391. static struct stedma40_chan_cfg uart2_dma_cfg_rx = {
  392. .mode = STEDMA40_MODE_LOGICAL,
  393. .dir = DMA_DEV_TO_MEM,
  394. .dev_type = DB8500_DMA_DEV11_UART2,
  395. };
  396. static struct stedma40_chan_cfg uart2_dma_cfg_tx = {
  397. .mode = STEDMA40_MODE_LOGICAL,
  398. .dir = DMA_MEM_TO_DEV,
  399. .dev_type = DB8500_DMA_DEV11_UART2,
  400. };
  401. #endif
  402. struct amba_pl011_data uart0_plat = {
  403. #ifdef CONFIG_STE_DMA40
  404. .dma_filter = stedma40_filter,
  405. .dma_rx_param = &uart0_dma_cfg_rx,
  406. .dma_tx_param = &uart0_dma_cfg_tx,
  407. #endif
  408. };
  409. struct amba_pl011_data uart1_plat = {
  410. #ifdef CONFIG_STE_DMA40
  411. .dma_filter = stedma40_filter,
  412. .dma_rx_param = &uart1_dma_cfg_rx,
  413. .dma_tx_param = &uart1_dma_cfg_tx,
  414. #endif
  415. };
  416. struct amba_pl011_data uart2_plat = {
  417. #ifdef CONFIG_STE_DMA40
  418. .dma_filter = stedma40_filter,
  419. .dma_rx_param = &uart2_dma_cfg_rx,
  420. .dma_tx_param = &uart2_dma_cfg_tx,
  421. #endif
  422. };
  423. static void __init mop500_uart_init(struct device *parent)
  424. {
  425. db8500_add_uart0(parent, &uart0_plat);
  426. db8500_add_uart1(parent, &uart1_plat);
  427. db8500_add_uart2(parent, &uart2_plat);
  428. }
  429. static void __init u8500_cryp1_hash1_init(struct device *parent)
  430. {
  431. db8500_add_cryp1(parent, &u8500_cryp1_platform_data);
  432. db8500_add_hash1(parent, &u8500_hash1_platform_data);
  433. }
  434. static struct platform_device *snowball_platform_devs[] __initdata = {
  435. &snowball_led_dev,
  436. &snowball_key_dev,
  437. &snowball_sbnet_dev,
  438. &snowball_gpio_en_3v3_regulator_dev,
  439. &u8500_cpufreq_cooling_device,
  440. &sdi0_regulator,
  441. };
  442. static void __init mop500_init_machine(void)
  443. {
  444. struct device *parent = NULL;
  445. int i;
  446. platform_device_register(&db8500_prcmu_device);
  447. mop500_gpio_keys[0].gpio = GPIO_PROX_SENSOR;
  448. sdi0_reg_info.enable_gpio = GPIO_SDMMC_EN;
  449. sdi0_reg_info.gpios[0].gpio = GPIO_SDMMC_1V8_3V_SEL;
  450. mop500_pinmaps_init();
  451. parent = u8500_init_devices();
  452. for (i = 0; i < ARRAY_SIZE(mop500_platform_devs); i++)
  453. mop500_platform_devs[i]->dev.parent = parent;
  454. platform_add_devices(mop500_platform_devs,
  455. ARRAY_SIZE(mop500_platform_devs));
  456. mop500_i2c_init(parent);
  457. mop500_sdi_init(parent);
  458. mop500_spi_init(parent);
  459. mop500_uart_init(parent);
  460. u8500_cryp1_hash1_init(parent);
  461. /* This board has full regulator constraints */
  462. regulator_has_full_constraints();
  463. }
  464. static void __init snowball_init_machine(void)
  465. {
  466. struct device *parent = NULL;
  467. int i;
  468. platform_device_register(&db8500_prcmu_device);
  469. sdi0_reg_info.enable_gpio = SNOWBALL_SDMMC_EN_GPIO;
  470. sdi0_reg_info.gpios[0].gpio = SNOWBALL_SDMMC_1V8_3V_GPIO;
  471. snowball_pinmaps_init();
  472. parent = u8500_init_devices();
  473. for (i = 0; i < ARRAY_SIZE(snowball_platform_devs); i++)
  474. snowball_platform_devs[i]->dev.parent = parent;
  475. platform_add_devices(snowball_platform_devs,
  476. ARRAY_SIZE(snowball_platform_devs));
  477. mop500_i2c_init(parent);
  478. snowball_sdi_init(parent);
  479. mop500_spi_init(parent);
  480. mop500_uart_init(parent);
  481. u8500_cryp1_hash1_init(parent);
  482. /* This board has full regulator constraints */
  483. regulator_has_full_constraints();
  484. }
  485. static void __init hrefv60_init_machine(void)
  486. {
  487. struct device *parent = NULL;
  488. int i;
  489. platform_device_register(&db8500_prcmu_device);
  490. /*
  491. * The HREFv60 board removed a GPIO expander and routed
  492. * all these GPIO pins to the internal GPIO controller
  493. * instead.
  494. */
  495. mop500_gpio_keys[0].gpio = HREFV60_PROX_SENSE_GPIO;
  496. sdi0_reg_info.enable_gpio = HREFV60_SDMMC_EN_GPIO;
  497. sdi0_reg_info.gpios[0].gpio = HREFV60_SDMMC_1V8_3V_GPIO;
  498. hrefv60_pinmaps_init();
  499. parent = u8500_init_devices();
  500. for (i = 0; i < ARRAY_SIZE(mop500_platform_devs); i++)
  501. mop500_platform_devs[i]->dev.parent = parent;
  502. platform_add_devices(mop500_platform_devs,
  503. ARRAY_SIZE(mop500_platform_devs));
  504. mop500_i2c_init(parent);
  505. hrefv60_sdi_init(parent);
  506. mop500_spi_init(parent);
  507. mop500_uart_init(parent);
  508. /* This board has full regulator constraints */
  509. regulator_has_full_constraints();
  510. }
  511. MACHINE_START(U8500, "ST-Ericsson MOP500 platform")
  512. /* Maintainer: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> */
  513. .atag_offset = 0x100,
  514. .smp = smp_ops(ux500_smp_ops),
  515. .map_io = u8500_map_io,
  516. .init_irq = ux500_init_irq,
  517. /* we re-use nomadik timer here */
  518. .init_time = ux500_timer_init,
  519. .init_machine = mop500_init_machine,
  520. .init_late = ux500_init_late,
  521. .restart = ux500_restart,
  522. MACHINE_END
  523. MACHINE_START(U8520, "ST-Ericsson U8520 Platform HREFP520")
  524. .atag_offset = 0x100,
  525. .map_io = u8500_map_io,
  526. .init_irq = ux500_init_irq,
  527. .init_time = ux500_timer_init,
  528. .init_machine = mop500_init_machine,
  529. .init_late = ux500_init_late,
  530. .restart = ux500_restart,
  531. MACHINE_END
  532. MACHINE_START(HREFV60, "ST-Ericsson U8500 Platform HREFv60+")
  533. .atag_offset = 0x100,
  534. .smp = smp_ops(ux500_smp_ops),
  535. .map_io = u8500_map_io,
  536. .init_irq = ux500_init_irq,
  537. .init_time = ux500_timer_init,
  538. .init_machine = hrefv60_init_machine,
  539. .init_late = ux500_init_late,
  540. .restart = ux500_restart,
  541. MACHINE_END
  542. MACHINE_START(SNOWBALL, "Calao Systems Snowball platform")
  543. .atag_offset = 0x100,
  544. .smp = smp_ops(ux500_smp_ops),
  545. .map_io = u8500_map_io,
  546. .init_irq = ux500_init_irq,
  547. /* we re-use nomadik timer here */
  548. .init_time = ux500_timer_init,
  549. .init_machine = snowball_init_machine,
  550. .init_late = NULL,
  551. .restart = ux500_restart,
  552. MACHINE_END