We use DM816x DVRRDK 03.00.00.00 and UdWorks platform.
We want to use the second i2c device /dev/i2c-1.
OSA api and linux device api works fine for /dev/i2c-2 but not for /dev/i2c-1.
To enable dev/i2c-1, I have added the following:
__raw_writel(0x2, CM_ALWON_I2C_1_CLKCTRL);
while(__raw_readl(CM_ALWON_I2C_1_CLKCTRL) != 0x2);
in uboot-04.04.00.01/board/ti/ti8168_dvr/dvr.c
and #define CM_ALWON_I2C_1_CLKCTRL (PRCM_BASE + 0x1568)
in uboot-04.04.00.01/arch/arm/include/asm/arch-ti81xx/cpu.h
But after building a new uboot, with this settings uboot is not starting.
No output at console.
What is nessesary to enable /dev/i2c-1 ?