blob: e70955502c35e64d44a7b515503c34f3d4243d63 [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
Lee Jones18403422012-02-06 11:22:21 -080013#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)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053019
Lee Jones18403422012-02-06 11:22:21 -080020#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)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053029
Lee Jones18403422012-02-06 11:22:21 -080030#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)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053039
Lee Jones18403422012-02-06 11:22:21 -080040#define db5500_add_rtc(parent) \
41 dbx500_add_rtc(parent, U5500_RTC_BASE, IRQ_DB5500_RTC);
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053042
Lee Jones18403422012-02-06 11:22:21 -080043#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)
Mian Yousaf Kaukab741caea2011-01-21 18:24:19 +010046
Lee Jones18403422012-02-06 11:22:21 -080047#define db5500_add_sdi0(parent, pdata) \
48 dbx500_add_sdi(parent, "sdi0", U5500_SDI0_BASE, \
49 IRQ_DB5500_SDMMC0, pdata, \
Linus Walleij72930312011-03-24 16:13:13 +010050 0x10480180)
Lee Jones18403422012-02-06 11:22:21 -080051#define db5500_add_sdi1(parent, pdata) \
52 dbx500_add_sdi(parent, "sdi1", U5500_SDI1_BASE, \
53 IRQ_DB5500_SDMMC1, pdata, \
Linus Walleij72930312011-03-24 16:13:13 +010054 0x10480180)
Lee Jones18403422012-02-06 11:22:21 -080055#define db5500_add_sdi2(parent, pdata) \
56 dbx500_add_sdi(parent, "sdi2", U5500_SDI2_BASE, \
57 IRQ_DB5500_SDMMC2, pdata \
Linus Walleij72930312011-03-24 16:13:13 +010058 0x10480180)
Lee Jones18403422012-02-06 11:22:21 -080059#define db5500_add_sdi3(parent, pdata) \
60 dbx500_add_sdi(parent, "sdi3", U5500_SDI3_BASE, \
61 IRQ_DB5500_SDMMC3, pdata \
Linus Walleij72930312011-03-24 16:13:13 +010062 0x10480180)
Lee Jones18403422012-02-06 11:22:21 -080063#define db5500_add_sdi4(parent, pdata) \
64 dbx500_add_sdi(parent, "sdi4", U5500_SDI4_BASE, \
65 IRQ_DB5500_SDMMC4, pdata \
Linus Walleij72930312011-03-24 16:13:13 +010066 0x10480180)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053067
Linus Walleij72930312011-03-24 16:13:13 +010068/* This one has a bad peripheral ID in the U5500 silicon */
Lee Jones18403422012-02-06 11:22:21 -080069#define db5500_add_spi0(parent, pdata) \
70 dbx500_add_spi(parent, "spi0", U5500_SPI0_BASE, \
71 IRQ_DB5500_SPI0, pdata, \
Linus Walleij72930312011-03-24 16:13:13 +010072 0x10080023)
Lee Jones18403422012-02-06 11:22:21 -080073#define db5500_add_spi1(parent, pdata) \
74 dbx500_add_spi(parent, "spi1", U5500_SPI1_BASE, \
75 IRQ_DB5500_SPI1, pdata, \
Linus Walleij72930312011-03-24 16:13:13 +010076 0x10080023)
Lee Jones18403422012-02-06 11:22:21 -080077#define db5500_add_spi2(parent, pdata) \
78 dbx500_add_spi(parent, "spi2", U5500_SPI2_BASE, \
79 IRQ_DB5500_SPI2, pdata \
Linus Walleij72930312011-03-24 16:13:13 +010080 0x10080023)
Lee Jones18403422012-02-06 11:22:21 -080081#define db5500_add_spi3(parent, pdata) \
82 dbx500_add_spi(parent, "spi3", U5500_SPI3_BASE, \
83 IRQ_DB5500_SPI3, pdata \
Linus Walleij72930312011-03-24 16:13:13 +010084 0x10080023)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053085
Lee Jones18403422012-02-06 11:22:21 -080086#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)
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053098
99#endif