blob: 6e1907fa94f0405a788acd8896b9202a8a4c67c0 [file] [log] [blame]
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +01001/*
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>
Rabin Vincentb8410a12010-08-09 19:18:17 +053016#include <linux/i2c.h>
Rabin Vincentea05a572010-06-03 07:58:42 +010017#include <linux/gpio.h>
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010018#include <linux/amba/bus.h>
19#include <linux/amba/pl022.h>
Linus Walleij5d7b8462010-10-14 13:57:59 +020020#include <linux/amba/serial.h>
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010021#include <linux/spi/spi.h>
Rabin Vincent39ae7022010-07-26 11:12:15 +010022#include <linux/mfd/ab8500.h>
Bengt Jonsson79568b92011-03-11 11:54:46 +010023#include <linux/regulator/ab8500.h>
Sundar Iyer20406eb2010-12-13 09:33:14 +053024#include <linux/mfd/tc3589x.h>
Linus Walleijfe67dfc2011-03-07 11:48:15 +010025#include <linux/mfd/tps6105x.h>
Bibek Basu3ef374a2011-02-15 12:56:16 +053026#include <linux/mfd/ab8500/gpio.h>
Philippe Langlaisdd7b2a02011-01-12 11:26:20 +010027#include <linux/leds-lp5521.h>
Philippe Langlaisa71b8192011-01-14 10:53:59 +010028#include <linux/input.h>
29#include <linux/gpio_keys.h>
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010030
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010031#include <asm/mach-types.h>
32#include <asm/mach/arch.h>
33
Srinidhi Kasagard48a41c2010-02-03 13:02:48 +010034#include <plat/i2c.h>
Linus Walleij5d7b8462010-10-14 13:57:59 +020035#include <plat/ste_dma40.h>
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010036
37#include <mach/hardware.h>
38#include <mach/setup.h>
Rabin Vincent9e4e7fe2010-05-03 08:03:52 +010039#include <mach/devices.h>
Linus Walleij29aeb3c2010-09-06 22:15:08 +010040#include <mach/irqs.h>
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010041
Linus Walleij5d7b8462010-10-14 13:57:59 +020042#include "ste-dma40-db8500.h"
Rabin Vincentfbf1ead2010-09-29 19:46:32 +053043#include "devices-db8500.h"
Hanumath Prasad008f8a22010-08-19 12:06:32 +010044#include "board-mop500.h"
Bengt Jonssona1e516e2010-12-10 11:08:48 +010045#include "board-mop500-regulators.h"
Rabin Vincentea05a572010-06-03 07:58:42 +010046
Bibek Basu3ef374a2011-02-15 12:56:16 +053047static struct ab8500_gpio_platform_data ab8500_gpio_pdata = {
48 .gpio_base = MOP500_AB8500_GPIO(0),
49 .irq_base = MOP500_AB8500_VIR_GPIO_IRQ_BASE,
50 /* config_reg is the initial configuration of ab8500 pins.
51 * The pins can be configured as GPIO or alt functions based
52 * on value present in GpioSel1 to GpioSel6 and AlternatFunction
53 * register. This is the array of 7 configuration settings.
54 * One has to compile time decide these settings. Below is the
Lucas De Marchi25985ed2011-03-30 22:57:33 -030055 * explanation of these setting
Bibek Basu3ef374a2011-02-15 12:56:16 +053056 * GpioSel1 = 0x00 => Pins GPIO1 to GPIO8 are not used as GPIO
57 * GpioSel2 = 0x1E => Pins GPIO10 to GPIO13 are configured as GPIO
58 * GpioSel3 = 0x80 => Pin GPIO24 is configured as GPIO
59 * GpioSel4 = 0x01 => Pin GPIo25 is configured as GPIO
60 * GpioSel5 = 0x7A => Pins GPIO34, GPIO36 to GPIO39 are conf as GPIO
61 * GpioSel6 = 0x00 => Pins GPIO41 & GPIo42 are not configured as GPIO
62 * AlternaFunction = 0x00 => If Pins GPIO10 to 13 are not configured
63 * as GPIO then this register selectes the alternate fucntions
64 */
65 .config_reg = {0x00, 0x1E, 0x80, 0x01,
66 0x7A, 0x00, 0x00},
67};
68
Rabin Vincent39ae7022010-07-26 11:12:15 +010069static struct ab8500_platform_data ab8500_platdata = {
70 .irq_base = MOP500_AB8500_IRQ_BASE,
Bengt Jonssondfa3a822011-03-09 13:34:17 +010071 .regulator_reg_init = ab8500_regulator_reg_init,
72 .num_regulator_reg_init = ARRAY_SIZE(ab8500_regulator_reg_init),
Bengt Jonssona1e516e2010-12-10 11:08:48 +010073 .regulator = ab8500_regulators,
74 .num_regulator = ARRAY_SIZE(ab8500_regulators),
Bibek Basu3ef374a2011-02-15 12:56:16 +053075 .gpio = &ab8500_gpio_pdata,
Rabin Vincent39ae7022010-07-26 11:12:15 +010076};
77
Linus Walleij29aeb3c2010-09-06 22:15:08 +010078static struct resource ab8500_resources[] = {
79 [0] = {
Rabin Vincent22039b72010-12-08 11:07:56 +053080 .start = IRQ_DB8500_AB8500,
81 .end = IRQ_DB8500_AB8500,
82 .flags = IORESOURCE_IRQ
Linus Walleij29aeb3c2010-09-06 22:15:08 +010083 }
84};
85
86struct platform_device ab8500_device = {
87 .name = "ab8500-i2c",
88 .id = 0,
89 .dev = {
90 .platform_data = &ab8500_platdata,
91 },
92 .num_resources = 1,
93 .resource = ab8500_resources,
94};
95
Rabin Vincentb8410a12010-08-09 19:18:17 +053096/*
Linus Walleijfe67dfc2011-03-07 11:48:15 +010097 * TPS61052
98 */
99
100static struct tps6105x_platform_data mop500_tps61052_data = {
101 .mode = TPS6105X_MODE_VOLTAGE,
102 .regulator_data = &tps61052_regulator,
103};
104
105/*
Rabin Vincentb8410a12010-08-09 19:18:17 +0530106 * TC35892
107 */
108
Sundar Iyer20406eb2010-12-13 09:33:14 +0530109static void mop500_tc35892_init(struct tc3589x *tc3589x, unsigned int base)
Rabin Vincentb8410a12010-08-09 19:18:17 +0530110{
111 mop500_sdi_tc35892_init();
112}
113
Sundar Iyer20406eb2010-12-13 09:33:14 +0530114static struct tc3589x_gpio_platform_data mop500_tc35892_gpio_data = {
Rabin Vincentb8410a12010-08-09 19:18:17 +0530115 .gpio_base = MOP500_EGPIO(0),
116 .setup = mop500_tc35892_init,
117};
118
Sundar Iyer20406eb2010-12-13 09:33:14 +0530119static struct tc3589x_platform_data mop500_tc35892_data = {
Sundar Iyer611b7592010-12-13 09:33:15 +0530120 .block = TC3589x_BLOCK_GPIO,
Rabin Vincentb8410a12010-08-09 19:18:17 +0530121 .gpio = &mop500_tc35892_gpio_data,
122 .irq_base = MOP500_EGPIO_IRQ_BASE,
123};
124
Philippe Langlaisdd7b2a02011-01-12 11:26:20 +0100125static struct lp5521_led_config lp5521_pri_led[] = {
126 [0] = {
127 .chan_nr = 0,
128 .led_current = 0x2f,
129 .max_current = 0x5f,
130 },
131 [1] = {
132 .chan_nr = 1,
133 .led_current = 0x2f,
134 .max_current = 0x5f,
135 },
136 [2] = {
137 .chan_nr = 2,
138 .led_current = 0x2f,
139 .max_current = 0x5f,
140 },
141};
142
143static struct lp5521_platform_data __initdata lp5521_pri_data = {
144 .label = "lp5521_pri",
145 .led_config = &lp5521_pri_led[0],
146 .num_channels = 3,
147 .clock_mode = LP5521_CLOCK_EXT,
148};
149
150static struct lp5521_led_config lp5521_sec_led[] = {
151 [0] = {
152 .chan_nr = 0,
153 .led_current = 0x2f,
154 .max_current = 0x5f,
155 },
156 [1] = {
157 .chan_nr = 1,
158 .led_current = 0x2f,
159 .max_current = 0x5f,
160 },
161 [2] = {
162 .chan_nr = 2,
163 .led_current = 0x2f,
164 .max_current = 0x5f,
165 },
166};
167
168static struct lp5521_platform_data __initdata lp5521_sec_data = {
169 .label = "lp5521_sec",
170 .led_config = &lp5521_sec_led[0],
171 .num_channels = 3,
172 .clock_mode = LP5521_CLOCK_EXT,
173};
174
Linus Walleijfe67dfc2011-03-07 11:48:15 +0100175static struct i2c_board_info __initdata mop500_i2c0_devices[] = {
Rabin Vincentb8410a12010-08-09 19:18:17 +0530176 {
Sundar Iyer20406eb2010-12-13 09:33:14 +0530177 I2C_BOARD_INFO("tc3589x", 0x42),
Philippe Langlaisdd7b2a02011-01-12 11:26:20 +0100178 .irq = NOMADIK_GPIO_TO_IRQ(217),
Rabin Vincentb8410a12010-08-09 19:18:17 +0530179 .platform_data = &mop500_tc35892_data,
180 },
Linus Walleijcf568c52011-03-30 14:31:42 +0200181 /* I2C0 devices only available prior to HREFv60 */
Linus Walleijfe67dfc2011-03-07 11:48:15 +0100182 {
183 I2C_BOARD_INFO("tps61052", 0x33),
184 .platform_data = &mop500_tps61052_data,
185 },
186};
187
Linus Walleijcf568c52011-03-30 14:31:42 +0200188#define NUM_PRE_V60_I2C0_DEVICES 1
189
Philippe Langlaisdd7b2a02011-01-12 11:26:20 +0100190static struct i2c_board_info __initdata mop500_i2c2_devices[] = {
191 {
192 /* lp5521 LED driver, 1st device */
193 I2C_BOARD_INFO("lp5521", 0x33),
194 .platform_data = &lp5521_pri_data,
195 },
196 {
197 /* lp5521 LED driver, 2st device */
198 I2C_BOARD_INFO("lp5521", 0x34),
199 .platform_data = &lp5521_sec_data,
200 },
Lee Jonesbb3b2182011-01-13 14:41:22 +0000201 {
202 /* Light sensor Rohm BH1780GLI */
203 I2C_BOARD_INFO("bh1780", 0x29),
204 },
Philippe Langlaisdd7b2a02011-01-12 11:26:20 +0100205};
206
Srinidhi Kasagard48a41c2010-02-03 13:02:48 +0100207#define U8500_I2C_CONTROLLER(id, _slsu, _tft, _rft, clk, _sm) \
Rabin Vincentf9faf232010-05-03 08:24:37 +0100208static struct nmk_i2c_controller u8500_i2c##id##_data = { \
Srinidhi Kasagard48a41c2010-02-03 13:02:48 +0100209 /* \
210 * slave data setup time, which is \
211 * 250 ns,100ns,10ns which is 14,6,2 \
212 * respectively for a 48 Mhz \
213 * i2c clock \
214 */ \
215 .slsu = _slsu, \
216 /* Tx FIFO threshold */ \
217 .tft = _tft, \
218 /* Rx FIFO threshold */ \
219 .rft = _rft, \
220 /* std. mode operation */ \
221 .clk_freq = clk, \
222 .sm = _sm, \
223}
224
225/*
226 * The board uses 4 i2c controllers, initialize all of
227 * them with slave data setup time of 250 ns,
228 * Tx & Rx FIFO threshold values as 1 and standard
229 * mode of operation
230 */
231U8500_I2C_CONTROLLER(0, 0xe, 1, 1, 100000, I2C_FREQ_MODE_STANDARD);
232U8500_I2C_CONTROLLER(1, 0xe, 1, 1, 100000, I2C_FREQ_MODE_STANDARD);
233U8500_I2C_CONTROLLER(2, 0xe, 1, 1, 100000, I2C_FREQ_MODE_STANDARD);
234U8500_I2C_CONTROLLER(3, 0xe, 1, 1, 100000, I2C_FREQ_MODE_STANDARD);
235
Rabin Vincentfbf1ead2010-09-29 19:46:32 +0530236static void __init mop500_i2c_init(void)
237{
238 db8500_add_i2c0(&u8500_i2c0_data);
239 db8500_add_i2c1(&u8500_i2c1_data);
240 db8500_add_i2c2(&u8500_i2c2_data);
241 db8500_add_i2c3(&u8500_i2c3_data);
242}
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +0100243
Philippe Langlaisa71b8192011-01-14 10:53:59 +0100244static struct gpio_keys_button mop500_gpio_keys[] = {
245 {
246 .desc = "SFH7741 Proximity Sensor",
247 .type = EV_SW,
248 .code = SW_FRONT_PROXIMITY,
Philippe Langlaisa71b8192011-01-14 10:53:59 +0100249 .active_low = 0,
250 .can_disable = 1,
251 }
252};
253
254static struct regulator *prox_regulator;
255static int mop500_prox_activate(struct device *dev);
256static void mop500_prox_deactivate(struct device *dev);
257
258static struct gpio_keys_platform_data mop500_gpio_keys_data = {
259 .buttons = mop500_gpio_keys,
260 .nbuttons = ARRAY_SIZE(mop500_gpio_keys),
261 .enable = mop500_prox_activate,
262 .disable = mop500_prox_deactivate,
263};
264
265static struct platform_device mop500_gpio_keys_device = {
266 .name = "gpio-keys",
267 .id = 0,
268 .dev = {
269 .platform_data = &mop500_gpio_keys_data,
270 },
271};
272
273static int mop500_prox_activate(struct device *dev)
274{
275 prox_regulator = regulator_get(&mop500_gpio_keys_device.dev,
276 "vcc");
277 if (IS_ERR(prox_regulator)) {
278 dev_err(&mop500_gpio_keys_device.dev,
279 "no regulator\n");
280 return PTR_ERR(prox_regulator);
281 }
282 regulator_enable(prox_regulator);
283 return 0;
284}
285
286static void mop500_prox_deactivate(struct device *dev)
287{
288 regulator_disable(prox_regulator);
289 regulator_put(prox_regulator);
290}
291
Srinidhi Kasagard48a41c2010-02-03 13:02:48 +0100292/* add any platform devices here - TODO */
293static struct platform_device *platform_devs[] __initdata = {
Philippe Langlaisa71b8192011-01-14 10:53:59 +0100294 &mop500_gpio_keys_device,
Srinidhi Kasagard48a41c2010-02-03 13:02:48 +0100295};
296
Linus Walleij5d7b8462010-10-14 13:57:59 +0200297#ifdef CONFIG_STE_DMA40
298static struct stedma40_chan_cfg ssp0_dma_cfg_rx = {
299 .mode = STEDMA40_MODE_LOGICAL,
300 .dir = STEDMA40_PERIPH_TO_MEM,
301 .src_dev_type = DB8500_DMA_DEV8_SSP0_RX,
302 .dst_dev_type = STEDMA40_DEV_DST_MEMORY,
303 .src_info.data_width = STEDMA40_BYTE_WIDTH,
304 .dst_info.data_width = STEDMA40_BYTE_WIDTH,
305};
306
307static struct stedma40_chan_cfg ssp0_dma_cfg_tx = {
308 .mode = STEDMA40_MODE_LOGICAL,
309 .dir = STEDMA40_MEM_TO_PERIPH,
310 .src_dev_type = STEDMA40_DEV_SRC_MEMORY,
311 .dst_dev_type = DB8500_DMA_DEV8_SSP0_TX,
312 .src_info.data_width = STEDMA40_BYTE_WIDTH,
313 .dst_info.data_width = STEDMA40_BYTE_WIDTH,
314};
315#endif
316
317static struct pl022_ssp_controller ssp0_platform_data = {
318 .bus_id = 0,
319#ifdef CONFIG_STE_DMA40
320 .enable_dma = 1,
321 .dma_filter = stedma40_filter,
322 .dma_rx_param = &ssp0_dma_cfg_rx,
323 .dma_tx_param = &ssp0_dma_cfg_tx,
324#else
325 .enable_dma = 0,
326#endif
327 /* on this platform, gpio 31,142,144,214 &
328 * 224 are connected as chip selects
329 */
330 .num_chipselect = 5,
331};
332
Rabin Vincentfbf1ead2010-09-29 19:46:32 +0530333static void __init mop500_spi_init(void)
334{
335 db8500_add_ssp0(&ssp0_platform_data);
336}
337
Linus Walleij5d7b8462010-10-14 13:57:59 +0200338#ifdef CONFIG_STE_DMA40
339static struct stedma40_chan_cfg uart0_dma_cfg_rx = {
340 .mode = STEDMA40_MODE_LOGICAL,
341 .dir = STEDMA40_PERIPH_TO_MEM,
342 .src_dev_type = DB8500_DMA_DEV13_UART0_RX,
343 .dst_dev_type = STEDMA40_DEV_DST_MEMORY,
344 .src_info.data_width = STEDMA40_BYTE_WIDTH,
345 .dst_info.data_width = STEDMA40_BYTE_WIDTH,
346};
347
348static struct stedma40_chan_cfg uart0_dma_cfg_tx = {
349 .mode = STEDMA40_MODE_LOGICAL,
350 .dir = STEDMA40_MEM_TO_PERIPH,
351 .src_dev_type = STEDMA40_DEV_SRC_MEMORY,
352 .dst_dev_type = DB8500_DMA_DEV13_UART0_TX,
353 .src_info.data_width = STEDMA40_BYTE_WIDTH,
354 .dst_info.data_width = STEDMA40_BYTE_WIDTH,
355};
356
357static struct stedma40_chan_cfg uart1_dma_cfg_rx = {
358 .mode = STEDMA40_MODE_LOGICAL,
359 .dir = STEDMA40_PERIPH_TO_MEM,
360 .src_dev_type = DB8500_DMA_DEV12_UART1_RX,
361 .dst_dev_type = STEDMA40_DEV_DST_MEMORY,
362 .src_info.data_width = STEDMA40_BYTE_WIDTH,
363 .dst_info.data_width = STEDMA40_BYTE_WIDTH,
364};
365
366static struct stedma40_chan_cfg uart1_dma_cfg_tx = {
367 .mode = STEDMA40_MODE_LOGICAL,
368 .dir = STEDMA40_MEM_TO_PERIPH,
369 .src_dev_type = STEDMA40_DEV_SRC_MEMORY,
370 .dst_dev_type = DB8500_DMA_DEV12_UART1_TX,
371 .src_info.data_width = STEDMA40_BYTE_WIDTH,
372 .dst_info.data_width = STEDMA40_BYTE_WIDTH,
373};
374
375static struct stedma40_chan_cfg uart2_dma_cfg_rx = {
376 .mode = STEDMA40_MODE_LOGICAL,
377 .dir = STEDMA40_PERIPH_TO_MEM,
378 .src_dev_type = DB8500_DMA_DEV11_UART2_RX,
379 .dst_dev_type = STEDMA40_DEV_DST_MEMORY,
380 .src_info.data_width = STEDMA40_BYTE_WIDTH,
381 .dst_info.data_width = STEDMA40_BYTE_WIDTH,
382};
383
384static struct stedma40_chan_cfg uart2_dma_cfg_tx = {
385 .mode = STEDMA40_MODE_LOGICAL,
386 .dir = STEDMA40_MEM_TO_PERIPH,
387 .src_dev_type = STEDMA40_DEV_SRC_MEMORY,
388 .dst_dev_type = DB8500_DMA_DEV11_UART2_TX,
389 .src_info.data_width = STEDMA40_BYTE_WIDTH,
390 .dst_info.data_width = STEDMA40_BYTE_WIDTH,
391};
392#endif
393
394static struct amba_pl011_data uart0_plat = {
395#ifdef CONFIG_STE_DMA40
396 .dma_filter = stedma40_filter,
397 .dma_rx_param = &uart0_dma_cfg_rx,
398 .dma_tx_param = &uart0_dma_cfg_tx,
399#endif
400};
401
402static struct amba_pl011_data uart1_plat = {
403#ifdef CONFIG_STE_DMA40
404 .dma_filter = stedma40_filter,
405 .dma_rx_param = &uart1_dma_cfg_rx,
406 .dma_tx_param = &uart1_dma_cfg_tx,
407#endif
408};
409
410static struct amba_pl011_data uart2_plat = {
411#ifdef CONFIG_STE_DMA40
412 .dma_filter = stedma40_filter,
413 .dma_rx_param = &uart2_dma_cfg_rx,
414 .dma_tx_param = &uart2_dma_cfg_tx,
415#endif
416};
417
Rabin Vincentfbf1ead2010-09-29 19:46:32 +0530418static void __init mop500_uart_init(void)
419{
Linus Walleij5d7b8462010-10-14 13:57:59 +0200420 db8500_add_uart0(&uart0_plat);
421 db8500_add_uart1(&uart1_plat);
422 db8500_add_uart2(&uart2_plat);
Rabin Vincentfbf1ead2010-09-29 19:46:32 +0530423}
424
Linus Walleij4b4f7572011-02-15 15:01:35 +0100425static void __init mop500_init_machine(void)
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +0100426{
Linus Walleijcf568c52011-03-30 14:31:42 +0200427 int i2c0_devs;
428
Linus Walleij4b4f7572011-02-15 15:01:35 +0100429 /*
430 * The HREFv60 board removed a GPIO expander and routed
431 * all these GPIO pins to the internal GPIO controller
432 * instead.
433 */
434 if (machine_is_hrefv60())
435 mop500_gpio_keys[0].gpio = HREFV60_PROX_SENSE_GPIO;
436 else
437 mop500_gpio_keys[0].gpio = GPIO_PROX_SENSOR;
438
Rabin Vincentea05a572010-06-03 07:58:42 +0100439 u8500_init_devices();
440
Rabin Vincentfe052032011-02-11 17:07:21 -0700441 mop500_pins_init();
Rabin Vincentea05a572010-06-03 07:58:42 +0100442
Srinidhi Kasagard48a41c2010-02-03 13:02:48 +0100443 platform_add_devices(platform_devs, ARRAY_SIZE(platform_devs));
444
Rabin Vincentfbf1ead2010-09-29 19:46:32 +0530445 mop500_i2c_init();
Hanumath Prasad008f8a22010-08-19 12:06:32 +0100446 mop500_sdi_init();
Rabin Vincentfbf1ead2010-09-29 19:46:32 +0530447 mop500_spi_init();
448 mop500_uart_init();
Hanumath Prasad008f8a22010-08-19 12:06:32 +0100449
Sundar Iyerd5d22812010-12-13 09:33:11 +0530450 platform_device_register(&ab8500_device);
Rabin Vincentb8410a12010-08-09 19:18:17 +0530451
Linus Walleijcf568c52011-03-30 14:31:42 +0200452 i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices);
453 if (machine_is_hrefv60())
454 i2c0_devs -= NUM_PRE_V60_I2C0_DEVICES;
455
456 i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs);
Philippe Langlaisdd7b2a02011-01-12 11:26:20 +0100457 i2c_register_board_info(2, mop500_i2c2_devices,
458 ARRAY_SIZE(mop500_i2c2_devices));
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +0100459}
460
461MACHINE_START(U8500, "ST-Ericsson MOP500 platform")
462 /* Maintainer: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> */
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +0100463 .boot_params = 0x100,
464 .map_io = u8500_map_io,
Rabin Vincent178980f2010-05-03 07:39:02 +0100465 .init_irq = ux500_init_irq,
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +0100466 /* we re-use nomadik timer here */
Rabin Vincent41ac3292010-05-03 08:28:05 +0100467 .timer = &ux500_timer,
Linus Walleij4b4f7572011-02-15 15:01:35 +0100468 .init_machine = mop500_init_machine,
469MACHINE_END
470
471MACHINE_START(HREFV60, "ST-Ericsson U8500 Platform HREFv60+")
472 .boot_params = 0x100,
473 .map_io = u8500_map_io,
474 .init_irq = ux500_init_irq,
475 .timer = &ux500_timer,
476 .init_machine = mop500_init_machine,
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +0100477MACHINE_END