diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/ahci.h | 28 | ||||
| -rw-r--r-- | include/configs/MPC8544DS.h | 1 | ||||
| -rw-r--r-- | include/configs/MPC8572DS.h | 1 | ||||
| -rw-r--r-- | include/configs/MPC8610HPCD.h | 1 | ||||
| -rw-r--r-- | include/configs/MPC8641HPCN.h | 1 | ||||
| -rw-r--r-- | include/configs/P2020DS.h | 1 | ||||
| -rw-r--r-- | include/configs/am335x_evm.h | 4 | ||||
| -rw-r--r-- | include/configs/cam_enc_4xx.h | 2 | ||||
| -rw-r--r-- | include/configs/coreboot.h | 1 | ||||
| -rw-r--r-- | include/configs/highbank.h | 1 | ||||
| -rw-r--r-- | include/configs/lwmon5.h | 10 | ||||
| -rw-r--r-- | include/configs/sandbox.h | 5 | ||||
| -rw-r--r-- | include/linux/compiler-gcc.h | 12 | ||||
| -rw-r--r-- | include/linux/compiler-gcc4.h | 4 | 
14 files changed, 43 insertions, 29 deletions
| diff --git a/include/ahci.h b/include/ahci.h index 78a8c55f7..90e850929 100644 --- a/include/ahci.h +++ b/include/ahci.h @@ -87,6 +87,11 @@  				| PORT_IRQ_DMAS_FIS | PORT_IRQ_PIOS_FIS	\  				| PORT_IRQ_D2H_REG_FIS +/* PORT_SCR_STAT bits */ +#define PORT_SCR_STAT_DET_MASK	0x3 +#define PORT_SCR_STAT_DET_COMINIT 0x1 +#define PORT_SCR_STAT_DET_PHYRDY 0x3 +  /* PORT_CMD bits */  #define PORT_CMD_ATAPI		(1 << 24) /* Device is ATAPI */  #define PORT_CMD_LIST_ON	(1 << 15) /* cmd list DMA engine running */ @@ -103,29 +108,6 @@  #define AHCI_MAX_PORTS		32 -/* SETFEATURES stuff */ -#define SETFEATURES_XFER	0x03 -#define XFER_UDMA_7		0x47 -#define XFER_UDMA_6		0x46 -#define XFER_UDMA_5		0x45 -#define XFER_UDMA_4		0x44 -#define XFER_UDMA_3		0x43 -#define XFER_UDMA_2		0x42 -#define XFER_UDMA_1		0x41 -#define XFER_UDMA_0		0x40 -#define XFER_MW_DMA_2		0x22 -#define XFER_MW_DMA_1		0x21 -#define XFER_MW_DMA_0		0x20 -#define XFER_SW_DMA_2		0x12 -#define XFER_SW_DMA_1		0x11 -#define XFER_SW_DMA_0		0x10 -#define XFER_PIO_4		0x0C -#define XFER_PIO_3		0x0B -#define XFER_PIO_2		0x0A -#define XFER_PIO_1		0x09 -#define XFER_PIO_0		0x08 -#define XFER_PIO_SLOW		0x00 -  #define ATA_FLAG_SATA		(1 << 3)  #define ATA_FLAG_NO_LEGACY	(1 << 4) /* no legacy mode check */  #define ATA_FLAG_MMIO		(1 << 6) /* use MMIO, not PIO */ diff --git a/include/configs/MPC8544DS.h b/include/configs/MPC8544DS.h index 2a5e5d4ed..7f1628592 100644 --- a/include/configs/MPC8544DS.h +++ b/include/configs/MPC8544DS.h @@ -318,6 +318,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);  #define CONFIG_SCSI_AHCI  #ifdef CONFIG_SCSI_AHCI +#define CONFIG_LIBATA  #define CONFIG_SATA_ULI5288  #define CONFIG_SYS_SCSI_MAX_SCSI_ID	4  #define CONFIG_SYS_SCSI_MAX_LUN	1 diff --git a/include/configs/MPC8572DS.h b/include/configs/MPC8572DS.h index 05d887050..acd39816b 100644 --- a/include/configs/MPC8572DS.h +++ b/include/configs/MPC8572DS.h @@ -539,6 +539,7 @@  #define CONFIG_SCSI_AHCI  #ifdef CONFIG_SCSI_AHCI +#define CONFIG_LIBATA  #define CONFIG_SATA_ULI5288  #define CONFIG_SYS_SCSI_MAX_SCSI_ID	4  #define CONFIG_SYS_SCSI_MAX_LUN	1 diff --git a/include/configs/MPC8610HPCD.h b/include/configs/MPC8610HPCD.h index 1553a746c..0b2cf8701 100644 --- a/include/configs/MPC8610HPCD.h +++ b/include/configs/MPC8610HPCD.h @@ -326,6 +326,7 @@  #define CONFIG_SCSI_AHCI  #ifdef CONFIG_SCSI_AHCI +#define CONFIG_LIBATA  #define CONFIG_SATA_ULI5288  #define CONFIG_SYS_SCSI_MAX_SCSI_ID	4  #define CONFIG_SYS_SCSI_MAX_LUN	1 diff --git a/include/configs/MPC8641HPCN.h b/include/configs/MPC8641HPCN.h index 6ca6f6b80..0945ae155 100644 --- a/include/configs/MPC8641HPCN.h +++ b/include/configs/MPC8641HPCN.h @@ -412,6 +412,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);  #define CONFIG_SCSI_AHCI  #ifdef CONFIG_SCSI_AHCI +#define CONFIG_LIBATA  #define CONFIG_SATA_ULI5288  #define CONFIG_SYS_SCSI_MAX_SCSI_ID	4  #define CONFIG_SYS_SCSI_MAX_LUN	1 diff --git a/include/configs/P2020DS.h b/include/configs/P2020DS.h index b5078cdb5..785e497f2 100644 --- a/include/configs/P2020DS.h +++ b/include/configs/P2020DS.h @@ -513,6 +513,7 @@  #define CONFIG_SCSI_AHCI  #ifdef CONFIG_SCSI_AHCI +#define CONFIG_LIBATA  #define CONFIG_SATA_ULI5288  #define CONFIG_SYS_SCSI_MAX_SCSI_ID	4  #define CONFIG_SYS_SCSI_MAX_LUN	1 diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index eae5a19f2..3de30fc28 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -132,7 +132,9 @@  				"echo Running uenvcmd ...;" \  				"run uenvcmd;" \  			"fi;" \ -			"run mmcloados;" \ +			"if run loaduimage; then " \ +				"run mmcloados;" \ +			"fi;" \  		"fi;\0" \  	"spiboot=echo Booting from spi ...; " \  		"run spiargs; " \ diff --git a/include/configs/cam_enc_4xx.h b/include/configs/cam_enc_4xx.h index ac7ed812d..db9eb0f15 100644 --- a/include/configs/cam_enc_4xx.h +++ b/include/configs/cam_enc_4xx.h @@ -216,6 +216,8 @@  #define CONFIG_SPL_STACK		(0x00010000 + 0x7f00)  #define CONFIG_SPL_TEXT_BASE		0x00000020 /*CONFIG_SYS_SRAM_START*/ +/* Provide at least 16MB spacing between us and the Linux Kernel image */ +#define CONFIG_SPL_PAD_TO		12320  #define CONFIG_SPL_MAX_FOOTPRINT	12288  #ifndef CONFIG_SPL_BUILD diff --git a/include/configs/coreboot.h b/include/configs/coreboot.h index c2dcef89c..47215e59a 100644 --- a/include/configs/coreboot.h +++ b/include/configs/coreboot.h @@ -56,6 +56,7 @@  #define CONFIG_SCSI_AHCI  #ifdef CONFIG_SCSI_AHCI +#define CONFIG_LIBATA  #define CONFIG_SYS_64BIT_LBA  #define CONFIG_SATA_INTEL		1  #define CONFIG_SCSI_DEV_LIST		{PCI_VENDOR_ID_INTEL, \ diff --git a/include/configs/highbank.h b/include/configs/highbank.h index a5743d63d..afb6e64e1 100644 --- a/include/configs/highbank.h +++ b/include/configs/highbank.h @@ -39,6 +39,7 @@  #define CONFIG_SYS_BOOTCOUNT_ADDR	0xfff3cf0c  #define CONFIG_MISC_INIT_R +#define CONFIG_LIBATA  #define CONFIG_SCSI_AHCI  #define CONFIG_SCSI_AHCI_PLAT  #define CONFIG_SYS_SCSI_MAX_SCSI_ID	5 diff --git a/include/configs/lwmon5.h b/include/configs/lwmon5.h index 8f5eb956a..96f3ba5a1 100644 --- a/include/configs/lwmon5.h +++ b/include/configs/lwmon5.h @@ -565,6 +565,7 @@  #define CONFIG_SYS_GPIO_PHY1_RST	12  #define CONFIG_SYS_GPIO_FLASH_WP	14  #define CONFIG_SYS_GPIO_PHY0_RST	22 +#define CONFIG_SYS_GPIO_PERM_VOLT_FEED	49  #define CONFIG_SYS_GPIO_DSPIC_READY	51  #define CONFIG_SYS_GPIO_CAN_ENABLE	53  #define CONFIG_SYS_GPIO_LSB_ENABLE	54 @@ -577,6 +578,13 @@  #define CONFIG_SYS_GPIO_SYSMON_STATUS	62  #define CONFIG_SYS_GPIO_WATCHDOG	63 +/* On LCD4, GPIO49 has to be configured to 0 instead of 1 */ +#ifdef CONFIG_LCD4_LWMON5 +#define GPIO49_VAL	0 +#else +#define GPIO49_VAL	1 +#endif +  /*   * PPC440 GPIO Configuration   */ @@ -635,7 +643,7 @@  {GPIO1_BASE, GPIO_IN , GPIO_ALT1, GPIO_OUT_0}, /* GPIO46 UIC_IRQ(7)	DMA_REQ(0)	*/	\  {GPIO1_BASE, GPIO_IN , GPIO_ALT1, GPIO_OUT_0}, /* GPIO47 UIC_IRQ(8)	DMA_ACK(0)	*/	\  {GPIO1_BASE, GPIO_IN , GPIO_ALT1, GPIO_OUT_0}, /* GPIO48 UIC_IRQ(9)	DMA_EOT/TC(0)	*/	\ -{GPIO1_BASE, GPIO_OUT, GPIO_SEL , GPIO_OUT_1}, /* GPIO49  Unselect via TraceSelect Bit	*/	\ +{GPIO1_BASE, GPIO_OUT, GPIO_SEL , GPIO49_VAL}, /* GPIO49  Unselect via TraceSelect Bit	*/	\  {GPIO1_BASE, GPIO_IN,  GPIO_SEL , GPIO_OUT_0}, /* GPIO50  Unselect via TraceSelect Bit	*/	\  {GPIO1_BASE, GPIO_IN , GPIO_SEL , GPIO_OUT_0}, /* GPIO51  Unselect via TraceSelect Bit	*/	\  {GPIO1_BASE, GPIO_IN , GPIO_SEL , GPIO_OUT_0}, /* GPIO52  Unselect via TraceSelect Bit	*/	\ diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index af3d6ad4e..402703038 100644 --- a/include/configs/sandbox.h +++ b/include/configs/sandbox.h @@ -109,4 +109,9 @@  					"stdout=serial\0" \  					"stderr=serial\0" +#define CONFIG_GZIP_COMPRESSED +#define CONFIG_BZIP2 +#define CONFIG_LZO +#define CONFIG_LZMA +  #endif diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index 73dcf804b..9896e547b 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -50,7 +50,9 @@  #endif  #define __deprecated			__attribute__((deprecated)) -#define __packed			__attribute__((packed)) +#ifndef __packed +# define __packed			__attribute__((packed)) +#endif  #define __weak				__attribute__((weak))  /* @@ -73,8 +75,12 @@   * would be.   * [...]   */ -#define __pure				__attribute__((pure)) -#define __aligned(x)			__attribute__((aligned(x))) +#ifndef __pure +# define __pure				__attribute__((pure)) +#endif +#ifndef __aligned +# define __aligned(x)			__attribute__((aligned(x))) +#endif  #define __printf(a,b)			__attribute__((format(printf,a,b)))  #define  noinline			__attribute__((noinline))  #define __attribute_const__		__attribute__((__const__)) diff --git a/include/linux/compiler-gcc4.h b/include/linux/compiler-gcc4.h index 94dea3ffb..27d11ca7b 100644 --- a/include/linux/compiler-gcc4.h +++ b/include/linux/compiler-gcc4.h @@ -12,7 +12,9 @@  #define __used			__attribute__((__used__))  #define __must_check 		__attribute__((warn_unused_result))  #define __compiler_offsetof(a,b) __builtin_offsetof(a,b) -#define __always_inline		inline __attribute__((always_inline)) +#ifndef __always_inline +# define __always_inline		inline __attribute__((always_inline)) +#endif  /*   * A trick to suppress uninitialized variable warning without generating any |