]> git.sur5r.net Git - u-boot/blobdiff - board/compulab/cm_t43/spl.c
Remove unnecessary instances of DECLARE_GLOBAL_DATA_PTR
[u-boot] / board / compulab / cm_t43 / spl.c
index 520de24128a97da3d1af6bc9158a56dae459f452..ccdf6b3e3425082e153430cff0dc3f9d363ee711 100644 (file)
@@ -6,11 +6,13 @@
 
 #include <common.h>
 #include <spl.h>
+#include <i2c.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/ddr_defs.h>
 #include <asm/gpio.h>
-
-DECLARE_GLOBAL_DATA_PTR;
+#include <power/pmic.h>
+#include <power/tps65218.h>
+#include "board.h"
 
 const struct dpll_params dpll_mpu  = { 800,  24, 1,  -1, -1, -1, -1 };
 const struct dpll_params dpll_core = { 1000, 24, -1, -1, 10,  8,  4 };
@@ -100,6 +102,17 @@ const struct dpll_params *get_dpll_per_params(void)
        return &dpll_per;
 }
 
+void scale_vcores(void)
+{
+       set_i2c_pin_mux();
+       i2c_init(CONFIG_SYS_OMAP24_I2C_SPEED, CONFIG_SYS_OMAP24_I2C_SLAVE);
+       if (i2c_probe(TPS65218_CHIP_PM))
+               return;
+
+       tps65218_voltage_update(TPS65218_DCDC1, TPS65218_DCDC_VOLT_SEL_1100MV);
+       tps65218_voltage_update(TPS65218_DCDC2, TPS65218_DCDC_VOLT_SEL_1100MV);
+}
+
 void sdram_init(void)
 {
        unsigned long ram_size;