Merge branch 'samsung/exynos5' into next/soc2
[linux-2.6.git] / arch / arm / mach-ux500 / devices-db5500.h
1 /*
2  * Copyright (C) ST-Ericsson SA 2010
3  *
4  * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson
5  * License terms: GNU General Public License (GPL), version 2.
6  */
7
8 #ifndef __DEVICES_DB5500_H
9 #define __DEVICES_DB5500_H
10
11 #include "devices-common.h"
12
13 #define db5500_add_i2c1(parent, pdata) \
14         dbx500_add_i2c(parent, 1, U5500_I2C1_BASE, IRQ_DB5500_I2C1, pdata)
15 #define db5500_add_i2c2(parent, pdata) \
16         dbx500_add_i2c(parent, 2, U5500_I2C2_BASE, IRQ_DB5500_I2C2, pdata)
17 #define db5500_add_i2c3(parent, pdata) \
18         dbx500_add_i2c(parent, 3, U5500_I2C3_BASE, IRQ_DB5500_I2C3, pdata)
19
20 #define db5500_add_msp0_spi(parent, pdata) \
21         dbx500_add_msp_spi(parent, "msp0", U5500_MSP0_BASE, \
22                            IRQ_DB5500_MSP0, pdata)
23 #define db5500_add_msp1_spi(parent, pdata) \
24         dbx500_add_msp_spi(parent, "msp1", U5500_MSP1_BASE, \
25                            IRQ_DB5500_MSP1, pdata)
26 #define db5500_add_msp2_spi(parent, pdata) \
27         dbx500_add_msp_spi(parent, "msp2", U5500_MSP2_BASE, \
28                            IRQ_DB5500_MSP2, pdata)
29
30 #define db5500_add_msp0_spi(parent, pdata) \
31         dbx500_add_msp_spi(parent, "msp0", U5500_MSP0_BASE, \
32                           IRQ_DB5500_MSP0, pdata)
33 #define db5500_add_msp1_spi(parent, pdata) \
34         dbx500_add_msp_spi(parent, "msp1", U5500_MSP1_BASE, \
35                           IRQ_DB5500_MSP1, pdata)
36 #define db5500_add_msp2_spi(parent, pdata) \
37         dbx500_add_msp_spi(parent, "msp2", U5500_MSP2_BASE, \
38                           IRQ_DB5500_MSP2, pdata)
39
40 #define db5500_add_rtc(parent) \
41         dbx500_add_rtc(parent, U5500_RTC_BASE, IRQ_DB5500_RTC);
42
43 #define db5500_add_usb(parent, rx_cfg, tx_cfg) \
44         ux500_add_usb(parent, U5500_USBOTG_BASE, \
45                       IRQ_DB5500_USBOTG, rx_cfg, tx_cfg)
46
47 #define db5500_add_sdi0(parent, pdata) \
48         dbx500_add_sdi(parent, "sdi0", U5500_SDI0_BASE, \
49                        IRQ_DB5500_SDMMC0, pdata,        \
50                        0x10480180)
51 #define db5500_add_sdi1(parent, pdata) \
52         dbx500_add_sdi(parent, "sdi1", U5500_SDI1_BASE, \
53                        IRQ_DB5500_SDMMC1, pdata,        \
54                        0x10480180)
55 #define db5500_add_sdi2(parent, pdata) \
56         dbx500_add_sdi(parent, "sdi2", U5500_SDI2_BASE, \
57                        IRQ_DB5500_SDMMC2, pdata         \
58                        0x10480180)
59 #define db5500_add_sdi3(parent, pdata) \
60         dbx500_add_sdi(parent, "sdi3", U5500_SDI3_BASE, \
61                        IRQ_DB5500_SDMMC3, pdata         \
62                        0x10480180)
63 #define db5500_add_sdi4(parent, pdata) \
64         dbx500_add_sdi(parent, "sdi4", U5500_SDI4_BASE, \
65                        IRQ_DB5500_SDMMC4, pdata         \
66                        0x10480180)
67
68 /* This one has a bad peripheral ID in the U5500 silicon */
69 #define db5500_add_spi0(parent, pdata) \
70         dbx500_add_spi(parent, "spi0", U5500_SPI0_BASE, \
71                        IRQ_DB5500_SPI0, pdata,          \
72                        0x10080023)
73 #define db5500_add_spi1(parent, pdata) \
74         dbx500_add_spi(parent, "spi1", U5500_SPI1_BASE, \
75                        IRQ_DB5500_SPI1, pdata,          \
76                        0x10080023)
77 #define db5500_add_spi2(parent, pdata) \
78         dbx500_add_spi(parent, "spi2", U5500_SPI2_BASE, \
79                        IRQ_DB5500_SPI2, pdata           \
80                        0x10080023)
81 #define db5500_add_spi3(parent, pdata) \
82         dbx500_add_spi(parent, "spi3", U5500_SPI3_BASE, \
83                        IRQ_DB5500_SPI3, pdata           \
84                        0x10080023)
85
86 #define db5500_add_uart0(parent, plat) \
87         dbx500_add_uart(parent, "uart0", U5500_UART0_BASE, \
88                         IRQ_DB5500_UART0, plat)
89 #define db5500_add_uart1(parent, plat) \
90         dbx500_add_uart(parent, "uart1", U5500_UART1_BASE, \
91                         IRQ_DB5500_UART1, plat)
92 #define db5500_add_uart2(parent, plat) \
93         dbx500_add_uart(parent, "uart2", U5500_UART2_BASE, \
94                         IRQ_DB5500_UART2, plat)
95 #define db5500_add_uart3(parent, plat) \
96         dbx500_add_uart(parent, "uart3", U5500_UART3_BASE, \
97                         IRQ_DB5500_UART3, plat)
98
99 #endif