diff mbox

[v3,12/16] Davinci: tnetv107x soc specific header

Message ID 1271270702-28307-13-git-send-email-cyril@ti.com (mailing list archive)
State Changes Requested
Headers show

Commit Message

Cyril Chemparathy April 14, 2010, 6:44 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-davinci/include/mach/tnetv107x.h b/arch/arm/mach-davinci/include/mach/tnetv107x.h
new file mode 100644
index 0000000..5eafdb8
--- /dev/null
+++ b/arch/arm/mach-davinci/include/mach/tnetv107x.h
@@ -0,0 +1,66 @@ 
+/*
+ * Chip specific defines for TNETV107X SoC
+ *
+ * Author: Cyril Chemparathy <cyril@ti.com>
+ *
+ * 2009 (c) Texas Instruments, Inc. This file is licensed under
+ * the terms of the GNU General Public License version 2. This program
+ * is licensed "as is" without any warranty of any kind, whether express
+ * or implied.
+ */
+#ifndef __ASM_ARCH_DAVINCI_TNETV107X_H
+#define __ASM_ARCH_DAVINCI_TNETV107X_H
+
+#include <asm/sizes.h>
+
+/*
+ * Fixed mapping for early init starts here. If low-level debug is enabled,
+ * this area also gets mapped via io_pg_offset and io_phys by the boot code.
+ * To fit in with the io_pg_offset calculation, the io base address selected
+ * here _must_ be a multiple of 2^20.
+ */
+#define TNETV107X_IO_BASE	0x08000000
+#define TNETV107X_IO_VIRT	(IO_VIRT + SZ_1M)
+
+#define PINMUX0		(0 << 2)
+#define PINMUX1		(1 << 2)
+#define PINMUX2		(2 << 2)
+#define PINMUX3		(3 << 2)
+#define PINMUX4		(4 << 2)
+#define PINMUX5		(5 << 2)
+#define PINMUX6		(6 << 2)
+#define PINMUX7		(7 << 2)
+#define PINMUX8		(8 << 2)
+#define PINMUX9		(9 << 2)
+#define PINMUX10	(10 << 2)
+#define PINMUX11	(11 << 2)
+#define PINMUX12	(12 << 2)
+#define PINMUX13	(13 << 2)
+#define PINMUX14	(14 << 2)
+#define PINMUX15	(15 << 2)
+#define PINMUX16	(16 << 2)
+#define PINMUX17	(17 << 2)
+#define PINMUX18	(18 << 2)
+#define PINMUX19	(19 << 2)
+#define PINMUX20	(20 << 2)
+#define PINMUX21	(21 << 2)
+#define PINMUX22	(22 << 2)
+#define PINMUX23	(23 << 2)
+#define PINMUX24	(24 << 2)
+#define PINMUX25	(25 << 2)
+#define PINMUX26	(26 << 2)
+
+#define TNETV107X_N_GPIOS	65
+
+#ifndef __ASSEMBLY__
+
+#include <linux/serial_8250.h>
+
+extern void __init tnetv107x_init(void);
+extern void __init tnetv107x_gpio_init(void);
+extern void __init tnetv107x_edma_init(void);
+extern void __init tnetv107x_irq_init(void);
+extern void __init tnetv107x_serial_init(struct plat_serial8250_port* ports);
+#endif
+
+#endif /* __ASM_ARCH_DAVINCI_TNETV107X_H */