summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
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;