summaryrefslogtreecommitdiff
path: root/board/lubbock
diff options
context:
space:
mode:
Diffstat (limited to 'board/lubbock')
-rw-r--r--board/lubbock/lubbock.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/lubbock/lubbock.c b/board/lubbock/lubbock.c
index 437f944715..3527b381df 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;
}