static void ddr_init(u32 dram_speed_bin, u32 freq)
{
- printk(KERN_DEBUG pr_fmt("In Func:%s,dram_speed_bin:%d,freq:%d\n"),
- __func__, dram_speed_bin, freq);
- if (scpi_ddr_init(dram_speed_bin, freq))
+ int lcdc_type;
+
+ lcdc_type = rockchip_get_screen_type();
+ printk(KERN_DEBUG pr_fmt("In Func:%s,dram_speed_bin:%d,freq:%d,lcdc_type:%d\n"),
+ __func__, dram_speed_bin, freq, lcdc_type);
+ if (scpi_ddr_init(dram_speed_bin, freq, lcdc_type))
pr_info("ddr init error\n");
else
printk(KERN_DEBUG pr_fmt("%s out\n"), __func__);
return ret;
}
-int scpi_ddr_init(u32 dram_speed_bin, u32 freq)
+int scpi_ddr_init(u32 dram_speed_bin, u32 freq, u32 lcdc_type)
{
struct scpi_data_buf sdata;
struct rockchip_mbox_msg mdata;
struct __packed1 {
u32 dram_speed_bin;
u32 freq;
+ u32 lcdc_type;
} tx_buf;
struct __packed2 {
u32 status;
tx_buf.dram_speed_bin = (u32)dram_speed_bin;
tx_buf.freq = (u32)freq;
+ tx_buf.lcdc_type = (u32)lcdc_type;
SCPI_SETUP_DBUF(sdata, mdata, SCPI_CL_DDR,
SCPI_DDR_INIT, tx_buf, rx_buf);
int scpi_get_sensor(char *name);
int scpi_get_sensor_value(u16 sensor, u32 *val);
-int scpi_ddr_init(u32 dram_speed_bin, u32 freq);
+int scpi_ddr_init(u32 dram_speed_bin, u32 freq, u32 lcdc_type);
int scpi_ddr_set_clk_rate(u32 rate);
int scpi_ddr_round_rate(u32 m_hz);
int scpi_ddr_set_auto_self_refresh(u32 en);