This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

i2c-davinci.h

Other Parts Discussed in Thread: TVP5158, DM3730, OMAP3530

TI 工程师你好,你们上次给我发了一份TVP5158在DM6467下的驱动--DM365_DVR_DVSDK3_00.02.00.00\mcvip_tvp5158,,但在i2c-davinci.c文件中的#include "i2c-davinci.h",但搜索没有发现i2c-davinci.h,能否发一下i2c-davinci.h,谢谢了

  • 这个可以不:

    http://lxr.free-electrons.com/source/include/linux/platform_data/i2c-davinci.h

  • 太感谢了,大神,你有没有DM3730的I2C驱动呢,我现在开发包里没有找到针对DM3730的I2C总线/adapter的驱动。

    在DM3730开发包DVSDK中的I2C总线驱动:i2c-davinci.c中有如下代码

    static void disable_i2c_pins(void)
    {
    unsigned long flags;

    local_irq_save(flags);

    if (cpu_is_davinci_dm644x()) {
    /* I2C clock on GPIO43, I2C data on GPIO44 */
    gpio_direction_input(44);
    gpio_direction_output(43, 0);
    gpio_set_value(43, 1);
    davinci_cfg_reg(DM644X_GPIO43_44);
    } else if (cpu_is_davinci_dm355()) {
    /* I2C clock on GPIO14, I2C data on GPIO15 */
    gpio_direction_input(15);
    gpio_direction_output(14, 0);
    gpio_set_value(14, 1);
    davinci_cfg_reg(DM355_GPIO14);
    davinci_cfg_reg(DM355_GPIO15);
    }

    local_irq_restore(flags);
    }

    这个代码中就是没有DM3730的相关信息,难道还要自己编写DM3730的I2C总线驱动吗?

  • 没有研究过3730,但i2c-davinci.c这个是davinci系列下的驱动,dm3730的i2c驱动内核应该已经自带了,dm3730和omap3530类似,可能和之相关的一些驱动与omap3530类似

    http://processors.wiki.ti.com/index.php/OMAP35x_To_AM37x_Hardware_Migration_Guide