#include <mach/vpu_mem.h>
#include <mach/sram.h>
#include <mach/rk29_lightsensor.h>
+#include <mach/ddr.h>
#include <linux/regulator/rk29-pwm-regulator.h>
#include <linux/regulator/machine.h>
.flags = 0,
.slave_addr = 0xff,
.scl_rate = 200*1000,
- .mode = I2C_MODE_POLL,
+ .mode = I2C_MODE_IRQ,
.io_init = rk29_i2c1_io_init,
};
rk29_sram_init();
rk29_clock_init(periph_pll_288mhz);
rk29_iomux_init();
+ ddr_init(DDR_TYPE,DDR_FREQ); // DDR3_1333H, 400
}
MACHINE_START(RK29, "RK29board")
struct regulator *vldo;
vldo = regulator_get(NULL, "vcore");
- if (vldo != NULL)
+ if (!IS_ERR(vldo))
{
int uV = 0;
-
+#if 0
seq_printf(s, "Set VCORE.\n");
- regulator_set_voltage(vldo,1100000,1100000);
-
+ regulator_set_voltage(vldo,1350000,1350000);
+#endif
uV = regulator_get_voltage(vldo);
seq_printf(s, "Get VCORE=%d(uV).\n", uV);
}
#if 0
{
struct regulator *vldo;
-
+
+#if 1
vldo = regulator_get(NULL, "vaux1");
if (!IS_ERR(vldo))
{
seq_printf(s, "Disable VAUX1.\n");
regulator_disable(vldo);
}
+#endif
+#if 1
vldo = regulator_get(NULL, "vdig1");
if (!IS_ERR(vldo))
{
seq_printf(s, "Disable VDIG2.\n");
regulator_disable(vldo);
}
+#endif
+#if 0 // fih board is for hdmi
vldo = regulator_get(NULL, "vdac");
if (!IS_ERR(vldo))
{
seq_printf(s, "Disable VDAC.\n");
regulator_disable(vldo);
}
+#endif
+#if 1
vldo = regulator_get(NULL, "vaux2");
if (!IS_ERR(vldo))
{
seq_printf(s, "Disable VAUX2.\n");
regulator_disable(vldo);
}
+#endif
}
#endif