]> Pileus Git - ~andy/linux/blob - arch/arm/mach-ux500/board-mop500.c
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
[~andy/linux] / arch / arm / mach-ux500 / board-mop500.c
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
44 #include <asm/mach-types.h>
45 #include <asm/mach/arch.h>
46
47 #include "setup.h"
48 #include "devices.h"
49 #include "irqs.h"
50 #include <linux/platform_data/crypto-ux500.h>
51
52 #include "ste-dma40-db8500.h"
53 #include "db8500-regs.h"
54 #include "devices-db8500.h"
55 #include "board-mop500.h"
56 #include "board-mop500-regulators.h"
57
58 static struct gpio_led snowball_led_array[] = {
59         {
60                 .name = "user_led",
61                 .default_trigger = "heartbeat",
62                 .gpio = 142,
63         },
64 };
65
66 static struct gpio_led_platform_data snowball_led_data = {
67         .leds = snowball_led_array,
68         .num_leds = ARRAY_SIZE(snowball_led_array),
69 };
70
71 static struct platform_device snowball_led_dev = {
72         .name = "leds-gpio",
73         .dev = {
74                 .platform_data = &snowball_led_data,
75         },
76 };
77
78 static struct fixed_voltage_config snowball_gpio_en_3v3_data = {
79        .supply_name            = "EN-3V3",
80        .gpio                   = SNOWBALL_EN_3V3_ETH_GPIO,
81        .microvolts             = 3300000,
82        .enable_high            = 1,
83        .init_data              = &gpio_en_3v3_regulator,
84        .startup_delay          = 5000, /* 1200us */
85 };
86
87 static struct platform_device snowball_gpio_en_3v3_regulator_dev = {
88        .name   = "reg-fixed-voltage",
89        .id     = 1,
90        .dev    = {
91                .platform_data  = &snowball_gpio_en_3v3_data,
92        },
93 };
94
95 /* Dynamically populated. */
96 static struct gpio sdi0_reg_gpios[] = {
97         { 0, GPIOF_OUT_INIT_LOW, "mmci_vsel" },
98 };
99
100 static struct gpio_regulator_state sdi0_reg_states[] = {
101         { .value = 2900000, .gpios = (0 << 0) },
102         { .value = 1800000, .gpios = (1 << 0) },
103 };
104
105 static struct gpio_regulator_config sdi0_reg_info = {
106         .supply_name            = "ext-mmc-level-shifter",
107         .gpios                  = sdi0_reg_gpios,
108         .nr_gpios               = ARRAY_SIZE(sdi0_reg_gpios),
109         .states                 = sdi0_reg_states,
110         .nr_states              = ARRAY_SIZE(sdi0_reg_states),
111         .type                   = REGULATOR_VOLTAGE,
112         .enable_high            = 1,
113         .enabled_at_boot        = 0,
114         .init_data              = &sdi0_reg_init_data,
115         .startup_delay          = 100,
116 };
117
118 static struct platform_device sdi0_regulator = {
119         .name = "gpio-regulator",
120         .id   = -1,
121         .dev  = {
122                 .platform_data = &sdi0_reg_info,
123         },
124 };
125
126 static struct abx500_gpio_platform_data ab8500_gpio_pdata = {
127         .gpio_base              = MOP500_AB8500_PIN_GPIO(1),
128 };
129
130 /* ab8500-codec */
131 static struct ab8500_codec_platform_data ab8500_codec_pdata = {
132         .amics =  {
133                 .mic1_type = AMIC_TYPE_DIFFERENTIAL,
134                 .mic2_type = AMIC_TYPE_DIFFERENTIAL,
135                 .mic1a_micbias = AMIC_MICBIAS_VAMIC1,
136                 .mic1b_micbias = AMIC_MICBIAS_VAMIC1,
137                 .mic2_micbias = AMIC_MICBIAS_VAMIC2
138         },
139         .ear_cmv = EAR_CMV_0_95V
140 };
141
142 static struct gpio_keys_button snowball_key_array[] = {
143         {
144                 .gpio           = 32,
145                 .type           = EV_KEY,
146                 .code           = KEY_1,
147                 .desc           = "userpb",
148                 .active_low     = 1,
149                 .debounce_interval = 50,
150                 .wakeup         = 1,
151         },
152         {
153                 .gpio           = 151,
154                 .type           = EV_KEY,
155                 .code           = KEY_2,
156                 .desc           = "extkb1",
157                 .active_low     = 1,
158                 .debounce_interval = 50,
159                 .wakeup         = 1,
160         },
161         {
162                 .gpio           = 152,
163                 .type           = EV_KEY,
164                 .code           = KEY_3,
165                 .desc           = "extkb2",
166                 .active_low     = 1,
167                 .debounce_interval = 50,
168                 .wakeup         = 1,
169         },
170         {
171                 .gpio           = 161,
172                 .type           = EV_KEY,
173                 .code           = KEY_4,
174                 .desc           = "extkb3",
175                 .active_low     = 1,
176                 .debounce_interval = 50,
177                 .wakeup         = 1,
178         },
179         {
180                 .gpio           = 162,
181                 .type           = EV_KEY,
182                 .code           = KEY_5,
183                 .desc           = "extkb4",
184                 .active_low     = 1,
185                 .debounce_interval = 50,
186                 .wakeup         = 1,
187         },
188 };
189
190 static struct gpio_keys_platform_data snowball_key_data = {
191         .buttons        = snowball_key_array,
192         .nbuttons       = ARRAY_SIZE(snowball_key_array),
193 };
194
195 static struct platform_device snowball_key_dev = {
196         .name           = "gpio-keys",
197         .id             = -1,
198         .dev            = {
199                 .platform_data  = &snowball_key_data,
200         }
201 };
202
203 static struct smsc911x_platform_config snowball_sbnet_cfg = {
204         .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_HIGH,
205         .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL,
206         .flags = SMSC911X_USE_16BIT | SMSC911X_FORCE_INTERNAL_PHY,
207         .shift = 1,
208 };
209
210 static struct resource sbnet_res[] = {
211         {
212                 .name = "smsc911x-memory",
213                 .start = (0x5000 << 16),
214                 .end  =  (0x5000 << 16) + 0xffff,
215                 .flags = IORESOURCE_MEM,
216         },
217         {
218                 .start = NOMADIK_GPIO_TO_IRQ(140),
219                 .end = NOMADIK_GPIO_TO_IRQ(140),
220                 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
221         },
222 };
223
224 static struct platform_device snowball_sbnet_dev = {
225         .name           = "smsc911x",
226         .num_resources  = ARRAY_SIZE(sbnet_res),
227         .resource       = sbnet_res,
228         .dev            = {
229                 .platform_data = &snowball_sbnet_cfg,
230         },
231 };
232
233 struct ab8500_platform_data ab8500_platdata = {
234         .irq_base       = MOP500_AB8500_IRQ_BASE,
235         .regulator      = &ab8500_regulator_plat_data,
236         .gpio           = &ab8500_gpio_pdata,
237         .codec          = &ab8500_codec_pdata,
238 };
239
240 static struct platform_device u8500_cpufreq_cooling_device = {
241         .name           = "db8500-cpufreq-cooling",
242 };
243
244 /*
245  * TPS61052
246  */
247
248 static struct tps6105x_platform_data mop500_tps61052_data = {
249         .mode = TPS6105X_MODE_VOLTAGE,
250         .regulator_data = &tps61052_regulator,
251 };
252
253 /*
254  * TC35892
255  */
256
257 static void mop500_tc35892_init(struct tc3589x *tc3589x, unsigned int base)
258 {
259         struct device *parent = NULL;
260 #if 0
261         /* FIXME: Is the sdi actually part of tc3589x? */
262         parent = tc3589x->dev;
263 #endif
264         mop500_sdi_tc35892_init(parent);
265 }
266
267 static struct tc3589x_gpio_platform_data mop500_tc35892_gpio_data = {
268         .gpio_base      = MOP500_EGPIO(0),
269         .setup          = mop500_tc35892_init,
270 };
271
272 static struct tc3589x_platform_data mop500_tc35892_data = {
273         .block          = TC3589x_BLOCK_GPIO,
274         .gpio           = &mop500_tc35892_gpio_data,
275         .irq_base       = MOP500_EGPIO_IRQ_BASE,
276 };
277
278 static struct lp55xx_led_config lp5521_pri_led[] = {
279        [0] = {
280                .chan_nr = 0,
281                .led_current = 0x2f,
282                .max_current = 0x5f,
283        },
284        [1] = {
285                .chan_nr = 1,
286                .led_current = 0x2f,
287                .max_current = 0x5f,
288        },
289        [2] = {
290                .chan_nr = 2,
291                .led_current = 0x2f,
292                .max_current = 0x5f,
293        },
294 };
295
296 static struct lp55xx_platform_data __initdata lp5521_pri_data = {
297        .label = "lp5521_pri",
298        .led_config     = &lp5521_pri_led[0],
299        .num_channels   = 3,
300        .clock_mode     = LP55XX_CLOCK_EXT,
301 };
302
303 static struct lp55xx_led_config lp5521_sec_led[] = {
304        [0] = {
305                .chan_nr = 0,
306                .led_current = 0x2f,
307                .max_current = 0x5f,
308        },
309        [1] = {
310                .chan_nr = 1,
311                .led_current = 0x2f,
312                .max_current = 0x5f,
313        },
314        [2] = {
315                .chan_nr = 2,
316                .led_current = 0x2f,
317                .max_current = 0x5f,
318        },
319 };
320
321 static struct lp55xx_platform_data __initdata lp5521_sec_data = {
322        .label = "lp5521_sec",
323        .led_config     = &lp5521_sec_led[0],
324        .num_channels   = 3,
325        .clock_mode     = LP55XX_CLOCK_EXT,
326 };
327
328 static struct i2c_board_info __initdata mop500_i2c0_devices[] = {
329         {
330                 I2C_BOARD_INFO("tc3589x", 0x42),
331                 .irq            = NOMADIK_GPIO_TO_IRQ(217),
332                 .platform_data  = &mop500_tc35892_data,
333         },
334         /* I2C0 devices only available prior to HREFv60 */
335         {
336                 I2C_BOARD_INFO("tps61052", 0x33),
337                 .platform_data  = &mop500_tps61052_data,
338         },
339 };
340
341 #define NUM_PRE_V60_I2C0_DEVICES 1
342
343 static struct i2c_board_info __initdata mop500_i2c2_devices[] = {
344         {
345                 /* lp5521 LED driver, 1st device */
346                 I2C_BOARD_INFO("lp5521", 0x33),
347                 .platform_data = &lp5521_pri_data,
348         },
349         {
350                 /* lp5521 LED driver, 2st device */
351                 I2C_BOARD_INFO("lp5521", 0x34),
352                 .platform_data = &lp5521_sec_data,
353         },
354         {
355                 /* Light sensor Rohm BH1780GLI */
356                 I2C_BOARD_INFO("bh1780", 0x29),
357         },
358 };
359
360 static void __init mop500_i2c_init(struct device *parent)
361 {
362         db8500_add_i2c0(parent, NULL);
363         db8500_add_i2c1(parent, NULL);
364         db8500_add_i2c2(parent, NULL);
365         db8500_add_i2c3(parent, NULL);
366 }
367
368 static struct gpio_keys_button mop500_gpio_keys[] = {
369         {
370                 .desc                   = "SFH7741 Proximity Sensor",
371                 .type                   = EV_SW,
372                 .code                   = SW_FRONT_PROXIMITY,
373                 .active_low             = 0,
374                 .can_disable            = 1,
375         }
376 };
377
378 static struct regulator *prox_regulator;
379 static int mop500_prox_activate(struct device *dev);
380 static void mop500_prox_deactivate(struct device *dev);
381
382 static struct gpio_keys_platform_data mop500_gpio_keys_data = {
383         .buttons        = mop500_gpio_keys,
384         .nbuttons       = ARRAY_SIZE(mop500_gpio_keys),
385         .enable         = mop500_prox_activate,
386         .disable        = mop500_prox_deactivate,
387 };
388
389 static struct platform_device mop500_gpio_keys_device = {
390         .name   = "gpio-keys",
391         .id     = 0,
392         .dev    = {
393                 .platform_data  = &mop500_gpio_keys_data,
394         },
395 };
396
397 static int mop500_prox_activate(struct device *dev)
398 {
399         prox_regulator = regulator_get(&mop500_gpio_keys_device.dev,
400                                                 "vcc");
401         if (IS_ERR(prox_regulator)) {
402                 dev_err(&mop500_gpio_keys_device.dev,
403                         "no regulator\n");
404                 return PTR_ERR(prox_regulator);
405         }
406
407         return regulator_enable(prox_regulator);
408 }
409
410 static void mop500_prox_deactivate(struct device *dev)
411 {
412         regulator_disable(prox_regulator);
413         regulator_put(prox_regulator);
414 }
415
416 static struct cryp_platform_data u8500_cryp1_platform_data = {
417                 .mem_to_engine = {
418                                 .dir = DMA_MEM_TO_DEV,
419                                 .dev_type = DB8500_DMA_DEV48_CAC1,
420                                 .mode = STEDMA40_MODE_LOGICAL,
421                 },
422                 .engine_to_mem = {
423                                 .dir = DMA_DEV_TO_MEM,
424                                 .dev_type = DB8500_DMA_DEV48_CAC1,
425                                 .mode = STEDMA40_MODE_LOGICAL,
426                 }
427 };
428
429 static struct stedma40_chan_cfg u8500_hash_dma_cfg_tx = {
430                 .dir = DMA_MEM_TO_DEV,
431                 .dev_type = DB8500_DMA_DEV50_HAC1_TX,
432                 .mode = STEDMA40_MODE_LOGICAL,
433 };
434
435 static struct hash_platform_data u8500_hash1_platform_data = {
436                 .mem_to_engine = &u8500_hash_dma_cfg_tx,
437                 .dma_filter = stedma40_filter,
438 };
439
440 /* add any platform devices here - TODO */
441 static struct platform_device *mop500_platform_devs[] __initdata = {
442         &mop500_gpio_keys_device,
443         &sdi0_regulator,
444 };
445
446 #ifdef CONFIG_STE_DMA40
447 static struct stedma40_chan_cfg ssp0_dma_cfg_rx = {
448         .mode = STEDMA40_MODE_LOGICAL,
449         .dir = DMA_DEV_TO_MEM,
450         .dev_type = DB8500_DMA_DEV8_SSP0,
451 };
452
453 static struct stedma40_chan_cfg ssp0_dma_cfg_tx = {
454         .mode = STEDMA40_MODE_LOGICAL,
455         .dir = DMA_MEM_TO_DEV,
456         .dev_type = DB8500_DMA_DEV8_SSP0,
457 };
458 #endif
459
460 struct pl022_ssp_controller ssp0_plat = {
461         .bus_id = 0,
462 #ifdef CONFIG_STE_DMA40
463         .enable_dma = 1,
464         .dma_filter = stedma40_filter,
465         .dma_rx_param = &ssp0_dma_cfg_rx,
466         .dma_tx_param = &ssp0_dma_cfg_tx,
467 #else
468         .enable_dma = 0,
469 #endif
470         /* on this platform, gpio 31,142,144,214 &
471          * 224 are connected as chip selects
472          */
473         .num_chipselect = 5,
474 };
475
476 static void __init mop500_spi_init(struct device *parent)
477 {
478         db8500_add_ssp0(parent, &ssp0_plat);
479 }
480
481 #ifdef CONFIG_STE_DMA40
482 static struct stedma40_chan_cfg uart0_dma_cfg_rx = {
483         .mode = STEDMA40_MODE_LOGICAL,
484         .dir = DMA_DEV_TO_MEM,
485         .dev_type = DB8500_DMA_DEV13_UART0,
486 };
487
488 static struct stedma40_chan_cfg uart0_dma_cfg_tx = {
489         .mode = STEDMA40_MODE_LOGICAL,
490         .dir = DMA_MEM_TO_DEV,
491         .dev_type = DB8500_DMA_DEV13_UART0,
492 };
493
494 static struct stedma40_chan_cfg uart1_dma_cfg_rx = {
495         .mode = STEDMA40_MODE_LOGICAL,
496         .dir = DMA_DEV_TO_MEM,
497         .dev_type = DB8500_DMA_DEV12_UART1,
498 };
499
500 static struct stedma40_chan_cfg uart1_dma_cfg_tx = {
501         .mode = STEDMA40_MODE_LOGICAL,
502         .dir = DMA_MEM_TO_DEV,
503         .dev_type = DB8500_DMA_DEV12_UART1,
504 };
505
506 static struct stedma40_chan_cfg uart2_dma_cfg_rx = {
507         .mode = STEDMA40_MODE_LOGICAL,
508         .dir = DMA_DEV_TO_MEM,
509         .dev_type = DB8500_DMA_DEV11_UART2,
510 };
511
512 static struct stedma40_chan_cfg uart2_dma_cfg_tx = {
513         .mode = STEDMA40_MODE_LOGICAL,
514         .dir = DMA_MEM_TO_DEV,
515         .dev_type = DB8500_DMA_DEV11_UART2,
516 };
517 #endif
518
519 struct amba_pl011_data uart0_plat = {
520 #ifdef CONFIG_STE_DMA40
521         .dma_filter = stedma40_filter,
522         .dma_rx_param = &uart0_dma_cfg_rx,
523         .dma_tx_param = &uart0_dma_cfg_tx,
524 #endif
525 };
526
527 struct amba_pl011_data uart1_plat = {
528 #ifdef CONFIG_STE_DMA40
529         .dma_filter = stedma40_filter,
530         .dma_rx_param = &uart1_dma_cfg_rx,
531         .dma_tx_param = &uart1_dma_cfg_tx,
532 #endif
533 };
534
535 struct amba_pl011_data uart2_plat = {
536 #ifdef CONFIG_STE_DMA40
537         .dma_filter = stedma40_filter,
538         .dma_rx_param = &uart2_dma_cfg_rx,
539         .dma_tx_param = &uart2_dma_cfg_tx,
540 #endif
541 };
542
543 static void __init mop500_uart_init(struct device *parent)
544 {
545         db8500_add_uart0(parent, &uart0_plat);
546         db8500_add_uart1(parent, &uart1_plat);
547         db8500_add_uart2(parent, &uart2_plat);
548 }
549
550 static void __init u8500_cryp1_hash1_init(struct device *parent)
551 {
552         db8500_add_cryp1(parent, &u8500_cryp1_platform_data);
553         db8500_add_hash1(parent, &u8500_hash1_platform_data);
554 }
555
556 static struct platform_device *snowball_platform_devs[] __initdata = {
557         &snowball_led_dev,
558         &snowball_key_dev,
559         &snowball_sbnet_dev,
560         &snowball_gpio_en_3v3_regulator_dev,
561         &u8500_cpufreq_cooling_device,
562         &sdi0_regulator,
563 };
564
565 static void __init mop500_init_machine(void)
566 {
567         struct device *parent = NULL;
568         int i2c0_devs;
569         int i;
570
571         platform_device_register(&db8500_prcmu_device);
572         mop500_gpio_keys[0].gpio = GPIO_PROX_SENSOR;
573
574         sdi0_reg_info.enable_gpio = GPIO_SDMMC_EN;
575         sdi0_reg_info.gpios[0].gpio = GPIO_SDMMC_1V8_3V_SEL;
576
577         mop500_pinmaps_init();
578         parent = u8500_init_devices();
579
580         for (i = 0; i < ARRAY_SIZE(mop500_platform_devs); i++)
581                 mop500_platform_devs[i]->dev.parent = parent;
582
583         platform_add_devices(mop500_platform_devs,
584                         ARRAY_SIZE(mop500_platform_devs));
585
586         mop500_i2c_init(parent);
587         mop500_sdi_init(parent);
588         mop500_spi_init(parent);
589         mop500_audio_init(parent);
590         mop500_uart_init(parent);
591
592         u8500_cryp1_hash1_init(parent);
593
594         i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices);
595
596         i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs);
597         i2c_register_board_info(2, mop500_i2c2_devices,
598                                 ARRAY_SIZE(mop500_i2c2_devices));
599
600         /* This board has full regulator constraints */
601         regulator_has_full_constraints();
602 }
603
604 static void __init snowball_init_machine(void)
605 {
606         struct device *parent = NULL;
607         int i;
608
609         platform_device_register(&db8500_prcmu_device);
610
611         sdi0_reg_info.enable_gpio = SNOWBALL_SDMMC_EN_GPIO;
612         sdi0_reg_info.gpios[0].gpio = SNOWBALL_SDMMC_1V8_3V_GPIO;
613
614         snowball_pinmaps_init();
615         parent = u8500_init_devices();
616
617         for (i = 0; i < ARRAY_SIZE(snowball_platform_devs); i++)
618                 snowball_platform_devs[i]->dev.parent = parent;
619
620         platform_add_devices(snowball_platform_devs,
621                         ARRAY_SIZE(snowball_platform_devs));
622
623         mop500_i2c_init(parent);
624         snowball_sdi_init(parent);
625         mop500_spi_init(parent);
626         mop500_audio_init(parent);
627         mop500_uart_init(parent);
628
629         u8500_cryp1_hash1_init(parent);
630
631         /* This board has full regulator constraints */
632         regulator_has_full_constraints();
633 }
634
635 static void __init hrefv60_init_machine(void)
636 {
637         struct device *parent = NULL;
638         int i2c0_devs;
639         int i;
640
641         platform_device_register(&db8500_prcmu_device);
642         /*
643          * The HREFv60 board removed a GPIO expander and routed
644          * all these GPIO pins to the internal GPIO controller
645          * instead.
646          */
647         mop500_gpio_keys[0].gpio = HREFV60_PROX_SENSE_GPIO;
648
649         sdi0_reg_info.enable_gpio = HREFV60_SDMMC_EN_GPIO;
650         sdi0_reg_info.gpios[0].gpio = HREFV60_SDMMC_1V8_3V_GPIO;
651
652         hrefv60_pinmaps_init();
653         parent = u8500_init_devices();
654
655         for (i = 0; i < ARRAY_SIZE(mop500_platform_devs); i++)
656                 mop500_platform_devs[i]->dev.parent = parent;
657
658         platform_add_devices(mop500_platform_devs,
659                         ARRAY_SIZE(mop500_platform_devs));
660
661         mop500_i2c_init(parent);
662         hrefv60_sdi_init(parent);
663         mop500_spi_init(parent);
664         mop500_audio_init(parent);
665         mop500_uart_init(parent);
666
667         i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices);
668
669         i2c0_devs -= NUM_PRE_V60_I2C0_DEVICES;
670
671         i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs);
672         i2c_register_board_info(2, mop500_i2c2_devices,
673                                 ARRAY_SIZE(mop500_i2c2_devices));
674
675         /* This board has full regulator constraints */
676         regulator_has_full_constraints();
677 }
678
679 MACHINE_START(U8500, "ST-Ericsson MOP500 platform")
680         /* Maintainer: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> */
681         .atag_offset    = 0x100,
682         .smp            = smp_ops(ux500_smp_ops),
683         .map_io         = u8500_map_io,
684         .init_irq       = ux500_init_irq,
685         /* we re-use nomadik timer here */
686         .init_time      = ux500_timer_init,
687         .init_machine   = mop500_init_machine,
688         .init_late      = ux500_init_late,
689 MACHINE_END
690
691 MACHINE_START(U8520, "ST-Ericsson U8520 Platform HREFP520")
692         .atag_offset    = 0x100,
693         .map_io         = u8500_map_io,
694         .init_irq       = ux500_init_irq,
695         .init_time      = ux500_timer_init,
696         .init_machine   = mop500_init_machine,
697         .init_late      = ux500_init_late,
698 MACHINE_END
699
700 MACHINE_START(HREFV60, "ST-Ericsson U8500 Platform HREFv60+")
701         .atag_offset    = 0x100,
702         .smp            = smp_ops(ux500_smp_ops),
703         .map_io         = u8500_map_io,
704         .init_irq       = ux500_init_irq,
705         .init_time      = ux500_timer_init,
706         .init_machine   = hrefv60_init_machine,
707         .init_late      = ux500_init_late,
708 MACHINE_END
709
710 MACHINE_START(SNOWBALL, "Calao Systems Snowball platform")
711         .atag_offset    = 0x100,
712         .smp            = smp_ops(ux500_smp_ops),
713         .map_io         = u8500_map_io,
714         .init_irq       = ux500_init_irq,
715         /* we re-use nomadik timer here */
716         .init_time      = ux500_timer_init,
717         .init_machine   = snowball_init_machine,
718         .init_late      = NULL,
719 MACHINE_END