mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 22:51:37 +00:00
mpc52xx: Get rid of board-specific #ifdef's in cpu/mpc5xxx/ide.c
Total5200 and digsy MTC use I2C port 2 pins as a ATA chip select. To avoid adding board-specific ifdefs to cpu/mpc5xxx/ide.c new define CONFIG_SYS_ATA_CS_ON_I2C2 was introduced. It is used by Total5200 and will be used by digsy MTC and other boards with ATA CS on I2C pins. Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com>
This commit is contained in:
parent
1b6275dfb1
commit
6a397ef0e6
2 changed files with 2 additions and 1 deletions
|
@ -42,7 +42,7 @@ int ide_preinit (void)
|
||||||
struct mpc5xxx_sdma *psdma = (struct mpc5xxx_sdma *) MPC5XXX_SDMA;
|
struct mpc5xxx_sdma *psdma = (struct mpc5xxx_sdma *) MPC5XXX_SDMA;
|
||||||
|
|
||||||
reg = *(vu_long *) MPC5XXX_GPS_PORT_CONFIG;
|
reg = *(vu_long *) MPC5XXX_GPS_PORT_CONFIG;
|
||||||
#if defined(CONFIG_TOTAL5200)
|
#if defined(CONFIG_SYS_ATA_CS_ON_I2C2)
|
||||||
/* ATA cs0/1 on i2c2 clk/io */
|
/* ATA cs0/1 on i2c2 clk/io */
|
||||||
reg = (reg & ~0x03000000ul) | 0x02000000ul;
|
reg = (reg & ~0x03000000ul) | 0x02000000ul;
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -397,6 +397,7 @@
|
||||||
#define CONFIG_IDE_RESET /* reset for ide supported */
|
#define CONFIG_IDE_RESET /* reset for ide supported */
|
||||||
#define CONFIG_IDE_PREINIT
|
#define CONFIG_IDE_PREINIT
|
||||||
|
|
||||||
|
#define CONFIG_SYS_ATA_CS_ON_I2C2
|
||||||
#define CONFIG_SYS_IDE_MAXBUS 1 /* max. 1 IDE bus */
|
#define CONFIG_SYS_IDE_MAXBUS 1 /* max. 1 IDE bus */
|
||||||
#define CONFIG_SYS_IDE_MAXDEVICE 1 /* max. 1 drive per IDE bus */
|
#define CONFIG_SYS_IDE_MAXDEVICE 1 /* max. 1 drive per IDE bus */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue