diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2011-12-12 05:34:03 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-12-19 17:52:44 +0100 |
commit | e570fe8ef2734fddc15e086b7bc344e64c907e81 (patch) | |
tree | 7a8ac8c5ac16400606e2c73b21df51d84e259f9b /board/lubbock | |
parent | 159dad650c92f79386444057323af169d07d59c3 (diff) | |
download | u-boot-imx-e570fe8ef2734fddc15e086b7bc344e64c907e81.zip u-boot-imx-e570fe8ef2734fddc15e086b7bc344e64c907e81.tar.gz u-boot-imx-e570fe8ef2734fddc15e086b7bc344e64c907e81.tar.bz2 |
PXA: Kill last remnants of set_GPIO_mode function
GPIO configuration shall never be done inside a driver, never.
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Diffstat (limited to 'board/lubbock')
-rw-r--r-- | board/lubbock/lubbock.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <common.h> #include <netdev.h> #include <asm/arch/pxa.h> +#include <asm/arch/pxa-regs.h> +#include <asm/io.h> 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; } |