diff options
author | wdenk <wdenk> | 2004-07-11 19:17:20 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-07-11 19:17:20 +0000 |
commit | 6c7a14084ae5f7dde3819e4ab43fd78ea82805fe (patch) | |
tree | 74714dc85f5b74ed34b2f742fa3de6d52e5446b4 /cpu/mpc5xxx/ide.c | |
parent | bc54f309a1f274226ed0f938e2a09fc2fd9f9701 (diff) | |
download | u-boot-imx-6c7a14084ae5f7dde3819e4ab43fd78ea82805fe.zip u-boot-imx-6c7a14084ae5f7dde3819e4ab43fd78ea82805fe.tar.gz u-boot-imx-6c7a14084ae5f7dde3819e4ab43fd78ea82805fe.tar.bz2 |
Patch by Mark Jonas, 01 Jul 2004:
Added support for Total5100 and Total5200 (Rev.1 and Rev.2)
MGT5100 and MPC5200 based Freescale platforms.
Diffstat (limited to 'cpu/mpc5xxx/ide.c')
-rw-r--r-- | cpu/mpc5xxx/ide.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpu/mpc5xxx/ide.c b/cpu/mpc5xxx/ide.c index 1969172..1af794c 100644 --- a/cpu/mpc5xxx/ide.c +++ b/cpu/mpc5xxx/ide.c @@ -41,7 +41,13 @@ int ide_preinit (void) struct mpc5xxx_sdma *psdma = (struct mpc5xxx_sdma *) MPC5XXX_SDMA; reg = *(vu_long *) MPC5XXX_GPS_PORT_CONFIG; +#if defined(CONFIG_TOTAL5200) + /* ATA cs0/1 on i2c2 clk/io */ + reg = (reg & ~0x03000000ul) | 0x02000000ul; +#else + /* ATA cs0/1 on Local Plus cs4/5 */ reg = (reg & ~0x03000000ul) | 0x01000000ul; +#endif /* CONFIG_TOTAL5200 */ *(vu_long *) MPC5XXX_GPS_PORT_CONFIG = reg; /* All sample codes do that... */ |