board-am335xevm.c上的配置。
static struct pinmux_config i2c1_pin_mux[] = [
["uart0_ctsn.i2c1_sda", OMAP_MUX_MODE3 | AM33XX_SLEWCTRL_SLOW |
AM33XX_PULL_ENBL | AM33XX_INPUT_EN],
["uart0_rtsn.i2c1_scl", OMAP_MUX_MODE3 | AM33XX_SLEWCTRL_SLOW |
AM33XX_PULL_ENBL | AM33XX_INPUT_EN],
[NULL, 0],
];
static struct i2c_board_info am335x_i2c1[] = [
[
I2C_BOARD_INFO("pcf8563", 0x51),//lin add
],
[
I2C_BOARD_INFO("my_wsd", 0x40),
],
];
static void i2c1_init(int evm_id, int profile)
[
setup_pin_mux(i2c1_pin_mux);
omap_register_i2c_bus(2, 100, am335x_i2c1,
ARRAY_SIZE(am335x_i2c1));
return;
]
不知道i2c1的使用还需要修改哪里....
现在老是提示:
sh: write error: Connection timed out
board-am335xevm.c上的配置。
static struct pinmux_config i2c1_pin_mux[] = [
["uart0_ctsn.i2c1_sda", OMAP_MUX_MODE3 | AM33XX_SLEWCTRL_SLOW |
AM33XX_PULL_ENBL | AM33XX_INPUT_EN],
["uart0_rtsn.i2c1_scl", OMAP_MUX_MODE3 | AM33XX_SLEWCTRL_SLOW |
AM33XX_PULL_ENBL | AM33XX_INPUT_EN],
[NULL, 0],
];
static struct i2c_board_info am335x_i2c1[] = [
[
I2C_BOARD_INFO("pcf8563", 0x51),//lin add
],
[
I2C_BOARD_INFO("my_wsd", 0x40),
],
];
static void i2c1_init(int evm_id, int profile)
[
setup_pin_mux(i2c1_pin_mux);
omap_register_i2c_bus(2, 100, am335x_i2c1,
ARRAY_SIZE(am335x_i2c1));
return;
]
不知道i2c1的使用还需要修改哪里....
现在老是提示:
sh: write error: Connection timed out
举报