]> git.sur5r.net Git - u-boot/commitdiff
arm: am437x: cm-t43: get rid of enable_vtt_regulator()
authorNikita Kiryanov <nikita@compulab.co.il>
Fri, 19 Feb 2016 17:19:48 +0000 (19:19 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 24 Feb 2016 23:44:08 +0000 (18:44 -0500)
CM-T43 does not have a vtt regulator. Remove the function that's supposed
to enable it.

Cc: Tom Rini <trini@konsulko.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Reviewed-by: Tom Rini <trini@konsulko.com>
board/compulab/cm_t43/spl.c

index 03ecf8aec481fc9d8ba7837803a1cd83a8311e7e..520de24128a97da3d1af6bc9158a56dae459f452 100644 (file)
@@ -100,22 +100,10 @@ const struct dpll_params *get_dpll_per_params(void)
        return &dpll_per;
 }
 
-static void enable_vtt_regulator(void)
-{
-       u32 temp;
-
-       writel(GPIO_CTRL_ENABLEMODULE, AM33XX_GPIO5_BASE + OMAP_GPIO_CTRL);
-       writel(GPIO_SETDATAOUT(7), AM33XX_GPIO5_BASE + OMAP_GPIO_SETDATAOUT);
-       temp = readl(AM33XX_GPIO5_BASE + OMAP_GPIO_OE);
-       temp = temp & ~(GPIO_OE_ENABLE(7));
-       writel(temp, AM33XX_GPIO5_BASE + OMAP_GPIO_OE);
-}
-
 void sdram_init(void)
 {
        unsigned long ram_size;
 
-       enable_vtt_regulator();
        config_ddr(0, &ioregs_ddr3, NULL, NULL, &ddr3_emif_regs, 0);
        ram_size = get_ram_size((long int *)CONFIG_SYS_SDRAM_BASE, 0x80000000);
        if (ram_size == 0x80000000 ||