summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVirupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>2011-06-06 15:53:24 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:02:01 +0200
commit16ffa3265574c1f94899a941b09047d765140a58 (patch)
treecb8ecfba6493d225b7023c69fbea494a556a40a9
parent50a4dd9fa2426c8a6fd99a98cf43528ec9c51d97 (diff)
board-u5500: Add SPI3 platform data
Initially used SPI1 pins are been used for the UART, configure the new spi interface for the spi LTP testcase purpose. ST-Ericsson Linux next: - ER344984 ST-Ericsson ID: ER343661 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: If3eb64238c39d7b7b339b648465c4d870f2bce31 Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24487 Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
-rw-r--r--arch/arm/mach-ux500/board-u5500-pins.c8
-rw-r--r--arch/arm/mach-ux500/board-u5500.c4
-rw-r--r--arch/arm/mach-ux500/devices-db5500.h4
3 files changed, 12 insertions, 4 deletions
diff --git a/arch/arm/mach-ux500/board-u5500-pins.c b/arch/arm/mach-ux500/board-u5500-pins.c
index f218c19cda1..8b9c92eee21 100644
--- a/arch/arm/mach-ux500/board-u5500-pins.c
+++ b/arch/arm/mach-ux500/board-u5500-pins.c
@@ -106,9 +106,17 @@ static UX500_PINS(u5500_pins_i2c2,
GPIO219_I2C2_SDA,
);
+static UX500_PINS(u5500_pins_spi3,
+ GPIO187_SPI3_CS0n | PIN_OUTPUT_HIGH,
+ GPIO188_SPI3_RXD | PIN_INPUT_PULLDOWN,
+ GPIO189_SPI3_TXD | PIN_OUTPUT_LOW,
+ GPIO190_SPI3_CLK | PIN_OUTPUT_LOW,
+);
+
static struct ux500_pin_lookup u5500_pins[] = {
PIN_LOOKUP("nmk-i2c.1", &u5500_pins_i2c1),
PIN_LOOKUP("nmk-i2c.2", &u5500_pins_i2c2),
+ PIN_LOOKUP("spi3", &u5500_pins_spi3),
};
void __init u5500_pins_init(void)
diff --git a/arch/arm/mach-ux500/board-u5500.c b/arch/arm/mach-ux500/board-u5500.c
index 91ef47cc384..89087743569 100644
--- a/arch/arm/mach-ux500/board-u5500.c
+++ b/arch/arm/mach-ux500/board-u5500.c
@@ -260,14 +260,14 @@ static void __init u5500_msp_init(void)
* SPI
*/
-static struct pl022_ssp_controller u5500_spi1_data = {
+static struct pl022_ssp_controller u5500_spi3_data = {
.bus_id = 1,
.num_chipselect = 4, /* 3 possible CS lines + 1 for tests */
};
static void __init u5500_spi_init(void)
{
- db5500_add_spi1(&u5500_spi1_data);
+ db5500_add_spi3(&u5500_spi3_data);
}
static struct resource ab5500_resources[] = {
diff --git a/arch/arm/mach-ux500/devices-db5500.h b/arch/arm/mach-ux500/devices-db5500.h
index e70955502c3..0e44ad3185c 100644
--- a/arch/arm/mach-ux500/devices-db5500.h
+++ b/arch/arm/mach-ux500/devices-db5500.h
@@ -76,11 +76,11 @@
0x10080023)
#define db5500_add_spi2(parent, pdata) \
dbx500_add_spi(parent, "spi2", U5500_SPI2_BASE, \
- IRQ_DB5500_SPI2, pdata \
+ IRQ_DB5500_SPI2, pdata, \
0x10080023)
#define db5500_add_spi3(parent, pdata) \
dbx500_add_spi(parent, "spi3", U5500_SPI3_BASE, \
- IRQ_DB5500_SPI3, pdata \
+ IRQ_DB5500_SPI3, pdata, \
0x10080023)
#define db5500_add_uart0(parent, plat) \