board-mop500.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  1. /*
  2. * Copyright (C) 2008-2009 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/io.h>
  16. #include <linux/i2c.h>
  17. #include <linux/gpio.h>
  18. #include <linux/amba/bus.h>
  19. #include <linux/amba/pl022.h>
  20. #include <linux/amba/serial.h>
  21. #include <linux/spi/spi.h>
  22. #include <linux/mfd/ab8500.h>
  23. #include <linux/regulator/ab8500.h>
  24. #include <linux/mfd/tc3589x.h>
  25. #include <linux/mfd/tps6105x.h>
  26. #include <linux/mfd/ab8500/gpio.h>
  27. #include <linux/leds-lp5521.h>
  28. #include <linux/input.h>
  29. #include <linux/smsc911x.h>
  30. #include <linux/gpio_keys.h>
  31. #include <linux/leds.h>
  32. #include <asm/mach-types.h>
  33. #include <asm/mach/arch.h>
  34. #include <plat/i2c.h>
  35. #include <plat/ste_dma40.h>
  36. #include <mach/hardware.h>
  37. #include <mach/setup.h>
  38. #include <mach/devices.h>
  39. #include <mach/irqs.h>
  40. #include "ste-dma40-db8500.h"
  41. #include "devices-db8500.h"
  42. #include "board-mop500.h"
  43. #include "board-mop500-regulators.h"
  44. static struct gpio_led snowball_led_array[] = {
  45. {
  46. .name = "user_led",
  47. .default_trigger = "none",
  48. .gpio = 142,
  49. },
  50. };
  51. static struct gpio_led_platform_data snowball_led_data = {
  52. .leds = snowball_led_array,
  53. .num_leds = ARRAY_SIZE(snowball_led_array),
  54. };
  55. static struct platform_device snowball_led_dev = {
  56. .name = "leds-gpio",
  57. .dev = {
  58. .platform_data = &snowball_led_data,
  59. },
  60. };
  61. static struct ab8500_gpio_platform_data ab8500_gpio_pdata = {
  62. .gpio_base = MOP500_AB8500_GPIO(0),
  63. .irq_base = MOP500_AB8500_VIR_GPIO_IRQ_BASE,
  64. /* config_reg is the initial configuration of ab8500 pins.
  65. * The pins can be configured as GPIO or alt functions based
  66. * on value present in GpioSel1 to GpioSel6 and AlternatFunction
  67. * register. This is the array of 7 configuration settings.
  68. * One has to compile time decide these settings. Below is the
  69. * explanation of these setting
  70. * GpioSel1 = 0x00 => Pins GPIO1 to GPIO8 are not used as GPIO
  71. * GpioSel2 = 0x1E => Pins GPIO10 to GPIO13 are configured as GPIO
  72. * GpioSel3 = 0x80 => Pin GPIO24 is configured as GPIO
  73. * GpioSel4 = 0x01 => Pin GPIo25 is configured as GPIO
  74. * GpioSel5 = 0x7A => Pins GPIO34, GPIO36 to GPIO39 are conf as GPIO
  75. * GpioSel6 = 0x00 => Pins GPIO41 & GPIo42 are not configured as GPIO
  76. * AlternaFunction = 0x00 => If Pins GPIO10 to 13 are not configured
  77. * as GPIO then this register selectes the alternate fucntions
  78. */
  79. .config_reg = {0x00, 0x1E, 0x80, 0x01,
  80. 0x7A, 0x00, 0x00},
  81. };
  82. static struct gpio_keys_button snowball_key_array[] = {
  83. {
  84. .gpio = 32,
  85. .type = EV_KEY,
  86. .code = KEY_1,
  87. .desc = "userpb",
  88. .active_low = 1,
  89. .debounce_interval = 50,
  90. .wakeup = 1,
  91. },
  92. {
  93. .gpio = 151,
  94. .type = EV_KEY,
  95. .code = KEY_2,
  96. .desc = "extkb1",
  97. .active_low = 1,
  98. .debounce_interval = 50,
  99. .wakeup = 1,
  100. },
  101. {
  102. .gpio = 152,
  103. .type = EV_KEY,
  104. .code = KEY_3,
  105. .desc = "extkb2",
  106. .active_low = 1,
  107. .debounce_interval = 50,
  108. .wakeup = 1,
  109. },
  110. {
  111. .gpio = 161,
  112. .type = EV_KEY,
  113. .code = KEY_4,
  114. .desc = "extkb3",
  115. .active_low = 1,
  116. .debounce_interval = 50,
  117. .wakeup = 1,
  118. },
  119. {
  120. .gpio = 162,
  121. .type = EV_KEY,
  122. .code = KEY_5,
  123. .desc = "extkb4",
  124. .active_low = 1,
  125. .debounce_interval = 50,
  126. .wakeup = 1,
  127. },
  128. };
  129. static struct gpio_keys_platform_data snowball_key_data = {
  130. .buttons = snowball_key_array,
  131. .nbuttons = ARRAY_SIZE(snowball_key_array),
  132. };
  133. static struct platform_device snowball_key_dev = {
  134. .name = "gpio-keys",
  135. .id = -1,
  136. .dev = {
  137. .platform_data = &snowball_key_data,
  138. }
  139. };
  140. static struct smsc911x_platform_config snowball_sbnet_cfg = {
  141. .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_HIGH,
  142. .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL,
  143. .flags = SMSC911X_USE_16BIT | SMSC911X_FORCE_INTERNAL_PHY,
  144. .shift = 1,
  145. };
  146. static struct resource sbnet_res[] = {
  147. {
  148. .name = "smsc911x-memory",
  149. .start = (0x5000 << 16),
  150. .end = (0x5000 << 16) + 0xffff,
  151. .flags = IORESOURCE_MEM,
  152. },
  153. {
  154. .start = NOMADIK_GPIO_TO_IRQ(140),
  155. .end = NOMADIK_GPIO_TO_IRQ(140),
  156. .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
  157. },
  158. };
  159. static struct platform_device snowball_sbnet_dev = {
  160. .name = "smsc911x",
  161. .num_resources = ARRAY_SIZE(sbnet_res),
  162. .resource = sbnet_res,
  163. .dev = {
  164. .platform_data = &snowball_sbnet_cfg,
  165. },
  166. };
  167. static struct ab8500_platform_data ab8500_platdata = {
  168. .irq_base = MOP500_AB8500_IRQ_BASE,
  169. .regulator_reg_init = ab8500_regulator_reg_init,
  170. .num_regulator_reg_init = ARRAY_SIZE(ab8500_regulator_reg_init),
  171. .regulator = ab8500_regulators,
  172. .num_regulator = ARRAY_SIZE(ab8500_regulators),
  173. .gpio = &ab8500_gpio_pdata,
  174. };
  175. static struct resource ab8500_resources[] = {
  176. [0] = {
  177. .start = IRQ_DB8500_AB8500,
  178. .end = IRQ_DB8500_AB8500,
  179. .flags = IORESOURCE_IRQ
  180. }
  181. };
  182. struct platform_device ab8500_device = {
  183. .name = "ab8500-i2c",
  184. .id = 0,
  185. .dev = {
  186. .platform_data = &ab8500_platdata,
  187. },
  188. .num_resources = 1,
  189. .resource = ab8500_resources,
  190. };
  191. /*
  192. * TPS61052
  193. */
  194. static struct tps6105x_platform_data mop500_tps61052_data = {
  195. .mode = TPS6105X_MODE_VOLTAGE,
  196. .regulator_data = &tps61052_regulator,
  197. };
  198. /*
  199. * TC35892
  200. */
  201. static void mop500_tc35892_init(struct tc3589x *tc3589x, unsigned int base)
  202. {
  203. mop500_sdi_tc35892_init();
  204. }
  205. static struct tc3589x_gpio_platform_data mop500_tc35892_gpio_data = {
  206. .gpio_base = MOP500_EGPIO(0),
  207. .setup = mop500_tc35892_init,
  208. };
  209. static struct tc3589x_platform_data mop500_tc35892_data = {
  210. .block = TC3589x_BLOCK_GPIO,
  211. .gpio = &mop500_tc35892_gpio_data,
  212. .irq_base = MOP500_EGPIO_IRQ_BASE,
  213. };
  214. static struct lp5521_led_config lp5521_pri_led[] = {
  215. [0] = {
  216. .chan_nr = 0,
  217. .led_current = 0x2f,
  218. .max_current = 0x5f,
  219. },
  220. [1] = {
  221. .chan_nr = 1,
  222. .led_current = 0x2f,
  223. .max_current = 0x5f,
  224. },
  225. [2] = {
  226. .chan_nr = 2,
  227. .led_current = 0x2f,
  228. .max_current = 0x5f,
  229. },
  230. };
  231. static struct lp5521_platform_data __initdata lp5521_pri_data = {
  232. .label = "lp5521_pri",
  233. .led_config = &lp5521_pri_led[0],
  234. .num_channels = 3,
  235. .clock_mode = LP5521_CLOCK_EXT,
  236. };
  237. static struct lp5521_led_config lp5521_sec_led[] = {
  238. [0] = {
  239. .chan_nr = 0,
  240. .led_current = 0x2f,
  241. .max_current = 0x5f,
  242. },
  243. [1] = {
  244. .chan_nr = 1,
  245. .led_current = 0x2f,
  246. .max_current = 0x5f,
  247. },
  248. [2] = {
  249. .chan_nr = 2,
  250. .led_current = 0x2f,
  251. .max_current = 0x5f,
  252. },
  253. };
  254. static struct lp5521_platform_data __initdata lp5521_sec_data = {
  255. .label = "lp5521_sec",
  256. .led_config = &lp5521_sec_led[0],
  257. .num_channels = 3,
  258. .clock_mode = LP5521_CLOCK_EXT,
  259. };
  260. static struct i2c_board_info __initdata mop500_i2c0_devices[] = {
  261. {
  262. I2C_BOARD_INFO("tc3589x", 0x42),
  263. .irq = NOMADIK_GPIO_TO_IRQ(217),
  264. .platform_data = &mop500_tc35892_data,
  265. },
  266. /* I2C0 devices only available prior to HREFv60 */
  267. {
  268. I2C_BOARD_INFO("tps61052", 0x33),
  269. .platform_data = &mop500_tps61052_data,
  270. },
  271. };
  272. #define NUM_PRE_V60_I2C0_DEVICES 1
  273. static struct i2c_board_info __initdata mop500_i2c2_devices[] = {
  274. {
  275. /* lp5521 LED driver, 1st device */
  276. I2C_BOARD_INFO("lp5521", 0x33),
  277. .platform_data = &lp5521_pri_data,
  278. },
  279. {
  280. /* lp5521 LED driver, 2st device */
  281. I2C_BOARD_INFO("lp5521", 0x34),
  282. .platform_data = &lp5521_sec_data,
  283. },
  284. {
  285. /* Light sensor Rohm BH1780GLI */
  286. I2C_BOARD_INFO("bh1780", 0x29),
  287. },
  288. };
  289. #define U8500_I2C_CONTROLLER(id, _slsu, _tft, _rft, clk, t_out, _sm) \
  290. static struct nmk_i2c_controller u8500_i2c##id##_data = { \
  291. /* \
  292. * slave data setup time, which is \
  293. * 250 ns,100ns,10ns which is 14,6,2 \
  294. * respectively for a 48 Mhz \
  295. * i2c clock \
  296. */ \
  297. .slsu = _slsu, \
  298. /* Tx FIFO threshold */ \
  299. .tft = _tft, \
  300. /* Rx FIFO threshold */ \
  301. .rft = _rft, \
  302. /* std. mode operation */ \
  303. .clk_freq = clk, \
  304. /* Slave response timeout(ms) */\
  305. .timeout = t_out, \
  306. .sm = _sm, \
  307. }
  308. /*
  309. * The board uses 4 i2c controllers, initialize all of
  310. * them with slave data setup time of 250 ns,
  311. * Tx & Rx FIFO threshold values as 8 and standard
  312. * mode of operation
  313. */
  314. U8500_I2C_CONTROLLER(0, 0xe, 1, 8, 100000, 200, I2C_FREQ_MODE_FAST);
  315. U8500_I2C_CONTROLLER(1, 0xe, 1, 8, 100000, 200, I2C_FREQ_MODE_FAST);
  316. U8500_I2C_CONTROLLER(2, 0xe, 1, 8, 100000, 200, I2C_FREQ_MODE_FAST);
  317. U8500_I2C_CONTROLLER(3, 0xe, 1, 8, 100000, 200, I2C_FREQ_MODE_FAST);
  318. static void __init mop500_i2c_init(void)
  319. {
  320. db8500_add_i2c0(&u8500_i2c0_data);
  321. db8500_add_i2c1(&u8500_i2c1_data);
  322. db8500_add_i2c2(&u8500_i2c2_data);
  323. db8500_add_i2c3(&u8500_i2c3_data);
  324. }
  325. static struct gpio_keys_button mop500_gpio_keys[] = {
  326. {
  327. .desc = "SFH7741 Proximity Sensor",
  328. .type = EV_SW,
  329. .code = SW_FRONT_PROXIMITY,
  330. .active_low = 0,
  331. .can_disable = 1,
  332. }
  333. };
  334. static struct regulator *prox_regulator;
  335. static int mop500_prox_activate(struct device *dev);
  336. static void mop500_prox_deactivate(struct device *dev);
  337. static struct gpio_keys_platform_data mop500_gpio_keys_data = {
  338. .buttons = mop500_gpio_keys,
  339. .nbuttons = ARRAY_SIZE(mop500_gpio_keys),
  340. .enable = mop500_prox_activate,
  341. .disable = mop500_prox_deactivate,
  342. };
  343. static struct platform_device mop500_gpio_keys_device = {
  344. .name = "gpio-keys",
  345. .id = 0,
  346. .dev = {
  347. .platform_data = &mop500_gpio_keys_data,
  348. },
  349. };
  350. static int mop500_prox_activate(struct device *dev)
  351. {
  352. prox_regulator = regulator_get(&mop500_gpio_keys_device.dev,
  353. "vcc");
  354. if (IS_ERR(prox_regulator)) {
  355. dev_err(&mop500_gpio_keys_device.dev,
  356. "no regulator\n");
  357. return PTR_ERR(prox_regulator);
  358. }
  359. regulator_enable(prox_regulator);
  360. return 0;
  361. }
  362. static void mop500_prox_deactivate(struct device *dev)
  363. {
  364. regulator_disable(prox_regulator);
  365. regulator_put(prox_regulator);
  366. }
  367. /* add any platform devices here - TODO */
  368. static struct platform_device *mop500_platform_devs[] __initdata = {
  369. &mop500_gpio_keys_device,
  370. &ab8500_device,
  371. };
  372. #ifdef CONFIG_STE_DMA40
  373. static struct stedma40_chan_cfg ssp0_dma_cfg_rx = {
  374. .mode = STEDMA40_MODE_LOGICAL,
  375. .dir = STEDMA40_PERIPH_TO_MEM,
  376. .src_dev_type = DB8500_DMA_DEV8_SSP0_RX,
  377. .dst_dev_type = STEDMA40_DEV_DST_MEMORY,
  378. .src_info.data_width = STEDMA40_BYTE_WIDTH,
  379. .dst_info.data_width = STEDMA40_BYTE_WIDTH,
  380. };
  381. static struct stedma40_chan_cfg ssp0_dma_cfg_tx = {
  382. .mode = STEDMA40_MODE_LOGICAL,
  383. .dir = STEDMA40_MEM_TO_PERIPH,
  384. .src_dev_type = STEDMA40_DEV_SRC_MEMORY,
  385. .dst_dev_type = DB8500_DMA_DEV8_SSP0_TX,
  386. .src_info.data_width = STEDMA40_BYTE_WIDTH,
  387. .dst_info.data_width = STEDMA40_BYTE_WIDTH,
  388. };
  389. #endif
  390. static struct pl022_ssp_controller ssp0_platform_data = {
  391. .bus_id = 0,
  392. #ifdef CONFIG_STE_DMA40
  393. .enable_dma = 1,
  394. .dma_filter = stedma40_filter,
  395. .dma_rx_param = &ssp0_dma_cfg_rx,
  396. .dma_tx_param = &ssp0_dma_cfg_tx,
  397. #else
  398. .enable_dma = 0,
  399. #endif
  400. /* on this platform, gpio 31,142,144,214 &
  401. * 224 are connected as chip selects
  402. */
  403. .num_chipselect = 5,
  404. };
  405. static void __init mop500_spi_init(void)
  406. {
  407. db8500_add_ssp0(&ssp0_platform_data);
  408. }
  409. #ifdef CONFIG_STE_DMA40
  410. static struct stedma40_chan_cfg uart0_dma_cfg_rx = {
  411. .mode = STEDMA40_MODE_LOGICAL,
  412. .dir = STEDMA40_PERIPH_TO_MEM,
  413. .src_dev_type = DB8500_DMA_DEV13_UART0_RX,
  414. .dst_dev_type = STEDMA40_DEV_DST_MEMORY,
  415. .src_info.data_width = STEDMA40_BYTE_WIDTH,
  416. .dst_info.data_width = STEDMA40_BYTE_WIDTH,
  417. };
  418. static struct stedma40_chan_cfg uart0_dma_cfg_tx = {
  419. .mode = STEDMA40_MODE_LOGICAL,
  420. .dir = STEDMA40_MEM_TO_PERIPH,
  421. .src_dev_type = STEDMA40_DEV_SRC_MEMORY,
  422. .dst_dev_type = DB8500_DMA_DEV13_UART0_TX,
  423. .src_info.data_width = STEDMA40_BYTE_WIDTH,
  424. .dst_info.data_width = STEDMA40_BYTE_WIDTH,
  425. };
  426. static struct stedma40_chan_cfg uart1_dma_cfg_rx = {
  427. .mode = STEDMA40_MODE_LOGICAL,
  428. .dir = STEDMA40_PERIPH_TO_MEM,
  429. .src_dev_type = DB8500_DMA_DEV12_UART1_RX,
  430. .dst_dev_type = STEDMA40_DEV_DST_MEMORY,
  431. .src_info.data_width = STEDMA40_BYTE_WIDTH,
  432. .dst_info.data_width = STEDMA40_BYTE_WIDTH,
  433. };
  434. static struct stedma40_chan_cfg uart1_dma_cfg_tx = {
  435. .mode = STEDMA40_MODE_LOGICAL,
  436. .dir = STEDMA40_MEM_TO_PERIPH,
  437. .src_dev_type = STEDMA40_DEV_SRC_MEMORY,
  438. .dst_dev_type = DB8500_DMA_DEV12_UART1_TX,
  439. .src_info.data_width = STEDMA40_BYTE_WIDTH,
  440. .dst_info.data_width = STEDMA40_BYTE_WIDTH,
  441. };
  442. static struct stedma40_chan_cfg uart2_dma_cfg_rx = {
  443. .mode = STEDMA40_MODE_LOGICAL,
  444. .dir = STEDMA40_PERIPH_TO_MEM,
  445. .src_dev_type = DB8500_DMA_DEV11_UART2_RX,
  446. .dst_dev_type = STEDMA40_DEV_DST_MEMORY,
  447. .src_info.data_width = STEDMA40_BYTE_WIDTH,
  448. .dst_info.data_width = STEDMA40_BYTE_WIDTH,
  449. };
  450. static struct stedma40_chan_cfg uart2_dma_cfg_tx = {
  451. .mode = STEDMA40_MODE_LOGICAL,
  452. .dir = STEDMA40_MEM_TO_PERIPH,
  453. .src_dev_type = STEDMA40_DEV_SRC_MEMORY,
  454. .dst_dev_type = DB8500_DMA_DEV11_UART2_TX,
  455. .src_info.data_width = STEDMA40_BYTE_WIDTH,
  456. .dst_info.data_width = STEDMA40_BYTE_WIDTH,
  457. };
  458. #endif
  459. static struct amba_pl011_data uart0_plat = {
  460. #ifdef CONFIG_STE_DMA40
  461. .dma_filter = stedma40_filter,
  462. .dma_rx_param = &uart0_dma_cfg_rx,
  463. .dma_tx_param = &uart0_dma_cfg_tx,
  464. #endif
  465. };
  466. static struct amba_pl011_data uart1_plat = {
  467. #ifdef CONFIG_STE_DMA40
  468. .dma_filter = stedma40_filter,
  469. .dma_rx_param = &uart1_dma_cfg_rx,
  470. .dma_tx_param = &uart1_dma_cfg_tx,
  471. #endif
  472. };
  473. static struct amba_pl011_data uart2_plat = {
  474. #ifdef CONFIG_STE_DMA40
  475. .dma_filter = stedma40_filter,
  476. .dma_rx_param = &uart2_dma_cfg_rx,
  477. .dma_tx_param = &uart2_dma_cfg_tx,
  478. #endif
  479. };
  480. static void __init mop500_uart_init(void)
  481. {
  482. db8500_add_uart0(&uart0_plat);
  483. db8500_add_uart1(&uart1_plat);
  484. db8500_add_uart2(&uart2_plat);
  485. }
  486. static struct platform_device *snowball_platform_devs[] __initdata = {
  487. &snowball_led_dev,
  488. &snowball_key_dev,
  489. &snowball_sbnet_dev,
  490. &ab8500_device,
  491. };
  492. static void __init mop500_init_machine(void)
  493. {
  494. int i2c0_devs;
  495. /*
  496. * The HREFv60 board removed a GPIO expander and routed
  497. * all these GPIO pins to the internal GPIO controller
  498. * instead.
  499. */
  500. if (!machine_is_snowball()) {
  501. if (machine_is_hrefv60())
  502. mop500_gpio_keys[0].gpio = HREFV60_PROX_SENSE_GPIO;
  503. else
  504. mop500_gpio_keys[0].gpio = GPIO_PROX_SENSOR;
  505. }
  506. u8500_init_devices();
  507. mop500_pins_init();
  508. if (machine_is_snowball())
  509. platform_add_devices(snowball_platform_devs,
  510. ARRAY_SIZE(snowball_platform_devs));
  511. else
  512. platform_add_devices(mop500_platform_devs,
  513. ARRAY_SIZE(mop500_platform_devs));
  514. mop500_i2c_init();
  515. if (!machine_is_snowball())
  516. mop500_sdi_init();
  517. mop500_spi_init();
  518. mop500_uart_init();
  519. i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices);
  520. if (machine_is_hrefv60())
  521. i2c0_devs -= NUM_PRE_V60_I2C0_DEVICES;
  522. i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs);
  523. i2c_register_board_info(2, mop500_i2c2_devices,
  524. ARRAY_SIZE(mop500_i2c2_devices));
  525. /* This board has full regulator constraints */
  526. regulator_has_full_constraints();
  527. }
  528. MACHINE_START(U8500, "ST-Ericsson MOP500 platform")
  529. /* Maintainer: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> */
  530. .boot_params = 0x100,
  531. .map_io = u8500_map_io,
  532. .init_irq = ux500_init_irq,
  533. /* we re-use nomadik timer here */
  534. .timer = &ux500_timer,
  535. .init_machine = mop500_init_machine,
  536. MACHINE_END
  537. MACHINE_START(HREFV60, "ST-Ericsson U8500 Platform HREFv60+")
  538. .boot_params = 0x100,
  539. .map_io = u8500_map_io,
  540. .init_irq = ux500_init_irq,
  541. .timer = &ux500_timer,
  542. .init_machine = mop500_init_machine,
  543. MACHINE_END
  544. MACHINE_START(SNOWBALL, "Calao Systems Snowball platform")
  545. .boot_params = 0x100,
  546. .map_io = u8500_map_io,
  547. .init_irq = ux500_init_irq,
  548. /* we re-use nomadik timer here */
  549. .timer = &ux500_timer,
  550. .init_machine = mop500_init_machine,
  551. MACHINE_END