[U-Boot] [PATCH 3/7] nhk8815.h: define we need stmpe
Alessandro Rubini
rubini-list at gnudd.com
Thu Apr 15 13:12:17 CEST 2010
From: Alessandro Rubini <rubini at unipv.it>
Signed-off-by: Alessandro Rubini <rubini at unipv.it>
Acked-by: Andrea Gallo <andrea.gallo at stericsson.com>
---
include/configs/nhk8815.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/include/configs/nhk8815.h b/include/configs/nhk8815.h
index 2b640dc..fcb1b20 100644
--- a/include/configs/nhk8815.h
+++ b/include/configs/nhk8815.h
@@ -109,7 +109,7 @@
#define CONFIG_PL01x_PORTS { (void *)CFG_SERIAL0, (void *)CFG_SERIAL1 }
#define CONFIG_PL011_CLOCK 48000000
-/* i2c, for the port extenders (uses gpio.c in board directory) */
+/* i2c, for the stmpe2401 port extenders (uses gpio.c in board directory) */
#ifndef __ASSEMBLY__
#include <asm/arch/gpio.h>
#define CONFIG_CMD_I2C
@@ -125,6 +125,11 @@
#define I2C_DELAY (udelay(2))
#endif /* __ASSEMBLY__ */
+/* Activate port extenders and define their i2c address */
+#define CONFIG_STMPE2401
+#define STMPE0 0x43
+#define STMPE1 0x44
+
/* Ethernet */
#define PCI_MEMORY_VADDR 0xe8000000
#define PCI_IO_VADDR 0xee000000
--
1.6.0.2
More information about the U-Boot
mailing list