blob: 8674a890fd1c7071ae2efce55a3a7c888a97c091 [file] [log] [blame]
Linus Walleijed781d392012-05-03 00:44:52 +02001
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +01002/*
3 * Copyright (C) 2008-2009 ST-Ericsson
4 *
5 * Author: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2, as
9 * published by the Free Software Foundation.
10 *
11 */
12#include <linux/kernel.h>
13#include <linux/init.h>
14#include <linux/interrupt.h>
15#include <linux/platform_device.h>
16#include <linux/io.h>
Rabin Vincentb8410a12010-08-09 19:18:17 +053017#include <linux/i2c.h>
Alessandro Rubiniaf97bac2012-06-11 22:56:26 +020018#include <linux/platform_data/i2c-nomadik.h>
Rabin Vincentea05a572010-06-03 07:58:42 +010019#include <linux/gpio.h>
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010020#include <linux/amba/bus.h>
21#include <linux/amba/pl022.h>
Linus Walleij5d7b8462010-10-14 13:57:59 +020022#include <linux/amba/serial.h>
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010023#include <linux/spi/spi.h>
Linus Walleijee66e652011-12-02 14:16:33 +010024#include <linux/mfd/abx500/ab8500.h>
Bengt Jonsson79568b942011-03-11 11:54:46 +010025#include <linux/regulator/ab8500.h>
Sundar Iyer20406eb2010-12-13 09:33:14 +053026#include <linux/mfd/tc3589x.h>
Linus Walleijfe67dfc2011-03-07 11:48:15 +010027#include <linux/mfd/tps6105x.h>
Linus Walleijee66e652011-12-02 14:16:33 +010028#include <linux/mfd/abx500/ab8500-gpio.h>
Ola Liljaf242e502012-06-07 14:00:46 +020029#include <linux/mfd/abx500/ab8500-codec.h>
Philippe Langlaisdd7b2a02011-01-12 11:26:20 +010030#include <linux/leds-lp5521.h>
Philippe Langlaisa71b8192011-01-14 10:53:59 +010031#include <linux/input.h>
Robert Marklund350abe02011-06-20 15:55:46 +020032#include <linux/smsc911x.h>
Philippe Langlaisa71b8192011-01-14 10:53:59 +010033#include <linux/gpio_keys.h>
Shreshtha Kumar Sahu1a7d4362011-06-13 10:11:44 +020034#include <linux/delay.h>
Arnd Bergmann2d334292012-03-07 15:04:07 +000035#include <linux/of.h>
36#include <linux/of_platform.h>
Robert Marklund350abe02011-06-20 15:55:46 +020037#include <linux/leds.h>
Linus Walleija0980662012-05-07 01:33:24 +020038#include <linux/pinctrl/consumer.h>
39
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010040#include <asm/mach-types.h>
41#include <asm/mach/arch.h>
Marc Zyngierbbf5f382011-09-06 10:23:45 +010042#include <asm/hardware/gic.h>
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010043
Linus Walleij5d7b8462010-10-14 13:57:59 +020044#include <plat/ste_dma40.h>
Linus Walleij0f332862011-08-22 08:33:30 +010045#include <plat/gpio-nomadik.h>
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010046
47#include <mach/hardware.h>
48#include <mach/setup.h>
Rabin Vincent9e4e7fe2010-05-03 08:03:52 +010049#include <mach/devices.h>
Linus Walleij29aeb3c2010-09-06 22:15:08 +010050#include <mach/irqs.h>
Andreas Westin585d1882012-05-10 10:14:06 +020051#include <mach/crypto-ux500.h>
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010052
Linus Walleij5d7b8462010-10-14 13:57:59 +020053#include "ste-dma40-db8500.h"
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053054#include "devices-db8500.h"
Hanumath Prasad008f8a22010-08-19 12:06:32 +010055#include "board-mop500.h"
Bengt Jonssona1e516e2010-12-10 11:08:48 +010056#include "board-mop500-regulators.h"
Ola Liljac0af14d2012-04-20 11:32:59 +020057#include "board-mop500-msp.h"
Rabin Vincentea05a572010-06-03 07:58:42 +010058
Robert Marklund350abe02011-06-20 15:55:46 +020059static struct gpio_led snowball_led_array[] = {
60 {
61 .name = "user_led",
Lee Jonesc525f072012-05-02 09:20:37 +010062 .default_trigger = "heartbeat",
Robert Marklund350abe02011-06-20 15:55:46 +020063 .gpio = 142,
64 },
65};
66
67static struct gpio_led_platform_data snowball_led_data = {
68 .leds = snowball_led_array,
69 .num_leds = ARRAY_SIZE(snowball_led_array),
70};
71
72static struct platform_device snowball_led_dev = {
73 .name = "leds-gpio",
74 .dev = {
75 .platform_data = &snowball_led_data,
76 },
77};
78
Bibek Basu3ef374a2011-02-15 12:56:16 +053079static struct ab8500_gpio_platform_data ab8500_gpio_pdata = {
Philippe Langlaisa1524ee2012-02-13 10:52:25 +010080 .gpio_base = MOP500_AB8500_PIN_GPIO(1),
Bibek Basu3ef374a2011-02-15 12:56:16 +053081 .irq_base = MOP500_AB8500_VIR_GPIO_IRQ_BASE,
82 /* config_reg is the initial configuration of ab8500 pins.
83 * The pins can be configured as GPIO or alt functions based
84 * on value present in GpioSel1 to GpioSel6 and AlternatFunction
85 * register. This is the array of 7 configuration settings.
86 * One has to compile time decide these settings. Below is the
Lucas De Marchi25985ed2011-03-30 22:57:33 -030087 * explanation of these setting
Bibek Basu3ef374a2011-02-15 12:56:16 +053088 * GpioSel1 = 0x00 => Pins GPIO1 to GPIO8 are not used as GPIO
89 * GpioSel2 = 0x1E => Pins GPIO10 to GPIO13 are configured as GPIO
90 * GpioSel3 = 0x80 => Pin GPIO24 is configured as GPIO
91 * GpioSel4 = 0x01 => Pin GPIo25 is configured as GPIO
92 * GpioSel5 = 0x7A => Pins GPIO34, GPIO36 to GPIO39 are conf as GPIO
93 * GpioSel6 = 0x00 => Pins GPIO41 & GPIo42 are not configured as GPIO
94 * AlternaFunction = 0x00 => If Pins GPIO10 to 13 are not configured
95 * as GPIO then this register selectes the alternate fucntions
96 */
97 .config_reg = {0x00, 0x1E, 0x80, 0x01,
98 0x7A, 0x00, 0x00},
99};
100
Ola Liljaf242e502012-06-07 14:00:46 +0200101/* ab8500-codec */
102static struct ab8500_codec_platform_data ab8500_codec_pdata = {
103 .amics = {
104 .mic1_type = AMIC_TYPE_DIFFERENTIAL,
105 .mic2_type = AMIC_TYPE_DIFFERENTIAL,
106 .mic1a_micbias = AMIC_MICBIAS_VAMIC1,
107 .mic1b_micbias = AMIC_MICBIAS_VAMIC1,
108 .mic2_micbias = AMIC_MICBIAS_VAMIC2
109 },
110 .ear_cmv = EAR_CMV_0_95V
111};
112
Robert Marklund350abe02011-06-20 15:55:46 +0200113static struct gpio_keys_button snowball_key_array[] = {
114 {
115 .gpio = 32,
116 .type = EV_KEY,
117 .code = KEY_1,
118 .desc = "userpb",
119 .active_low = 1,
120 .debounce_interval = 50,
121 .wakeup = 1,
122 },
123 {
124 .gpio = 151,
125 .type = EV_KEY,
126 .code = KEY_2,
127 .desc = "extkb1",
128 .active_low = 1,
129 .debounce_interval = 50,
130 .wakeup = 1,
131 },
132 {
133 .gpio = 152,
134 .type = EV_KEY,
135 .code = KEY_3,
136 .desc = "extkb2",
137 .active_low = 1,
138 .debounce_interval = 50,
139 .wakeup = 1,
140 },
141 {
142 .gpio = 161,
143 .type = EV_KEY,
144 .code = KEY_4,
145 .desc = "extkb3",
146 .active_low = 1,
147 .debounce_interval = 50,
148 .wakeup = 1,
149 },
150 {
151 .gpio = 162,
152 .type = EV_KEY,
153 .code = KEY_5,
154 .desc = "extkb4",
155 .active_low = 1,
156 .debounce_interval = 50,
157 .wakeup = 1,
158 },
159};
160
161static struct gpio_keys_platform_data snowball_key_data = {
162 .buttons = snowball_key_array,
163 .nbuttons = ARRAY_SIZE(snowball_key_array),
164};
165
166static struct platform_device snowball_key_dev = {
167 .name = "gpio-keys",
168 .id = -1,
169 .dev = {
170 .platform_data = &snowball_key_data,
171 }
172};
173
174static struct smsc911x_platform_config snowball_sbnet_cfg = {
175 .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_HIGH,
176 .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL,
177 .flags = SMSC911X_USE_16BIT | SMSC911X_FORCE_INTERNAL_PHY,
178 .shift = 1,
179};
180
181static struct resource sbnet_res[] = {
182 {
183 .name = "smsc911x-memory",
184 .start = (0x5000 << 16),
185 .end = (0x5000 << 16) + 0xffff,
186 .flags = IORESOURCE_MEM,
187 },
188 {
189 .start = NOMADIK_GPIO_TO_IRQ(140),
190 .end = NOMADIK_GPIO_TO_IRQ(140),
191 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
192 },
193};
194
195static struct platform_device snowball_sbnet_dev = {
196 .name = "smsc911x",
197 .num_resources = ARRAY_SIZE(sbnet_res),
198 .resource = sbnet_res,
199 .dev = {
200 .platform_data = &snowball_sbnet_cfg,
201 },
202};
203
Rabin Vincent39ae7022010-07-26 11:12:15 +0100204static struct ab8500_platform_data ab8500_platdata = {
205 .irq_base = MOP500_AB8500_IRQ_BASE,
Bengt Jonssondfa3a822011-03-09 13:34:17 +0100206 .regulator_reg_init = ab8500_regulator_reg_init,
207 .num_regulator_reg_init = ARRAY_SIZE(ab8500_regulator_reg_init),
Bengt Jonssona1e516e2010-12-10 11:08:48 +0100208 .regulator = ab8500_regulators,
209 .num_regulator = ARRAY_SIZE(ab8500_regulators),
Bibek Basu3ef374a2011-02-15 12:56:16 +0530210 .gpio = &ab8500_gpio_pdata,
Ola Liljaf242e502012-06-07 14:00:46 +0200211 .codec = &ab8500_codec_pdata,
Rabin Vincent39ae7022010-07-26 11:12:15 +0100212};
213
Rabin Vincentb8410a12010-08-09 19:18:17 +0530214/*
Linus Walleijfe67dfc2011-03-07 11:48:15 +0100215 * TPS61052
216 */
217
218static struct tps6105x_platform_data mop500_tps61052_data = {
219 .mode = TPS6105X_MODE_VOLTAGE,
220 .regulator_data = &tps61052_regulator,
221};
222
223/*
Rabin Vincentb8410a12010-08-09 19:18:17 +0530224 * TC35892
225 */
226
Sundar Iyer20406eb2010-12-13 09:33:14 +0530227static void mop500_tc35892_init(struct tc3589x *tc3589x, unsigned int base)
Rabin Vincentb8410a12010-08-09 19:18:17 +0530228{
Lee Jones18403422012-02-06 11:22:21 -0800229 struct device *parent = NULL;
230#if 0
231 /* FIXME: Is the sdi actually part of tc3589x? */
232 parent = tc3589x->dev;
233#endif
234 mop500_sdi_tc35892_init(parent);
Rabin Vincentb8410a12010-08-09 19:18:17 +0530235}
236
Sundar Iyer20406eb2010-12-13 09:33:14 +0530237static struct tc3589x_gpio_platform_data mop500_tc35892_gpio_data = {
Rabin Vincentb8410a12010-08-09 19:18:17 +0530238 .gpio_base = MOP500_EGPIO(0),
239 .setup = mop500_tc35892_init,
240};
241
Sundar Iyer20406eb2010-12-13 09:33:14 +0530242static struct tc3589x_platform_data mop500_tc35892_data = {
Sundar Iyer611b7592010-12-13 09:33:15 +0530243 .block = TC3589x_BLOCK_GPIO,
Rabin Vincentb8410a12010-08-09 19:18:17 +0530244 .gpio = &mop500_tc35892_gpio_data,
245 .irq_base = MOP500_EGPIO_IRQ_BASE,
246};
247
Philippe Langlaisdd7b2a02011-01-12 11:26:20 +0100248static struct lp5521_led_config lp5521_pri_led[] = {
249 [0] = {
250 .chan_nr = 0,
251 .led_current = 0x2f,
252 .max_current = 0x5f,
253 },
254 [1] = {
255 .chan_nr = 1,
256 .led_current = 0x2f,
257 .max_current = 0x5f,
258 },
259 [2] = {
260 .chan_nr = 2,
261 .led_current = 0x2f,
262 .max_current = 0x5f,
263 },
264};
265
266static struct lp5521_platform_data __initdata lp5521_pri_data = {
267 .label = "lp5521_pri",
268 .led_config = &lp5521_pri_led[0],
269 .num_channels = 3,
270 .clock_mode = LP5521_CLOCK_EXT,
271};
272
273static struct lp5521_led_config lp5521_sec_led[] = {
274 [0] = {
275 .chan_nr = 0,
276 .led_current = 0x2f,
277 .max_current = 0x5f,
278 },
279 [1] = {
280 .chan_nr = 1,
281 .led_current = 0x2f,
282 .max_current = 0x5f,
283 },
284 [2] = {
285 .chan_nr = 2,
286 .led_current = 0x2f,
287 .max_current = 0x5f,
288 },
289};
290
291static struct lp5521_platform_data __initdata lp5521_sec_data = {
292 .label = "lp5521_sec",
293 .led_config = &lp5521_sec_led[0],
294 .num_channels = 3,
295 .clock_mode = LP5521_CLOCK_EXT,
296};
297
Linus Walleijfe67dfc2011-03-07 11:48:15 +0100298static struct i2c_board_info __initdata mop500_i2c0_devices[] = {
Rabin Vincentb8410a12010-08-09 19:18:17 +0530299 {
Sundar Iyer20406eb2010-12-13 09:33:14 +0530300 I2C_BOARD_INFO("tc3589x", 0x42),
Philippe Langlaisdd7b2a02011-01-12 11:26:20 +0100301 .irq = NOMADIK_GPIO_TO_IRQ(217),
Rabin Vincentb8410a12010-08-09 19:18:17 +0530302 .platform_data = &mop500_tc35892_data,
303 },
Linus Walleijcf568c52011-03-30 14:31:42 +0200304 /* I2C0 devices only available prior to HREFv60 */
Linus Walleijfe67dfc2011-03-07 11:48:15 +0100305 {
306 I2C_BOARD_INFO("tps61052", 0x33),
307 .platform_data = &mop500_tps61052_data,
308 },
309};
310
Linus Walleijcf568c52011-03-30 14:31:42 +0200311#define NUM_PRE_V60_I2C0_DEVICES 1
312
Philippe Langlaisdd7b2a02011-01-12 11:26:20 +0100313static struct i2c_board_info __initdata mop500_i2c2_devices[] = {
314 {
315 /* lp5521 LED driver, 1st device */
316 I2C_BOARD_INFO("lp5521", 0x33),
317 .platform_data = &lp5521_pri_data,
318 },
319 {
320 /* lp5521 LED driver, 2st device */
321 I2C_BOARD_INFO("lp5521", 0x34),
322 .platform_data = &lp5521_sec_data,
323 },
Lee Jonesbb3b2182011-01-13 14:41:22 +0000324 {
325 /* Light sensor Rohm BH1780GLI */
326 I2C_BOARD_INFO("bh1780", 0x29),
327 },
Philippe Langlaisdd7b2a02011-01-12 11:26:20 +0100328};
329
Lee Jones18403422012-02-06 11:22:21 -0800330static void __init mop500_i2c_init(struct device *parent)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +0530331{
Lee Jones98582d92012-04-17 15:52:26 +0100332 db8500_add_i2c0(parent, NULL);
333 db8500_add_i2c1(parent, NULL);
334 db8500_add_i2c2(parent, NULL);
335 db8500_add_i2c3(parent, NULL);
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +0530336}
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +0100337
Philippe Langlaisa71b8192011-01-14 10:53:59 +0100338static struct gpio_keys_button mop500_gpio_keys[] = {
339 {
340 .desc = "SFH7741 Proximity Sensor",
341 .type = EV_SW,
342 .code = SW_FRONT_PROXIMITY,
Philippe Langlaisa71b8192011-01-14 10:53:59 +0100343 .active_low = 0,
344 .can_disable = 1,
345 }
346};
347
348static struct regulator *prox_regulator;
349static int mop500_prox_activate(struct device *dev);
350static void mop500_prox_deactivate(struct device *dev);
351
352static struct gpio_keys_platform_data mop500_gpio_keys_data = {
353 .buttons = mop500_gpio_keys,
354 .nbuttons = ARRAY_SIZE(mop500_gpio_keys),
355 .enable = mop500_prox_activate,
356 .disable = mop500_prox_deactivate,
357};
358
359static struct platform_device mop500_gpio_keys_device = {
360 .name = "gpio-keys",
361 .id = 0,
362 .dev = {
363 .platform_data = &mop500_gpio_keys_data,
364 },
365};
366
367static int mop500_prox_activate(struct device *dev)
368{
369 prox_regulator = regulator_get(&mop500_gpio_keys_device.dev,
370 "vcc");
371 if (IS_ERR(prox_regulator)) {
372 dev_err(&mop500_gpio_keys_device.dev,
373 "no regulator\n");
374 return PTR_ERR(prox_regulator);
375 }
376 regulator_enable(prox_regulator);
377 return 0;
378}
379
380static void mop500_prox_deactivate(struct device *dev)
381{
382 regulator_disable(prox_regulator);
383 regulator_put(prox_regulator);
384}
385
Andreas Westin585d1882012-05-10 10:14:06 +0200386static struct cryp_platform_data u8500_cryp1_platform_data = {
387 .mem_to_engine = {
388 .dir = STEDMA40_MEM_TO_PERIPH,
389 .src_dev_type = STEDMA40_DEV_SRC_MEMORY,
390 .dst_dev_type = DB8500_DMA_DEV48_CAC1_TX,
391 .src_info.data_width = STEDMA40_WORD_WIDTH,
392 .dst_info.data_width = STEDMA40_WORD_WIDTH,
393 .mode = STEDMA40_MODE_LOGICAL,
394 .src_info.psize = STEDMA40_PSIZE_LOG_4,
395 .dst_info.psize = STEDMA40_PSIZE_LOG_4,
396 },
397 .engine_to_mem = {
398 .dir = STEDMA40_PERIPH_TO_MEM,
399 .src_dev_type = DB8500_DMA_DEV48_CAC1_RX,
400 .dst_dev_type = STEDMA40_DEV_DST_MEMORY,
401 .src_info.data_width = STEDMA40_WORD_WIDTH,
402 .dst_info.data_width = STEDMA40_WORD_WIDTH,
403 .mode = STEDMA40_MODE_LOGICAL,
404 .src_info.psize = STEDMA40_PSIZE_LOG_4,
405 .dst_info.psize = STEDMA40_PSIZE_LOG_4,
406 }
407};
408
409static struct stedma40_chan_cfg u8500_hash_dma_cfg_tx = {
410 .dir = STEDMA40_MEM_TO_PERIPH,
411 .src_dev_type = STEDMA40_DEV_SRC_MEMORY,
412 .dst_dev_type = DB8500_DMA_DEV50_HAC1_TX,
413 .src_info.data_width = STEDMA40_WORD_WIDTH,
414 .dst_info.data_width = STEDMA40_WORD_WIDTH,
415 .mode = STEDMA40_MODE_LOGICAL,
416 .src_info.psize = STEDMA40_PSIZE_LOG_16,
417 .dst_info.psize = STEDMA40_PSIZE_LOG_16,
418};
419
420static struct hash_platform_data u8500_hash1_platform_data = {
421 .mem_to_engine = &u8500_hash_dma_cfg_tx,
422 .dma_filter = stedma40_filter,
423};
424
Srinidhi Kasagard48a41c2010-02-03 13:02:48 +0100425/* add any platform devices here - TODO */
Robert Marklund350abe02011-06-20 15:55:46 +0200426static struct platform_device *mop500_platform_devs[] __initdata = {
Philippe Langlaisa71b8192011-01-14 10:53:59 +0100427 &mop500_gpio_keys_device,
Srinidhi Kasagard48a41c2010-02-03 13:02:48 +0100428};
429
Linus Walleij5d7b8462010-10-14 13:57:59 +0200430#ifdef CONFIG_STE_DMA40
431static struct stedma40_chan_cfg ssp0_dma_cfg_rx = {
432 .mode = STEDMA40_MODE_LOGICAL,
433 .dir = STEDMA40_PERIPH_TO_MEM,
434 .src_dev_type = DB8500_DMA_DEV8_SSP0_RX,
435 .dst_dev_type = STEDMA40_DEV_DST_MEMORY,
436 .src_info.data_width = STEDMA40_BYTE_WIDTH,
437 .dst_info.data_width = STEDMA40_BYTE_WIDTH,
438};
439
440static struct stedma40_chan_cfg ssp0_dma_cfg_tx = {
441 .mode = STEDMA40_MODE_LOGICAL,
442 .dir = STEDMA40_MEM_TO_PERIPH,
443 .src_dev_type = STEDMA40_DEV_SRC_MEMORY,
444 .dst_dev_type = DB8500_DMA_DEV8_SSP0_TX,
445 .src_info.data_width = STEDMA40_BYTE_WIDTH,
446 .dst_info.data_width = STEDMA40_BYTE_WIDTH,
447};
448#endif
449
Lee Jones15daf692012-03-15 16:47:11 +0000450static struct pl022_ssp_controller ssp0_plat = {
Linus Walleij5d7b8462010-10-14 13:57:59 +0200451 .bus_id = 0,
452#ifdef CONFIG_STE_DMA40
453 .enable_dma = 1,
454 .dma_filter = stedma40_filter,
455 .dma_rx_param = &ssp0_dma_cfg_rx,
456 .dma_tx_param = &ssp0_dma_cfg_tx,
457#else
458 .enable_dma = 0,
459#endif
460 /* on this platform, gpio 31,142,144,214 &
461 * 224 are connected as chip selects
462 */
463 .num_chipselect = 5,
464};
465
Lee Jones18403422012-02-06 11:22:21 -0800466static void __init mop500_spi_init(struct device *parent)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +0530467{
Lee Jones15daf692012-03-15 16:47:11 +0000468 db8500_add_ssp0(parent, &ssp0_plat);
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +0530469}
470
Linus Walleij5d7b8462010-10-14 13:57:59 +0200471#ifdef CONFIG_STE_DMA40
472static struct stedma40_chan_cfg uart0_dma_cfg_rx = {
473 .mode = STEDMA40_MODE_LOGICAL,
474 .dir = STEDMA40_PERIPH_TO_MEM,
475 .src_dev_type = DB8500_DMA_DEV13_UART0_RX,
476 .dst_dev_type = STEDMA40_DEV_DST_MEMORY,
477 .src_info.data_width = STEDMA40_BYTE_WIDTH,
478 .dst_info.data_width = STEDMA40_BYTE_WIDTH,
479};
480
481static struct stedma40_chan_cfg uart0_dma_cfg_tx = {
482 .mode = STEDMA40_MODE_LOGICAL,
483 .dir = STEDMA40_MEM_TO_PERIPH,
484 .src_dev_type = STEDMA40_DEV_SRC_MEMORY,
485 .dst_dev_type = DB8500_DMA_DEV13_UART0_TX,
486 .src_info.data_width = STEDMA40_BYTE_WIDTH,
487 .dst_info.data_width = STEDMA40_BYTE_WIDTH,
488};
489
490static struct stedma40_chan_cfg uart1_dma_cfg_rx = {
491 .mode = STEDMA40_MODE_LOGICAL,
492 .dir = STEDMA40_PERIPH_TO_MEM,
493 .src_dev_type = DB8500_DMA_DEV12_UART1_RX,
494 .dst_dev_type = STEDMA40_DEV_DST_MEMORY,
495 .src_info.data_width = STEDMA40_BYTE_WIDTH,
496 .dst_info.data_width = STEDMA40_BYTE_WIDTH,
497};
498
499static struct stedma40_chan_cfg uart1_dma_cfg_tx = {
500 .mode = STEDMA40_MODE_LOGICAL,
501 .dir = STEDMA40_MEM_TO_PERIPH,
502 .src_dev_type = STEDMA40_DEV_SRC_MEMORY,
503 .dst_dev_type = DB8500_DMA_DEV12_UART1_TX,
504 .src_info.data_width = STEDMA40_BYTE_WIDTH,
505 .dst_info.data_width = STEDMA40_BYTE_WIDTH,
506};
507
508static struct stedma40_chan_cfg uart2_dma_cfg_rx = {
509 .mode = STEDMA40_MODE_LOGICAL,
510 .dir = STEDMA40_PERIPH_TO_MEM,
511 .src_dev_type = DB8500_DMA_DEV11_UART2_RX,
512 .dst_dev_type = STEDMA40_DEV_DST_MEMORY,
513 .src_info.data_width = STEDMA40_BYTE_WIDTH,
514 .dst_info.data_width = STEDMA40_BYTE_WIDTH,
515};
516
517static struct stedma40_chan_cfg uart2_dma_cfg_tx = {
518 .mode = STEDMA40_MODE_LOGICAL,
519 .dir = STEDMA40_MEM_TO_PERIPH,
520 .src_dev_type = STEDMA40_DEV_SRC_MEMORY,
521 .dst_dev_type = DB8500_DMA_DEV11_UART2_TX,
522 .src_info.data_width = STEDMA40_BYTE_WIDTH,
523 .dst_info.data_width = STEDMA40_BYTE_WIDTH,
524};
525#endif
526
Shreshtha Kumar Sahu1a7d4362011-06-13 10:11:44 +0200527#define PRCC_K_SOFTRST_SET 0x18
528#define PRCC_K_SOFTRST_CLEAR 0x1C
529static void ux500_uart0_reset(void)
530{
531 void __iomem *prcc_rst_set, *prcc_rst_clr;
532
533 prcc_rst_set = (void __iomem *)IO_ADDRESS(U8500_CLKRST1_BASE +
534 PRCC_K_SOFTRST_SET);
535 prcc_rst_clr = (void __iomem *)IO_ADDRESS(U8500_CLKRST1_BASE +
536 PRCC_K_SOFTRST_CLEAR);
537
538 /* Activate soft reset PRCC_K_SOFTRST_CLEAR */
539 writel((readl(prcc_rst_clr) | 0x1), prcc_rst_clr);
540 udelay(1);
541
542 /* Release soft reset PRCC_K_SOFTRST_SET */
543 writel((readl(prcc_rst_set) | 0x1), prcc_rst_set);
544 udelay(1);
545}
546
Linus Walleij5d7b8462010-10-14 13:57:59 +0200547static struct amba_pl011_data uart0_plat = {
548#ifdef CONFIG_STE_DMA40
549 .dma_filter = stedma40_filter,
550 .dma_rx_param = &uart0_dma_cfg_rx,
551 .dma_tx_param = &uart0_dma_cfg_tx,
552#endif
Shreshtha Kumar Sahu1a7d4362011-06-13 10:11:44 +0200553 .reset = ux500_uart0_reset,
Linus Walleij5d7b8462010-10-14 13:57:59 +0200554};
555
556static struct amba_pl011_data uart1_plat = {
557#ifdef CONFIG_STE_DMA40
558 .dma_filter = stedma40_filter,
559 .dma_rx_param = &uart1_dma_cfg_rx,
560 .dma_tx_param = &uart1_dma_cfg_tx,
561#endif
562};
563
564static struct amba_pl011_data uart2_plat = {
565#ifdef CONFIG_STE_DMA40
566 .dma_filter = stedma40_filter,
567 .dma_rx_param = &uart2_dma_cfg_rx,
568 .dma_tx_param = &uart2_dma_cfg_tx,
569#endif
570};
571
Lee Jones18403422012-02-06 11:22:21 -0800572static void __init mop500_uart_init(struct device *parent)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +0530573{
Linus Walleij78d80c52012-05-23 21:18:46 +0200574 db8500_add_uart0(parent, &uart0_plat);
Lee Jones18403422012-02-06 11:22:21 -0800575 db8500_add_uart1(parent, &uart1_plat);
576 db8500_add_uart2(parent, &uart2_plat);
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +0530577}
578
Andreas Westin585d1882012-05-10 10:14:06 +0200579static void __init u8500_cryp1_hash1_init(struct device *parent)
580{
581 db8500_add_cryp1(parent, &u8500_cryp1_platform_data);
582 db8500_add_hash1(parent, &u8500_hash1_platform_data);
583}
584
Robert Marklund350abe02011-06-20 15:55:46 +0200585static struct platform_device *snowball_platform_devs[] __initdata = {
586 &snowball_led_dev,
587 &snowball_key_dev,
Lee Jonese6fada52012-05-17 13:18:36 +0100588 &snowball_sbnet_dev,
Robert Marklund350abe02011-06-20 15:55:46 +0200589};
590
Linus Walleij4b4f7572011-02-15 15:01:35 +0100591static void __init mop500_init_machine(void)
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +0100592{
Lee Jones18403422012-02-06 11:22:21 -0800593 struct device *parent = NULL;
Linus Walleijcf568c52011-03-30 14:31:42 +0200594 int i2c0_devs;
Lee Jonesb024a0c2012-02-06 11:22:25 -0800595 int i;
Linus Walleijcf568c52011-03-30 14:31:42 +0200596
Lee Jones110c2c22011-08-26 16:54:07 +0100597 mop500_gpio_keys[0].gpio = GPIO_PROX_SENSOR;
Linus Walleij4b4f7572011-02-15 15:01:35 +0100598
Linus Walleijed781d392012-05-03 00:44:52 +0200599 mop500_pinmaps_init();
Lee Jones3a8e39c2012-07-06 12:46:23 +0200600 parent = u8500_init_devices(&ab8500_platdata);
Rabin Vincentea05a572010-06-03 07:58:42 +0100601
Lee Jonesb024a0c2012-02-06 11:22:25 -0800602 for (i = 0; i < ARRAY_SIZE(mop500_platform_devs); i++)
603 mop500_platform_devs[i]->dev.parent = parent;
604
Lee Jones110c2c22011-08-26 16:54:07 +0100605 platform_add_devices(mop500_platform_devs,
606 ARRAY_SIZE(mop500_platform_devs));
Srinidhi Kasagard48a41c2010-02-03 13:02:48 +0100607
Lee Jones18403422012-02-06 11:22:21 -0800608 mop500_i2c_init(parent);
609 mop500_sdi_init(parent);
610 mop500_spi_init(parent);
Ola Liljac0af14d2012-04-20 11:32:59 +0200611 mop500_msp_init(parent);
Lee Jones18403422012-02-06 11:22:21 -0800612 mop500_uart_init(parent);
Hanumath Prasad008f8a22010-08-19 12:06:32 +0100613
Andreas Westin585d1882012-05-10 10:14:06 +0200614 u8500_cryp1_hash1_init(parent);
615
Linus Walleijcf568c52011-03-30 14:31:42 +0200616 i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices);
Lee Jones110c2c22011-08-26 16:54:07 +0100617
618 i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs);
619 i2c_register_board_info(2, mop500_i2c2_devices,
620 ARRAY_SIZE(mop500_i2c2_devices));
621
622 /* This board has full regulator constraints */
623 regulator_has_full_constraints();
Lee Jonesfd6948b2012-05-02 09:53:48 +0100624
625 mop500_uib_init();
Lee Jones110c2c22011-08-26 16:54:07 +0100626}
627
628static void __init snowball_init_machine(void)
629{
Lee Jones18403422012-02-06 11:22:21 -0800630 struct device *parent = NULL;
Lee Jonesb024a0c2012-02-06 11:22:25 -0800631 int i;
Lee Jones110c2c22011-08-26 16:54:07 +0100632
Linus Walleijed781d392012-05-03 00:44:52 +0200633 snowball_pinmaps_init();
Lee Jones3a8e39c2012-07-06 12:46:23 +0200634 parent = u8500_init_devices(&ab8500_platdata);
Lee Jones110c2c22011-08-26 16:54:07 +0100635
Lee Jonesb024a0c2012-02-06 11:22:25 -0800636 for (i = 0; i < ARRAY_SIZE(snowball_platform_devs); i++)
637 snowball_platform_devs[i]->dev.parent = parent;
638
Lee Jones110c2c22011-08-26 16:54:07 +0100639 platform_add_devices(snowball_platform_devs,
640 ARRAY_SIZE(snowball_platform_devs));
641
Lee Jones18403422012-02-06 11:22:21 -0800642 mop500_i2c_init(parent);
643 snowball_sdi_init(parent);
644 mop500_spi_init(parent);
Ola Liljac0af14d2012-04-20 11:32:59 +0200645 mop500_msp_init(parent);
Lee Jones18403422012-02-06 11:22:21 -0800646 mop500_uart_init(parent);
Lee Jones110c2c22011-08-26 16:54:07 +0100647
Lee Jones110c2c22011-08-26 16:54:07 +0100648 /* This board has full regulator constraints */
649 regulator_has_full_constraints();
650}
651
652static void __init hrefv60_init_machine(void)
653{
Lee Jones18403422012-02-06 11:22:21 -0800654 struct device *parent = NULL;
Lee Jones110c2c22011-08-26 16:54:07 +0100655 int i2c0_devs;
Lee Jonesb024a0c2012-02-06 11:22:25 -0800656 int i;
Lee Jones110c2c22011-08-26 16:54:07 +0100657
658 /*
659 * The HREFv60 board removed a GPIO expander and routed
660 * all these GPIO pins to the internal GPIO controller
661 * instead.
662 */
663 mop500_gpio_keys[0].gpio = HREFV60_PROX_SENSE_GPIO;
664
Linus Walleijed781d392012-05-03 00:44:52 +0200665 hrefv60_pinmaps_init();
Lee Jones3a8e39c2012-07-06 12:46:23 +0200666 parent = u8500_init_devices(&ab8500_platdata);
Lee Jones110c2c22011-08-26 16:54:07 +0100667
Lee Jonesb024a0c2012-02-06 11:22:25 -0800668 for (i = 0; i < ARRAY_SIZE(mop500_platform_devs); i++)
669 mop500_platform_devs[i]->dev.parent = parent;
670
Lee Jones110c2c22011-08-26 16:54:07 +0100671 platform_add_devices(mop500_platform_devs,
672 ARRAY_SIZE(mop500_platform_devs));
673
Lee Jones18403422012-02-06 11:22:21 -0800674 mop500_i2c_init(parent);
675 hrefv60_sdi_init(parent);
676 mop500_spi_init(parent);
Ola Liljac0af14d2012-04-20 11:32:59 +0200677 mop500_msp_init(parent);
Lee Jones18403422012-02-06 11:22:21 -0800678 mop500_uart_init(parent);
Lee Jones110c2c22011-08-26 16:54:07 +0100679
680 i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices);
681
682 i2c0_devs -= NUM_PRE_V60_I2C0_DEVICES;
Linus Walleijcf568c52011-03-30 14:31:42 +0200683
684 i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs);
Philippe Langlaisdd7b2a02011-01-12 11:26:20 +0100685 i2c_register_board_info(2, mop500_i2c2_devices,
686 ARRAY_SIZE(mop500_i2c2_devices));
Linus Walleijdb245202011-04-04 10:44:51 +0200687
688 /* This board has full regulator constraints */
689 regulator_has_full_constraints();
Lee Jonesfd6948b2012-05-02 09:53:48 +0100690
691 mop500_uib_init();
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +0100692}
693
694MACHINE_START(U8500, "ST-Ericsson MOP500 platform")
695 /* Maintainer: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> */
Nicolas Pitrebc77b1a2011-07-05 22:38:18 -0400696 .atag_offset = 0x100,
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +0100697 .map_io = u8500_map_io,
Rabin Vincent178980f2010-05-03 07:39:02 +0100698 .init_irq = ux500_init_irq,
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +0100699 /* we re-use nomadik timer here */
Rabin Vincent41ac3292010-05-03 08:28:05 +0100700 .timer = &ux500_timer,
Marc Zyngierbbf5f382011-09-06 10:23:45 +0100701 .handle_irq = gic_handle_irq,
Linus Walleij4b4f7572011-02-15 15:01:35 +0100702 .init_machine = mop500_init_machine,
Shawn Guoa010bc22012-05-02 17:10:07 +0800703 .init_late = ux500_init_late,
Linus Walleij4b4f7572011-02-15 15:01:35 +0100704MACHINE_END
705
706MACHINE_START(HREFV60, "ST-Ericsson U8500 Platform HREFv60+")
Nicolas Pitrebc77b1a2011-07-05 22:38:18 -0400707 .atag_offset = 0x100,
Linus Walleij4b4f7572011-02-15 15:01:35 +0100708 .map_io = u8500_map_io,
709 .init_irq = ux500_init_irq,
710 .timer = &ux500_timer,
Marc Zyngierbbf5f382011-09-06 10:23:45 +0100711 .handle_irq = gic_handle_irq,
Lee Jones110c2c22011-08-26 16:54:07 +0100712 .init_machine = hrefv60_init_machine,
Shawn Guoa010bc22012-05-02 17:10:07 +0800713 .init_late = ux500_init_late,
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +0100714MACHINE_END
Robert Marklund350abe02011-06-20 15:55:46 +0200715
716MACHINE_START(SNOWBALL, "Calao Systems Snowball platform")
Nicolas Pitrebc77b1a2011-07-05 22:38:18 -0400717 .atag_offset = 0x100,
Robert Marklund350abe02011-06-20 15:55:46 +0200718 .map_io = u8500_map_io,
719 .init_irq = ux500_init_irq,
720 /* we re-use nomadik timer here */
721 .timer = &ux500_timer,
Marc Zyngierbbf5f382011-09-06 10:23:45 +0100722 .handle_irq = gic_handle_irq,
Lee Jones110c2c22011-08-26 16:54:07 +0100723 .init_machine = snowball_init_machine,
Shawn Guoa010bc22012-05-02 17:10:07 +0800724 .init_late = ux500_init_late,
Robert Marklund350abe02011-06-20 15:55:46 +0200725MACHINE_END
Arnd Bergmann2d334292012-03-07 15:04:07 +0000726
727#ifdef CONFIG_MACH_UX500_DT
Lee Jones7e0ce272012-03-15 16:46:17 +0000728
Lee Jonesc57920e2012-06-15 09:27:54 +0100729static struct platform_device *snowball_of_platform_devs[] __initdata = {
730 &snowball_led_dev,
731 &snowball_key_dev,
732};
733
Lee Jones7e0ce272012-03-15 16:46:17 +0000734struct of_dev_auxdata u8500_auxdata_lookup[] __initdata = {
Lee Jones513c27f2012-04-13 15:05:05 +0100735 /* Requires DMA and call-back bindings. */
Lee Jones4905af02012-03-07 17:35:04 +0000736 OF_DEV_AUXDATA("arm,pl011", 0x80120000, "uart0", &uart0_plat),
737 OF_DEV_AUXDATA("arm,pl011", 0x80121000, "uart1", &uart1_plat),
738 OF_DEV_AUXDATA("arm,pl011", 0x80007000, "uart2", &uart2_plat),
Lee Jones513c27f2012-04-13 15:05:05 +0100739 /* Requires DMA bindings. */
Lee Jones15daf692012-03-15 16:47:11 +0000740 OF_DEV_AUXDATA("arm,pl022", 0x80002000, "ssp0", &ssp0_plat),
Lee Jones5e1ac7d2012-05-29 14:40:04 +0800741 OF_DEV_AUXDATA("arm,pl18x", 0x80126000, "sdi0", &mop500_sdi0_data),
742 OF_DEV_AUXDATA("arm,pl18x", 0x80114000, "sdi4", &mop500_sdi4_data),
Lee Jones513c27f2012-04-13 15:05:05 +0100743 /* Requires clock name bindings. */
744 OF_DEV_AUXDATA("st,nomadik-gpio", 0x8012e000, "gpio.0", NULL),
745 OF_DEV_AUXDATA("st,nomadik-gpio", 0x8012e080, "gpio.1", NULL),
746 OF_DEV_AUXDATA("st,nomadik-gpio", 0x8000e000, "gpio.2", NULL),
747 OF_DEV_AUXDATA("st,nomadik-gpio", 0x8000e080, "gpio.3", NULL),
748 OF_DEV_AUXDATA("st,nomadik-gpio", 0x8000e100, "gpio.4", NULL),
749 OF_DEV_AUXDATA("st,nomadik-gpio", 0x8000e180, "gpio.5", NULL),
750 OF_DEV_AUXDATA("st,nomadik-gpio", 0x8011e000, "gpio.6", NULL),
751 OF_DEV_AUXDATA("st,nomadik-gpio", 0x8011e080, "gpio.7", NULL),
752 OF_DEV_AUXDATA("st,nomadik-gpio", 0xa03fe000, "gpio.8", NULL),
Lee Jones079c61e2012-04-17 16:11:02 +0100753 OF_DEV_AUXDATA("st,nomadik-i2c", 0x80004000, "nmk-i2c.0", NULL),
754 OF_DEV_AUXDATA("st,nomadik-i2c", 0x80122000, "nmk-i2c.1", NULL),
755 OF_DEV_AUXDATA("st,nomadik-i2c", 0x80128000, "nmk-i2c.2", NULL),
756 OF_DEV_AUXDATA("st,nomadik-i2c", 0x80110000, "nmk-i2c.3", NULL),
757 OF_DEV_AUXDATA("st,nomadik-i2c", 0x8012a000, "nmk-i2c.4", NULL),
Lee Jones2b667a22012-07-06 15:59:01 +0100758 /* Requires device name bindings. */
759 OF_DEV_AUXDATA("stericsson,nmk_pinctrl", 0, "pinctrl-db8500", NULL),
Lee Jones7e0ce272012-03-15 16:46:17 +0000760 {},
761};
762
Lee Jones2cfaa622012-04-19 21:36:30 +0100763static const struct of_device_id u8500_local_bus_nodes[] = {
Lee Jones7e0ce272012-03-15 16:46:17 +0000764 /* only create devices below soc node */
765 { .compatible = "stericsson,db8500", },
Lee Jones48a4ea62012-05-29 15:06:55 +0800766 { .compatible = "stericsson,db8500-prcmu", },
Lee Jones2cfaa622012-04-19 21:36:30 +0100767 { .compatible = "simple-bus"},
Lee Jones7e0ce272012-03-15 16:46:17 +0000768 { },
769};
770
Arnd Bergmann2d334292012-03-07 15:04:07 +0000771static void __init u8500_init_machine(void)
772{
Arnd Bergmann7734fed2012-03-02 22:25:02 +0000773 struct device *parent = NULL;
774 int i2c0_devs;
775 int i;
776
Linus Walleijed781d392012-05-03 00:44:52 +0200777 /* Pinmaps must be in place before devices register */
778 if (of_machine_is_compatible("st-ericsson,mop500"))
779 mop500_pinmaps_init();
780 else if (of_machine_is_compatible("calaosystems,snowball-a9500"))
781 snowball_pinmaps_init();
782 else if (of_machine_is_compatible("st-ericsson,hrefv60+"))
783 hrefv60_pinmaps_init();
784
Lee Jonesf65c1982012-05-29 10:03:09 +0800785 parent = u8500_of_init_devices();
Arnd Bergmann7734fed2012-03-02 22:25:02 +0000786
787 for (i = 0; i < ARRAY_SIZE(mop500_platform_devs); i++)
788 mop500_platform_devs[i]->dev.parent = parent;
Arnd Bergmann7734fed2012-03-02 22:25:02 +0000789
Lee Jones7e0ce272012-03-15 16:46:17 +0000790 /* automatically probe child nodes of db8500 device */
Lee Jones2cfaa622012-04-19 21:36:30 +0100791 of_platform_populate(NULL, u8500_local_bus_nodes, u8500_auxdata_lookup, parent);
Arnd Bergmann7734fed2012-03-02 22:25:02 +0000792
793 if (of_machine_is_compatible("st-ericsson,mop500")) {
794 mop500_gpio_keys[0].gpio = GPIO_PROX_SENSOR;
Arnd Bergmann7734fed2012-03-02 22:25:02 +0000795
796 platform_add_devices(mop500_platform_devs,
797 ARRAY_SIZE(mop500_platform_devs));
798
799 mop500_sdi_init(parent);
Lee Jones4809f902012-04-19 21:36:40 +0100800 i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices);
801 i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs);
802 i2c_register_board_info(2, mop500_i2c2_devices,
803 ARRAY_SIZE(mop500_i2c2_devices));
804
Lee Jonesfd6948b2012-05-02 09:53:48 +0100805 mop500_uib_init();
806
Arnd Bergmann7734fed2012-03-02 22:25:02 +0000807 } else if (of_machine_is_compatible("st-ericsson,hrefv60+")) {
808 /*
809 * The HREFv60 board removed a GPIO expander and routed
810 * all these GPIO pins to the internal GPIO controller
811 * instead.
812 */
813 mop500_gpio_keys[0].gpio = HREFV60_PROX_SENSE_GPIO;
Arnd Bergmann7734fed2012-03-02 22:25:02 +0000814 platform_add_devices(mop500_platform_devs,
815 ARRAY_SIZE(mop500_platform_devs));
816
817 hrefv60_sdi_init(parent);
Lee Jones4809f902012-04-19 21:36:40 +0100818
819 i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices);
820 i2c0_devs -= NUM_PRE_V60_I2C0_DEVICES;
821
822 i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs);
823 i2c_register_board_info(2, mop500_i2c2_devices,
824 ARRAY_SIZE(mop500_i2c2_devices));
Lee Jonesfd6948b2012-05-02 09:53:48 +0100825
826 mop500_uib_init();
Arnd Bergmann7734fed2012-03-02 22:25:02 +0000827 }
Arnd Bergmann7734fed2012-03-02 22:25:02 +0000828
Arnd Bergmann7734fed2012-03-02 22:25:02 +0000829 /* This board has full regulator constraints */
830 regulator_has_full_constraints();
Arnd Bergmann2d334292012-03-07 15:04:07 +0000831}
832
833static const char * u8500_dt_board_compat[] = {
834 "calaosystems,snowball-a9500",
835 "st-ericsson,hrefv60+",
836 "st-ericsson,u8500",
837 "st-ericsson,mop500",
838 NULL,
839};
840
841
842DT_MACHINE_START(U8500_DT, "ST-Ericsson U8500 platform (Device Tree Support)")
843 .map_io = u8500_map_io,
844 .init_irq = ux500_init_irq,
845 /* we re-use nomadik timer here */
846 .timer = &ux500_timer,
847 .handle_irq = gic_handle_irq,
848 .init_machine = u8500_init_machine,
Shawn Guoa010bc22012-05-02 17:10:07 +0800849 .init_late = ux500_init_late,
Arnd Bergmann2d334292012-03-07 15:04:07 +0000850 .dt_compat = u8500_dt_board_compat,
851MACHINE_END
852#endif