diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-arm/arch-omap24xx/i2c.h | 53 | ||||
| -rw-r--r-- | include/asm-arm/arch-omap3/i2c.h | 49 | ||||
| -rw-r--r-- | include/asm-ppc/4xx_pci.h | 8 | ||||
| -rw-r--r-- | include/configs/DU440.h | 5 | ||||
| -rw-r--r-- | include/configs/PMC440.h | 5 | ||||
| -rw-r--r-- | include/configs/alpr.h | 2 | ||||
| -rw-r--r-- | include/configs/korat.h | 2 | ||||
| -rw-r--r-- | include/configs/sequoia.h | 1 | ||||
| -rw-r--r-- | include/ppc440.h | 3 | 
9 files changed, 90 insertions, 38 deletions
diff --git a/include/asm-arm/arch-omap24xx/i2c.h b/include/asm-arm/arch-omap24xx/i2c.h index 44db7a2d4..19046aaab 100644 --- a/include/asm-arm/arch-omap24xx/i2c.h +++ b/include/asm-arm/arch-omap24xx/i2c.h @@ -23,24 +23,45 @@  #ifndef _OMAP24XX_I2C_H_  #define _OMAP24XX_I2C_H_ -#define I2C_BASE                0x48070000 +#define I2C_BASE1		0x48070000  #define I2C_BASE2               0x48072000 /* nothing hooked up on h4 */ -#define I2C_REV                 (I2C_BASE + 0x00) -#define I2C_IE                  (I2C_BASE + 0x04) -#define I2C_STAT                (I2C_BASE + 0x08) -#define I2C_IV                  (I2C_BASE + 0x0c) -#define I2C_BUF                 (I2C_BASE + 0x14) -#define I2C_CNT                 (I2C_BASE + 0x18) -#define I2C_DATA                (I2C_BASE + 0x1c) -#define I2C_SYSC                (I2C_BASE + 0x20) -#define I2C_CON                 (I2C_BASE + 0x24) -#define I2C_OA                  (I2C_BASE + 0x28) -#define I2C_SA                  (I2C_BASE + 0x2c) -#define I2C_PSC                 (I2C_BASE + 0x30) -#define I2C_SCLL                (I2C_BASE + 0x34) -#define I2C_SCLH                (I2C_BASE + 0x38) -#define I2C_SYSTEST             (I2C_BASE + 0x3c) +#define I2C_DEFAULT_BASE	I2C_BASE1 + +struct i2c { +	unsigned short rev;	/* 0x00 */ +	unsigned short res1; +	unsigned short ie;	/* 0x04 */ +	unsigned short res2; +	unsigned short stat;	/* 0x08 */ +	unsigned short res3; +	unsigned short iv;	/* 0x0C */ +	unsigned short res4[3]; +	unsigned short buf;	/* 0x14 */ +	unsigned short res5; +	unsigned short cnt;	/* 0x18 */ +	unsigned short res6; +	unsigned short data;	/* 0x1C */ +	unsigned short res7; +	unsigned short sysc;	/* 0x20 */ +	unsigned short res8; +	unsigned short con;	/* 0x24 */ +	unsigned short res9; +	unsigned short oa;	/* 0x28 */ +	unsigned short res10; +	unsigned short sa;	/* 0x2C */ +	unsigned short res11; +	unsigned short psc;	/* 0x30 */ +	unsigned short res12; +	unsigned short scll;	/* 0x34 */ +	unsigned short res13; +	unsigned short sclh;	/* 0x38 */ +	unsigned short res14; +	unsigned short systest;	/* 0x3c */ +	unsigned short res15; +}; + +#define I2C_BUS_MAX	2  /* I2C masks */ diff --git a/include/asm-arm/arch-omap3/i2c.h b/include/asm-arm/arch-omap3/i2c.h index 8b339cce9..490e03bb6 100644 --- a/include/asm-arm/arch-omap3/i2c.h +++ b/include/asm-arm/arch-omap3/i2c.h @@ -25,21 +25,40 @@  #define I2C_DEFAULT_BASE	I2C_BASE1 -#define I2C_REV		(I2C_DEFAULT_BASE + 0x00) -#define I2C_IE 		(I2C_DEFAULT_BASE + 0x04) -#define I2C_STAT	(I2C_DEFAULT_BASE + 0x08) -#define I2C_IV 		(I2C_DEFAULT_BASE + 0x0c) -#define I2C_BUF		(I2C_DEFAULT_BASE + 0x14) -#define I2C_CNT		(I2C_DEFAULT_BASE + 0x18) -#define I2C_DATA	(I2C_DEFAULT_BASE + 0x1c) -#define I2C_SYSC	(I2C_DEFAULT_BASE + 0x20) -#define I2C_CON		(I2C_DEFAULT_BASE + 0x24) -#define I2C_OA 		(I2C_DEFAULT_BASE + 0x28) -#define I2C_SA 		(I2C_DEFAULT_BASE + 0x2c) -#define I2C_PSC		(I2C_DEFAULT_BASE + 0x30) -#define I2C_SCLL	(I2C_DEFAULT_BASE + 0x34) -#define I2C_SCLH	(I2C_DEFAULT_BASE + 0x38) -#define I2C_SYSTEST	(I2C_DEFAULT_BASE + 0x3c) +struct i2c { +	unsigned short rev;	/* 0x00 */ +	unsigned short res1; +	unsigned short ie;	/* 0x04 */ +	unsigned short res2; +	unsigned short stat;	/* 0x08 */ +	unsigned short res3; +	unsigned short iv;	/* 0x0C */ +	unsigned short res4[3]; +	unsigned short buf;	/* 0x14 */ +	unsigned short res5; +	unsigned short cnt;	/* 0x18 */ +	unsigned short res6; +	unsigned short data;	/* 0x1C */ +	unsigned short res7; +	unsigned short sysc;	/* 0x20 */ +	unsigned short res8; +	unsigned short con;	/* 0x24 */ +	unsigned short res9; +	unsigned short oa;	/* 0x28 */ +	unsigned short res10; +	unsigned short sa;	/* 0x2C */ +	unsigned short res11; +	unsigned short psc;	/* 0x30 */ +	unsigned short res12; +	unsigned short scll;	/* 0x34 */ +	unsigned short res13; +	unsigned short sclh;	/* 0x38 */ +	unsigned short res14; +	unsigned short systest;	/* 0x3c */ +	unsigned short res15; +}; + +#define I2C_BUS_MAX	3  /* I2C masks */ diff --git a/include/asm-ppc/4xx_pci.h b/include/asm-ppc/4xx_pci.h index 30125a19e..f686e7cb0 100644 --- a/include/asm-ppc/4xx_pci.h +++ b/include/asm-ppc/4xx_pci.h @@ -1,6 +1,8 @@  #ifndef _405GP_PCI_H  #define _405GP_PCI_H +#include <pci.h> +  /*----------------------------------------------------------------------------+  | 405GP PCI core memory map defines.  +----------------------------------------------------------------------------*/ @@ -49,4 +51,10 @@  #define PCIDEVID_405GP	0x0 +void board_pci_fixup_irq(struct pci_controller *hose, pci_dev_t dev); +int pci_arbiter_enabled(void); +int __pci_pre_init(struct pci_controller *hose); +void __pci_target_init(struct pci_controller *hose); +void __pci_master_init(struct pci_controller *hose); +  #endif diff --git a/include/configs/DU440.h b/include/configs/DU440.h index e9ea1bf7d..65dc2359d 100644 --- a/include/configs/DU440.h +++ b/include/configs/DU440.h @@ -60,8 +60,9 @@  #define CONFIG_SYS_PCI_MEMBASE1	CONFIG_SYS_PCI_MEMBASE  + 0x10000000  #define CONFIG_SYS_PCI_MEMBASE2	CONFIG_SYS_PCI_MEMBASE1 + 0x10000000  #define CONFIG_SYS_PCI_MEMBASE3	CONFIG_SYS_PCI_MEMBASE2 + 0x10000000 -#define CONFIG_SYS_PCI_IOBASE          0xe8000000 - +#define CONFIG_SYS_PCI_IOBASE		0xe8000000 +#define CONFIG_SYS_PCI_SUBSYS_VENDORID	PCI_VENDOR_ID_ESDGMBH +#define CONFIG_SYS_PCI_SUBSYS_ID	0x0444		/* device ID for DU440 */  /* Don't change either of these */  #define CONFIG_SYS_PERIPHERAL_BASE	0xef600000	/* internal peripherals	*/ diff --git a/include/configs/PMC440.h b/include/configs/PMC440.h index d6e2f6bc5..6310cfc33 100644 --- a/include/configs/PMC440.h +++ b/include/configs/PMC440.h @@ -351,7 +351,6 @@  #define CONFIG_CMD_BSP  #define CONFIG_CMD_DATE -#define CONFIG_CMD_ASKENV  #define CONFIG_CMD_DHCP  #define CONFIG_CMD_DTT  #define CONFIG_CMD_DIAG @@ -359,7 +358,6 @@  #define CONFIG_CMD_ELF  #define CONFIG_CMD_FAT  #define CONFIG_CMD_I2C -#define CONFIG_CMD_IRQ  #define CONFIG_CMD_MII  #define CONFIG_CMD_NAND  #define CONFIG_CMD_NET @@ -435,11 +433,14 @@  /* Board-specific PCI */  #define CONFIG_SYS_PCI_TARGET_INIT  #define CONFIG_SYS_PCI_MASTER_INIT +#define CONFIG_SYS_PCI_BOARD_FIXUP_IRQ  /* PCI identification */  #define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE	/* PCI Vendor ID: esd gmbh      */  #define CONFIG_SYS_PCI_SUBSYS_ID_NONMONARCH 0x0441	/* PCI Device ID: Non-Monarch */  #define CONFIG_SYS_PCI_SUBSYS_ID_MONARCH 0x0440	/* PCI Device ID: Monarch */ +/* for weak __pci_target_init() */ +#define CONFIG_SYS_PCI_SUBSYS_ID	CONFIG_SYS_PCI_SUBSYS_ID_MONARCH  #define CONFIG_SYS_PCI_CLASSCODE_NONMONARCH	PCI_CLASS_PROCESSOR_POWERPC  #define CONFIG_SYS_PCI_CLASSCODE_MONARCH	PCI_CLASS_BRIDGE_HOST diff --git a/include/configs/alpr.h b/include/configs/alpr.h index e6248e9df..964630fa5 100644 --- a/include/configs/alpr.h +++ b/include/configs/alpr.h @@ -231,13 +231,11 @@   */  #include <config_cmd_default.h> -#define CONFIG_CMD_ASKENV  #define CONFIG_CMD_DHCP  #define CONFIG_CMD_DIAG  #define CONFIG_CMD_EEPROM  #define CONFIG_CMD_FPGA  #define CONFIG_CMD_I2C -#define CONFIG_CMD_IRQ  #define CONFIG_CMD_MII  #define CONFIG_CMD_NAND  #define CONFIG_CMD_NET diff --git a/include/configs/korat.h b/include/configs/korat.h index ea6ba8938..026dd0854 100644 --- a/include/configs/korat.h +++ b/include/configs/korat.h @@ -69,6 +69,7 @@  #define CONFIG_SYS_OCM_DATA_ADDR	CONFIG_SYS_OCM_BASE  #define CONFIG_SYS_PCI_BASE		0xe0000000	/* Internal PCI regs	*/  #define CONFIG_SYS_PCI_MEMBASE		0x80000000	/* mapped pci memory	*/ +#define CONFIG_SYS_PCI_MEMBASE2		(CONFIG_SYS_PCI_MEMBASE + 0x20000000)  /* Don't change either of these */  #define CONFIG_SYS_PERIPHERAL_BASE	0xef600000	/* internal peripherals	*/ @@ -359,6 +360,7 @@  /* Board-specific PCI */  #define CONFIG_SYS_PCI_TARGET_INIT  #define CONFIG_SYS_PCI_MASTER_INIT +#define CONFIG_SYS_PCI_BOARD_FIXUP_IRQ  #define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8	/* AMCC				*/  #define CONFIG_SYS_PCI_SUBSYS_ID       0xcafe	/* Whatever			*/ diff --git a/include/configs/sequoia.h b/include/configs/sequoia.h index 9605ce25b..5788d581a 100644 --- a/include/configs/sequoia.h +++ b/include/configs/sequoia.h @@ -364,6 +364,7 @@  /* Board-specific PCI */  #define CONFIG_SYS_PCI_TARGET_INIT  #define CONFIG_SYS_PCI_MASTER_INIT +#define CONFIG_SYS_PCI_BOARD_FIXUP_IRQ  #define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x10e8	/* AMCC				*/  #define CONFIG_SYS_PCI_SUBSYS_ID       0xcafe	/* Whatever			*/ diff --git a/include/ppc440.h b/include/ppc440.h index e54a977dc..a050ffd1c 100644 --- a/include/ppc440.h +++ b/include/ppc440.h @@ -1276,7 +1276,8 @@  #define CPC0_STRP1_PAE_MASK		(0x80000000 >> 11)  #define CPC0_STRP1_PISE_MASK		(0x80000000 >> 13)  #endif /* defined(CONFIG_440GP) */ -#if defined(CONFIG_440GX) || defined(CONFIG_440SP) +#if defined(CONFIG_440GX) || defined(CONFIG_440SP) || \ +    defined(CONFIG_460EX) || defined(CONFIG_460GT)  #define SDR0_SDSTP1_PAE_MASK		(0x80000000 >> 13)  #define SDR0_SDSTP1_PISE_MASK		(0x80000000 >> 15)  #endif /* defined(CONFIG_440GX) || defined(CONFIG_440SP) */  |