summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMarkus Helgesson <markus.helgesson@stericsson.com>2010-09-22 11:12:24 +0200
committerMichael BRANDT <michael.brandt@stericsson.com>2010-11-04 09:01:38 +0100
commitb7642c0bdf7560c5645eecd59d95760dacd451a4 (patch)
tree086c74f8a72aa2eff010464db2b8e8ece5d58289 /board
parent4bcf2f4bbd3674edeb63b4cbfff27b34dfad1cda (diff)
U8500: Add support for SPI
Added SPI support for U8500 ST-Ericsson ID: 269867 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10121 Change-Id: Ied17dd39aa1ebc0ee95818c59c7f211ce655b8bf Signed-off-by: Markus Helgesson <markus.helgesson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7569 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com>
Diffstat (limited to 'board')
-rw-r--r--board/st/u8500/gpio.c12
-rw-r--r--board/st/u8500/gpio.h4
2 files changed, 16 insertions, 0 deletions
diff --git a/board/st/u8500/gpio.c b/board/st/u8500/gpio.c
index 625c8ee2b..41c49b6e4 100644
--- a/board/st/u8500/gpio.c
+++ b/board/st/u8500/gpio.c
@@ -68,6 +68,18 @@ struct gpio_altfun_data altfun_table[] = {
GPIO_ALTF_A,},
{.altfun = GPIO_ALT_POP_EMMC,.start = 128,.end = 138,.cont = 0,.type =
GPIO_ALTF_A,},
+ {.altfun = GPIO_ALT_SPI_0,.start = 220,.end = 220,.cont = 1,.type =
+ GPIO_ALTF_C,},
+ {.altfun = GPIO_ALT_SPI_0,.start = 223,.end = 225,.cont = 0,.type =
+ GPIO_ALTF_C,},
+ {.altfun = GPIO_ALT_SPI_1,.start = 209,.end = 209,.cont = 1,.type =
+ GPIO_ALTF_B,},
+ {.altfun = GPIO_ALT_SPI_1,.start = 212,.end = 214,.cont = 0,.type =
+ GPIO_ALTF_B,},
+ {.altfun = GPIO_ALT_SPI_2,.start = 215,.end = 218,.cont = 0,.type =
+ GPIO_ALTF_C,},
+ {.altfun = GPIO_ALT_SPI_3,.start = 29,.end = 32,.cont = 0,.type =
+ GPIO_ALTF_B,},
};
/*
diff --git a/board/st/u8500/gpio.h b/board/st/u8500/gpio.h
index b4e37062b..24f3c6ee6 100644
--- a/board/st/u8500/gpio.h
+++ b/board/st/u8500/gpio.h
@@ -424,6 +424,10 @@ typedef enum {
GPIO_ALT_CCP1,
GPIO_ALT_EMMC,
GPIO_ALT_POP_EMMC,
+ GPIO_ALT_SPI_0,
+ GPIO_ALT_SPI_1,
+ GPIO_ALT_SPI_2,
+ GPIO_ALT_SPI_3,
GPIO_ALT_FUNMAX /* Add new alt func before this */
} gpio_alt_function;