From 51b67d06faa670c65de6f29ec5b5aace74b2a047 Mon Sep 17 00:00:00 2001 From: John Rigby Date: Fri, 24 Aug 2007 18:18:43 -0600 Subject: ADS5121: MAX slew rate for PATA pins Signed-off-by: John Rigby --- board/ads5121/ads5121.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'board/ads5121/ads5121.c') diff --git a/board/ads5121/ads5121.c b/board/ads5121/ads5121.c index 8531657..b8826a1 100644 --- a/board/ads5121/ads5121.c +++ b/board/ads5121/ads5121.c @@ -180,9 +180,17 @@ int checkboard (void) { ushort brd_rev = *(vu_short *) (CFG_CPLD_BASE + 0x00); uchar cpld_rev = *(vu_char *) (CFG_CPLD_BASE + 0x02); + volatile immap_t *im = (immap_t *) CFG_IMMR; + volatile unsigned long *reg; + int i; printf ("Board: ADS5121 rev. 0x%04x (CPLD rev. 0x%02x)\n", brd_rev, cpld_rev); + + /* change the slew rate on all pata pins to max */ + reg = (unsigned long *) &(im->io_ctrl.regs[PATA_CE1_IDX]); + for (i = 0; i < 9; i++) + reg[i] |= 0x00000003; return 0; } -- cgit v1.1 From 8d103071b7b0e3ec888859bfcb9d422565e6d750 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Sun, 13 Jan 2008 23:37:50 +0100 Subject: ADS5121: Fix typo in ads5121.c, adjust default environment Signed-off-by: Wolfgang Denk --- board/ads5121/ads5121.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'board/ads5121/ads5121.c') diff --git a/board/ads5121/ads5121.c b/board/ads5121/ads5121.c index b8826a1..1582c22 100644 --- a/board/ads5121/ads5121.c +++ b/board/ads5121/ads5121.c @@ -33,7 +33,8 @@ CLOCK_SCCR1_PSC_EN(CONFIG_PSC_CONSOLE) | \ CLOCK_SCCR1_PSCFIFO_EN | \ CLOCK_SCCR1_DDR_EN | \ - CLOCK_SCCR1_FEC_EN) + CLOCK_SCCR1_FEC_EN | \ + CLOCK_SCCR1_TPR_EN) #define SCCR2_CLOCKS_EN (CLOCK_SCCR2_MEM_EN | \ CLOCK_SCCR2_SPDIF_EN | \ @@ -139,7 +140,7 @@ long int fixed_sdram (void) im->mddrc.lut_table2_alternate_upper = CFG_MDDRCGRP_LUT2_AU; im->mddrc.lut_table3_alternate_upper = CFG_MDDRCGRP_LUT3_AU; im->mddrc.lut_table4_alternate_upper = CFG_MDDRCGRP_LUT4_AU; - im->mddrc.lut_table0_alternate_lower = CFG_MDDRCGRP_LUT0_AU; + im->mddrc.lut_table0_alternate_lower = CFG_MDDRCGRP_LUT0_AL; im->mddrc.lut_table1_alternate_lower = CFG_MDDRCGRP_LUT1_AL; im->mddrc.lut_table2_alternate_lower = CFG_MDDRCGRP_LUT2_AL; im->mddrc.lut_table3_alternate_lower = CFG_MDDRCGRP_LUT3_AL; -- cgit v1.1