blob: 0c4bccd02b90fe2836c4b8954235bf88d5eac270 [file] [log] [blame]
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +05301/*
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(pdata) \
14 dbx500_add_i2c(1, U5500_I2C1_BASE, IRQ_DB5500_I2C1, pdata)
15#define db5500_add_i2c2(pdata) \
16 dbx500_add_i2c(2, U5500_I2C2_BASE, IRQ_DB5500_I2C2, pdata)
17#define db5500_add_i2c3(pdata) \
18 dbx500_add_i2c(3, U5500_I2C3_BASE, IRQ_DB5500_I2C3, pdata)
19
20#define db5500_add_msp0_i2s(pdata) \
21 dbx500_add_msp_i2s(0, U5500_MSP0_BASE, IRQ_DB5500_MSP0, pdata)
22#define db5500_add_msp1_i2s(pdata) \
23 dbx500_add_msp_i2s(1, U5500_MSP1_BASE, IRQ_DB5500_MSP1, pdata)
24#define db5500_add_msp2_i2s(pdata) \
25 dbx500_add_msp_i2s(2, U5500_MSP2_BASE, IRQ_DB5500_MSP2, pdata)
26
27#define db5500_add_msp0_spi(pdata) \
28 dbx500_add_msp_spi("msp0", U5500_MSP0_BASE, IRQ_DB5500_MSP0, pdata)
29#define db5500_add_msp1_spi(pdata) \
30 dbx500_add_msp_spi("msp1", U5500_MSP1_BASE, IRQ_DB5500_MSP1, pdata)
31#define db5500_add_msp2_spi(pdata) \
32 dbx500_add_msp_spi("msp2", U5500_MSP2_BASE, IRQ_DB5500_MSP2, pdata)
33
34#define db5500_add_rtc() \
35 dbx500_add_rtc(U5500_RTC_BASE, IRQ_DB5500_RTC);
36
Mian Yousaf Kaukab741caea2011-01-21 18:24:19 +010037#define db5500_add_usb(rx_cfg, tx_cfg) \
38 ux500_add_usb(U5500_USBOTG_BASE, IRQ_DB5500_USBOTG, rx_cfg, tx_cfg)
39
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053040#define db5500_add_sdi0(pdata) \
Linus Walleij72930312011-03-24 16:13:13 +010041 dbx500_add_sdi("sdi0", U5500_SDI0_BASE, IRQ_DB5500_SDMMC0, pdata, \
42 0x10480180)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053043#define db5500_add_sdi1(pdata) \
Linus Walleij72930312011-03-24 16:13:13 +010044 dbx500_add_sdi("sdi1", U5500_SDI1_BASE, IRQ_DB5500_SDMMC1, pdata, \
45 0x10480180)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053046#define db5500_add_sdi2(pdata) \
Linus Walleij72930312011-03-24 16:13:13 +010047 dbx500_add_sdi("sdi2", U5500_SDI2_BASE, IRQ_DB5500_SDMMC2, pdata \
48 0x10480180)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053049#define db5500_add_sdi3(pdata) \
Linus Walleij72930312011-03-24 16:13:13 +010050 dbx500_add_sdi("sdi3", U5500_SDI3_BASE, IRQ_DB5500_SDMMC3, pdata \
51 0x10480180)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053052#define db5500_add_sdi4(pdata) \
Linus Walleij72930312011-03-24 16:13:13 +010053 dbx500_add_sdi("sdi4", U5500_SDI4_BASE, IRQ_DB5500_SDMMC4, pdata \
54 0x10480180)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053055
Linus Walleij72930312011-03-24 16:13:13 +010056/* This one has a bad peripheral ID in the U5500 silicon */
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053057#define db5500_add_spi0(pdata) \
Linus Walleij72930312011-03-24 16:13:13 +010058 dbx500_add_spi("spi0", U5500_SPI0_BASE, IRQ_DB5500_SPI0, pdata, \
59 0x10080023)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053060#define db5500_add_spi1(pdata) \
Linus Walleij72930312011-03-24 16:13:13 +010061 dbx500_add_spi("spi1", U5500_SPI1_BASE, IRQ_DB5500_SPI1, pdata, \
62 0x10080023)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053063#define db5500_add_spi2(pdata) \
Linus Walleij72930312011-03-24 16:13:13 +010064 dbx500_add_spi("spi2", U5500_SPI2_BASE, IRQ_DB5500_SPI2, pdata \
65 0x10080023)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053066#define db5500_add_spi3(pdata) \
Linus Walleij72930312011-03-24 16:13:13 +010067 dbx500_add_spi("spi3", U5500_SPI3_BASE, IRQ_DB5500_SPI3, pdata \
68 0x10080023)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053069
Linus Walleij5d7b8462010-10-14 13:57:59 +020070#define db5500_add_uart0(plat) \
71 dbx500_add_uart("uart0", U5500_UART0_BASE, IRQ_DB5500_UART0, plat)
72#define db5500_add_uart1(plat) \
73 dbx500_add_uart("uart1", U5500_UART1_BASE, IRQ_DB5500_UART1, plat)
74#define db5500_add_uart2(plat) \
75 dbx500_add_uart("uart2", U5500_UART2_BASE, IRQ_DB5500_UART2, plat)
76#define db5500_add_uart3(plat) \
77 dbx500_add_uart("uart3", U5500_UART3_BASE, IRQ_DB5500_UART3, plat)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053078
79#endif