|
@@ -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;
|
|
|
}
|
|
|
|