diff options
author | Grzegorz Bernacki <gjb@semihalf.com> | 2009-03-17 10:06:39 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-03-18 20:54:56 +0100 |
commit | 6a397ef0e6c58caab8bf427d447714bc9b3bb9d4 (patch) | |
tree | 76716bdde499c79ad64371697840cfb4c09b5527 /cpu/mpc5xxx | |
parent | 1b6275dfb173bd2edb8f208dd050d6f47ae39654 (diff) | |
download | u-boot-imx-6a397ef0e6c58caab8bf427d447714bc9b3bb9d4.zip u-boot-imx-6a397ef0e6c58caab8bf427d447714bc9b3bb9d4.tar.gz u-boot-imx-6a397ef0e6c58caab8bf427d447714bc9b3bb9d4.tar.bz2 |
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>
Diffstat (limited to 'cpu/mpc5xxx')
-rw-r--r-- | cpu/mpc5xxx/ide.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/mpc5xxx/ide.c b/cpu/mpc5xxx/ide.c index df5b4ac..9e8f29b 100644 --- a/cpu/mpc5xxx/ide.c +++ b/cpu/mpc5xxx/ide.c @@ -42,7 +42,7 @@ int ide_preinit (void) struct mpc5xxx_sdma *psdma = (struct mpc5xxx_sdma *) MPC5XXX_SDMA; 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 */ reg = (reg & ~0x03000000ul) | 0x02000000ul; #else |