v_CABC_LUT_EN(0));
lcdc_cfg_done(lcdc_dev);
mdelay(25);
- for (i = 0; i < 256; i++) {
+ for (i = 0; i < 128; i++) {
v = cabc_lut[i];
c = lcdc_dev->cabc_lut_addr_base + i;
writel_relaxed(v, c);
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
lcdc_dev->reg_phy_base = res->start;
lcdc_dev->len = resource_size(res);
- lcdc_dev->regs = devm_ioremap_resource(dev, res);
+
+ lcdc_dev->regs = devm_ioremap(&pdev->dev, res->start,
+ resource_size(res));
if (IS_ERR(lcdc_dev->regs))
return PTR_ERR(lcdc_dev->regs);
else
#define CABC_CTRL0 (0x01c0)
#define v_CABC_EN(x) (((x)&1)<<0)
-#define v_PWM_CONFIG_MODE(x) (((x)&3)<<1)
-#define v_CABC_HANDLE_EN(x) (((x)&1)<<3)
+#define v_CABC_HANDLE_EN(x) (((x)&1)<<1)
+#define v_PWM_CONFIG_MODE(x) (((x)&3)<<2)
#define v_CABC_CALC_PIXEL_NUM(x) (((x)&0x7fffff)<<4)
#define m_CABC_EN (1<<0)
-#define m_PWM_CONFIG_MODE (3<<1)
-#define m_CABC_HANDLE_EN (1<<3)
+#define m_CABC_HANDLE_EN (1<<1)
+#define m_PWM_CONFIG_MODE (3<<2)
#define m_CABC_CALC_PIXEL_NUM (0x7fffff<<4)
#define CABC_CTRL1 (0x01c4)