Nokia RX-51: Fix crashing in U-Boot mmc function omap_hsmmc_stop_clock()
authorPali Rohár <pali@kernel.org>
Sat, 31 Oct 2020 16:32:46 +0000 (17:32 +0100)
committerLokesh Vutla <lokeshvutla@ti.com>
Sun, 15 Nov 2020 09:59:40 +0000 (15:29 +0530)
After commit 04a2ea248f58 ("mmc: disable UHS modes if Vcc cannot be
switched on and off") U-Boot started crashing on Nokia RX-51 while
initializing mmc and caused reboot loop.

It looks like that some clocks were not enabled and this patch fixes U-Boot
mmc crash.

Signed-off-by: Pali Rohár <pali@kernel.org>
Cc: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
board/nokia/rx51/rx51.c

index 63531e1..e11c527 100644 (file)
@@ -202,6 +202,8 @@ int board_init(void)
 {
        /* in SRAM or SDRAM, finish GPMC */
        gpmc_init();
+       /* Enable the clks & power */
+       per_clocks_enable();
        /* boot param addr */
        gd->bd->bi_boot_params = OMAP34XX_SDRC_CS0 + 0x100;
        return 0;