From e570fe8ef2734fddc15e086b7bc344e64c907e81 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Mon, 12 Dec 2011 05:34:03 +0000 Subject: PXA: Kill last remnants of set_GPIO_mode function GPIO configuration shall never be done inside a driver, never. Signed-off-by: Marek Vasut Cc: Anatolij Gustschin Cc: Albert ARIBAUD --- board/lubbock/lubbock.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'board') diff --git a/board/lubbock/lubbock.c b/board/lubbock/lubbock.c index 437f944..3527b38 100644 --- a/board/lubbock/lubbock.c +++ b/board/lubbock/lubbock.c @@ -28,6 +28,8 @@ #include #include #include +#include +#include DECLARE_GLOBAL_DATA_PTR; @@ -47,6 +49,10 @@ int board_init (void) /* adress of boot parameters */ gd->bd->bi_boot_params = 0xa0000100; + /* Configure GPIO6 and GPIO8 as OUT, AF1. */ + setbits_le32(GPDR0, (1 << 6) | (1 << 8)); + clrsetbits_le32(GAFR0_L, (3 << 12) | (3 << 16), (1 << 12) | (1 << 16)); + return 0; } -- cgit v1.1