From 8a490422bed685c9491274ec997f62061d88620b Mon Sep 17 00:00:00 2001 From: John Rigby Date: Thu, 28 Aug 2008 13:17:07 -0600 Subject: ADS5121: Fix NOR and CPLD ALE timing for rev 2 silicon MPC5121 rev 2 silicon has a new register for controlling how long CS is asserted after deassertion of ALE in multiplexed mode. The default is to assert CS together with ALE. The alternative is to assert CS (ALEN+1)*LPC_CLK clocks after deassertion of ALE. The default is wrong for the NOR flash and CPLD on the ADS5121. This patch turns on the alternative for CS0 (NOR) and CS2 (CPLD) it does so conditionally based on silicon rev 2.0 or greater. Signed-off-by: Martha J Marx Signed-off-by: John Rigby --- include/configs/ads5121.h | 1 + include/mpc512x.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') diff --git a/include/configs/ads5121.h b/include/configs/ads5121.h index 5f74afb0d78..f516c4602c2 100644 --- a/include/configs/ads5121.h +++ b/include/configs/ads5121.h @@ -210,6 +210,7 @@ #define CFG_CS0_CFG 0x05059310 /* ALE active low, data size 4bytes */ #define CFG_CS2_CFG 0x05059010 /* ALE active low, data size 1byte */ +#define CFG_CS_ALETIMING 0x00000005 /* Use alternative CS timing for CS0 and CS2 */ /* Use SRAM for initial stack */ #define CFG_INIT_RAM_ADDR CFG_SRAM_BASE /* Initial RAM address */ diff --git a/include/mpc512x.h b/include/mpc512x.h index a76b1ca2143..cb418d1e91f 100644 --- a/include/mpc512x.h +++ b/include/mpc512x.h @@ -58,6 +58,7 @@ #define CS5_CONFIG 0x00014 #define CS6_CONFIG 0x00018 #define CS7_CONFIG 0x0001C +#define CS_ALE_TIMING_CONFIG 0x00034 #define CS_CTRL 0x00020 #define CS_CTRL_ME 0x01000000 /* CS Master Enable bit */ -- cgit v1.2.3