diff options
Diffstat (limited to 'firmware/target/arm/as3525/ata_sd_as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/ata_sd_as3525.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c index 6d6b275fba..03a6a8bd02 100644 --- a/firmware/target/arm/as3525/ata_sd_as3525.c +++ b/firmware/target/arm/as3525/ata_sd_as3525.c | |||
@@ -456,8 +456,7 @@ static void init_pl180_controller(const int drive) | |||
456 | 456 | ||
457 | MCI_SELECT(drive) = 0; | 457 | MCI_SELECT(drive) = 0; |
458 | 458 | ||
459 | MCI_CLOCK(drive) = MCI_CLOCK_ENABLE | | 459 | MCI_CLOCK(drive) = MCI_CLOCK_ENABLE | AS3525_SD_IDENT_DIV; |
460 | (((CLK_DIV(AS3525_PCLK_FREQ, AS3525_SD_IDENT_FREQ)) / 2) - 1); | ||
461 | mci_delay(); | 460 | mci_delay(); |
462 | } | 461 | } |
463 | 462 | ||
@@ -466,8 +465,8 @@ int sd_init(void) | |||
466 | int ret; | 465 | int ret; |
467 | CGU_IDE = (1<<7) /* AHB interface enable */ | | 466 | CGU_IDE = (1<<7) /* AHB interface enable */ | |
468 | (1<<6) /* interface enable */ | | 467 | (1<<6) /* interface enable */ | |
469 | ((CLK_DIV(AS3525_PLLA_FREQ, AS3525_IDE_FREQ) - 1) << 2) | | 468 | (AS3525_IDE_DIV << 2) | |
470 | 1; /* clock source = PLLA */ | 469 | AS3525_CLK_PLLA; /* clock source = PLLA */ |
471 | 470 | ||
472 | 471 | ||
473 | CGU_PERI |= CGU_NAF_CLOCK_ENABLE; | 472 | CGU_PERI |= CGU_NAF_CLOCK_ENABLE; |