diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-01-11 16:30:56 -0800 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-01-11 16:30:56 -0800 |
commit | c9352ce6ca86fb2e5e717610ed08d5483c5bed3b (patch) | |
tree | 94e2e63b73691c4c1f9b7499ef37b3261c582916 /board/bds/board.c | |
parent | 1f2f8627c3ad74beb4be6ab8709aa7c260692be1 (diff) | |
download | chrome-ec-c9352ce6ca86fb2e5e717610ed08d5483c5bed3b.tar.gz |
Add constants for all GPIOs.
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=chrome-os-partner:7528
TEST=none
Change-Id: I3b77cbbb7f0cc12a4daae7ababd603b5d7af32d1
Diffstat (limited to 'board/bds/board.c')
-rw-r--r-- | board/bds/board.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/board/bds/board.c b/board/bds/board.c index 1d544e1fbe..82c599f834 100644 --- a/board/bds/board.c +++ b/board/bds/board.c @@ -10,24 +10,4 @@ void configure_board(void) { - /* Enable all of the GPIO modules : GPIOA to GPIOQ */ - LM4_SYSTEM_RCGCGPIO = 0x7fff; - - /* GPIOA muxing : - * pins 0/1 : UART0 = function 1 - * pins 2/3/4/5 : SSI0 = function 2 - * pin 6 : GPIO = function 0 (SD card CS -- open drain) - * pin 7 : GPIO = function 0 (user LED) - */ - LM4_GPIO_PCTL(LM4_GPIO_A) = 0x00222211; - LM4_GPIO_AFSEL(LM4_GPIO_A) = 0x3f; - LM4_GPIO_DEN(LM4_GPIO_A) = 0xff; - LM4_GPIO_PDR(LM4_GPIO_A) = 0x00; - LM4_GPIO_PUR(LM4_GPIO_A) = 0x3c; - LM4_GPIO_DIR(LM4_GPIO_A) = 0xc0; - LM4_GPIO_ODR(LM4_GPIO_A) = 0x40; - LM4_GPIO_DR2R(LM4_GPIO_A) = 0xc3; - LM4_GPIO_DR8R(LM4_GPIO_A) = 0x3c; - LM4_GPIO_DATA(LM4_GPIO_A, 0x40) = 0x40; - LM4_GPIO_DATA(LM4_GPIO_A, 0x80) = 0; } |