Hi guys, I have a hardware based on am335x. Originaly, the backlight (on/off) and other configuration commands are send to display board by i2c 0 bus. The driver implemented in drivers/video/da-8xx-fb.c read/write in an DMA area as shows:
static inline void lcdc_write(unsigned int val, unsigned int addr)
{
writel(val, da8xx_fb_reg_base + (addr));
}
The da8xx_fb_reg_base is getting from a function inside the same archive, but I cannot find how to change da8xx_fb_reg_base to read/write in i2c 2 instead i2c 0.
any idea? thanks in advanced.