[U-Boot-Users] [PATCH 08/10] [ARM] TQMA31: adjust pad property of IPU pin FPSHIFT for the display
Jens Gehrlein
sew_s at tqs.de
Fri Jul 4 16:50:12 CEST 2008
Signed-off-by: Jens Gehrlein <sew_s at tqs.de>
---
board/tqc/tqma31/tqma31.c | 7 +++++++
include/asm-arm/arch-mx31/mx31-regs.h | 1 +
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/board/tqc/tqma31/tqma31.c b/board/tqc/tqma31/tqma31.c
index abb8db0..dd2bb0a 100644
--- a/board/tqc/tqma31/tqma31.c
+++ b/board/tqc/tqma31/tqma31.c
@@ -69,6 +69,13 @@ static void setup_iomux (void)
mx31_pad_ctl (PAD_CTL_CSPI2_SPI_RDY, 0);
mx31_pad_ctl (PAD_CTL_CSPI2_MISO, 0);
mx31_pad_ctl (PAD_CTL_CSPI2_MOSI, 0);
+
+ /* Pins for IPU */
+ mx31_pad_ctl (PAD_CTL_FPSHIFT, PAD_CTL_IPP_PUE_PULL \
+ | PAD_CTL_IPP_PUS_100K_DN \
+ | PAD_CTL_IPP_HYS_STD \
+ | PAD_CTL_IPP_ODE_STD \
+ | PAD_CTL_IPP_SRE_FAST);
}
static int adjust_voltages (void)
diff --git a/include/asm-arm/arch-mx31/mx31-regs.h b/include/asm-arm/arch-mx31/mx31-regs.h
index 4d661e8..407b2c6 100644
--- a/include/asm-arm/arch-mx31/mx31-regs.h
+++ b/include/asm-arm/arch-mx31/mx31-regs.h
@@ -213,6 +213,7 @@
#define PAD_CTL_IO1_SHIFT 0
#define PAD_CTL_IO2_SHIFT 10
#define PAD_CTL_IO3_SHIFT 20
+#define PAD_CTL_FPSHIFT ((0x184 << 8) | PAD_CTL_IO1_SHIFT)
#define PAD_CTL_CSPI2_SS2 ((0x1F4 << 8) | PAD_CTL_IO3_SHIFT)
#define PAD_CTL_CSPI2_SCLK ((0x1F4 << 8) | PAD_CTL_IO2_SHIFT)
#define PAD_CTL_CSPI2_SPI_RDY ((0x1F4 << 8) | PAD_CTL_IO1_SHIFT)
More information about the U-Boot
mailing list