diff options
author | root <root@fedora-arm.domain.avtechpulse.com> | 1999-12-31 19:15:34 -0500 |
---|---|---|
committer | root <root@fedora-arm.domain.avtechpulse.com> | 1999-12-31 19:15:34 -0500 |
commit | db09095fb8348d99917f2a0dcdb08b60f59cd9ae (patch) | |
tree | 853bf8cf7d66dcef48505a20744d4ebff0add78a /bus.c | |
parent | 916ba418f2d6f0e91370250be4369affdf677e2e (diff) |
bus timing fixed with wide CS, 160 ns RD/WR
Diffstat (limited to 'bus.c')
-rw-r--r-- | bus.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -166,12 +166,12 @@ static void gpmc_printinfo() #define MODE_7 0x07 -// multiply by 10 ns -#define TOTAL_IO_CYCLE 25; // 250 ns cycle -#define CS_DELAY 2; // CS low 20ns after address valid -#define DELAY_TO_WR_RD 4; // RD/WR lines low 50ns after address valid -#define WR_RD_WIDTH 20; // stay low for until 200 ns after address valid -#define DATA_READY 15; // data ready 150ns after address valid +// multiply by 20 ns +#define TOTAL_IO_CYCLE 14 // 280 ns cycle +#define CS_DELAY 1 // CS low 20ns after address valid +#define DELAY_TO_WR_RD 2 // RD/WR lines low 40ns after address valid +#define WR_RD_WIDTH 8 // stay low for until 200 ns after address valid +#define DATA_READY 8 // data ready 160ns after address valid static void gpmc_setup(void) @@ -182,8 +182,8 @@ static void gpmc_setup(void) int baseaddress = 1; - int CSWROFFTIME = TOTAL_IO_CYCLE - CS_DELAY; - int CSRDOFFTIME = TOTAL_IO_CYCLE - CS_DELAY; + int CSWROFFTIME = TOTAL_IO_CYCLE; + int CSRDOFFTIME = TOTAL_IO_CYCLE; int CSONTIME = CS_DELAY; int config2 = (CSWROFFTIME << 16) | (CSRDOFFTIME << 8) | CSONTIME; @@ -232,7 +232,7 @@ static void gpmc_setup(void) // disable before playing with the registers.. *(registers + displacement + GPMC_CONFIG7) = 0x0; - *(registers + displacement + GPMC_CONFIG1) = 0x0; + *(registers + displacement + GPMC_CONFIG1) = 0x10; // double all of the timing values *(registers + displacement + GPMC_CONFIG2) = config2; *(registers + displacement + GPMC_CONFIG3) = 0x0; // not using ADV so we can ignore this guy *(registers + displacement + GPMC_CONFIG4) = config4; |