EB+MCF-EV123 board: fix coding style (alingment)

Signed-off-by: Wolfgang Denk <wd@denx.de>
master
Wolfgang Denk 17 years ago
parent 6841785a0b
commit 0fe340585a
  1. 86
      board/BuS/EB+MCF-EV123/EB+MCF-EV123.c

@ -41,51 +41,51 @@ int checkboard (void)
phys_size_t initdram (int board_type) phys_size_t initdram (int board_type)
{ {
int size,i; int size, i;
size = 0; size = 0;
MCFSDRAMC_DCR = MCFSDRAMC_DCR_RTIM_6 MCFSDRAMC_DCR = MCFSDRAMC_DCR_RTIM_6
| MCFSDRAMC_DCR_RC((15 * CFG_CLK)>>4); | MCFSDRAMC_DCR_RC ((15 * CFG_CLK) >> 4);
#ifdef CFG_SDRAM_BASE0 #ifdef CFG_SDRAM_BASE0
MCFSDRAMC_DACR0 = MCFSDRAMC_DACR_BASE(CFG_SDRAM_BASE0) MCFSDRAMC_DACR0 = MCFSDRAMC_DACR_BASE (CFG_SDRAM_BASE0)
| MCFSDRAMC_DACR_CASL(1) | MCFSDRAMC_DACR_CASL (1)
| MCFSDRAMC_DACR_CBM(3) | MCFSDRAMC_DACR_CBM (3)
| MCFSDRAMC_DACR_PS_16; | MCFSDRAMC_DACR_PS_16;
MCFSDRAMC_DMR0 = MCFSDRAMC_DMR_BAM_16M MCFSDRAMC_DMR0 = MCFSDRAMC_DMR_BAM_16M | MCFSDRAMC_DMR_V;
| MCFSDRAMC_DMR_V;
MCFSDRAMC_DACR0 |= MCFSDRAMC_DACR_IP;
MCFSDRAMC_DACR0 |= MCFSDRAMC_DACR_IP;
*(unsigned short *) (CFG_SDRAM_BASE0) = 0xA5A5;
*(unsigned short *)(CFG_SDRAM_BASE0) = 0xA5A5; MCFSDRAMC_DACR0 |= MCFSDRAMC_DACR_RE;
MCFSDRAMC_DACR0 |= MCFSDRAMC_DACR_RE; for (i = 0; i < 2000; i++)
for (i=0; i < 2000; i++) asm (" nop");
asm(" nop"); mbar_writeLong (MCFSDRAMC_DACR0,
mbar_writeLong(MCFSDRAMC_DACR0, mbar_readLong(MCFSDRAMC_DACR0) mbar_readLong (MCFSDRAMC_DACR0) | MCFSDRAMC_DACR_IMRS);
| MCFSDRAMC_DACR_IMRS); *(unsigned int *) (CFG_SDRAM_BASE0 + 0x220) = 0xA5A5;
*(unsigned int *)(CFG_SDRAM_BASE0 + 0x220) = 0xA5A5; size += CFG_SDRAM_SIZE * 1024 * 1024;
size += CFG_SDRAM_SIZE * 1024 * 1024; #endif
#endif #ifdef CFG_SDRAM_BASE1
#ifdef CFG_SDRAM_BASE1 MCFSDRAMC_DACR1 = MCFSDRAMC_DACR_BASE (CFG_SDRAM_BASE1)
MCFSDRAMC_DACR1 = MCFSDRAMC_DACR_BASE(CFG_SDRAM_BASE1) | MCFSDRAMC_DACR_CASL (1)
| MCFSDRAMC_DACR_CASL(1) | MCFSDRAMC_DACR_CBM (3)
| MCFSDRAMC_DACR_CBM(3) | MCFSDRAMC_DACR_PS_16;
| MCFSDRAMC_DACR_PS_16;
MCFSDRAMC_DMR1 = MCFSDRAMC_DMR_BAM_16M | MCFSDRAMC_DMR_V;
MCFSDRAMC_DMR1 = MCFSDRAMC_DMR_BAM_16M
| MCFSDRAMC_DMR_V; MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_IP;
MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_IP; *(unsigned short *) (CFG_SDRAM_BASE1) = 0xA5A5;
MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_RE;
*(unsigned short *)(CFG_SDRAM_BASE1) = 0xA5A5;
MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_RE; for (i = 0; i < 2000; i++)
for (i=0; i < 2000; i++) asm (" nop");
asm(" nop");
MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_IMRS; MCFSDRAMC_DACR1 |= MCFSDRAMC_DACR_IMRS;
*(unsigned int *)(CFG_SDRAM_BASE1 + 0x220) = 0xA5A5; *(unsigned int *) (CFG_SDRAM_BASE1 + 0x220) = 0xA5A5;
size += CFG_SDRAM_SIZE1 * 1024 * 1024; size += CFG_SDRAM_SIZE1 * 1024 * 1024;
#endif #endif
return size; return size;
} }

Loading…
Cancel
Save