From b7642c0bdf7560c5645eecd59d95760dacd451a4 Mon Sep 17 00:00:00 2001 From: Markus Helgesson Date: Wed, 22 Sep 2010 11:12:24 +0200 Subject: 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 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/7569 Reviewed-by: Michael BRANDT --- board/st/u8500/gpio.c | 12 ++++++++++++ board/st/u8500/gpio.h | 4 ++++ 2 files changed, 16 insertions(+) (limited to 'board') 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; -- cgit v1.2.3