summaryrefslogtreecommitdiff
path: root/board/tqc/tqm85xx/nand.c
diff options
context:
space:
mode:
authorAndy Fleming <afleming@freescale.com>2009-02-16 09:40:20 -0600
committerAndy Fleming <afleming@freescale.com>2009-02-16 18:06:03 -0600
commite0c4fac79d4d74572ddd43f75e7189cecca8d0ad (patch)
tree44e8d6b760f6c2e067c06fa812e3b0d5fc11f843 /board/tqc/tqm85xx/nand.c
parentcf07a5baece0ecfc5284cfda8a4e68eaf92782f8 (diff)
downloadu-boot-imx-e0c4fac79d4d74572ddd43f75e7189cecca8d0ad.zip
u-boot-imx-e0c4fac79d4d74572ddd43f75e7189cecca8d0ad.tar.gz
u-boot-imx-e0c4fac79d4d74572ddd43f75e7189cecca8d0ad.tar.bz2
TQM85xx: Fix a couple warnings in TQM8548 build
The ecm variable in sdram.c was being declared for all 8548, but only used by specific 8548 boards, so we make that variable require those specific boards, too The nand code was using an index "i" into a table, and then re-using "i" to set addresses for each upm. However, then it relied on the old value of i still being there to enable things. Changed the second "i" to "j" Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'board/tqc/tqm85xx/nand.c')
-rw-r--r--board/tqc/tqm85xx/nand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/tqc/tqm85xx/nand.c b/board/tqc/tqm85xx/nand.c
index dea652d..8133fdc 100644
--- a/board/tqc/tqm85xx/nand.c
+++ b/board/tqc/tqm85xx/nand.c
@@ -395,7 +395,7 @@ static void upmb_write (u_char addr, ulong val)
*/
static void nand_upm_setup (volatile ccsr_lbc_t *lbc)
{
- uint i;
+ uint i, j;
uint or3 = CONFIG_SYS_OR3_PRELIM;
uint clock = get_lbc_clock ();
@@ -429,8 +429,8 @@ static void nand_upm_setup (volatile ccsr_lbc_t *lbc)
/* Assign address of table */
nand_upm_patt = upm_freq_table[i].upm_patt;
- for (i = 0; i < 64; i++) {
- upmb_write (i, *nand_upm_patt);
+ for (j = 0; j < 64; j++) {
+ upmb_write (j, *nand_upm_patt);
nand_upm_patt++;
}