Commit ddd73df8 authored by H. Nikolaus Schaller's avatar H. Nikolaus Schaller

Pyra: debug print tca6424 registers before and after initialization (can be reverted later)

Signed-off-by: default avatarH. Nikolaus Schaller <hns@goldelico.com>
parent b4dcdcef
......@@ -200,7 +200,12 @@ int board_init(void)
bq2429x_set_iinlim(ilim);
#if defined(CONFIG_TCA642X)
extern int tca642x_info(uchar chip);
tca642x_info(CONFIG_SYS_I2C_TCA642X_ADDR);
printk("tca6424 init\n");
tca642x_set_inital_state(CONFIG_SYS_I2C_TCA642X_ADDR, pyra_tca642x_init);
printk("tca6424 initialized\n");
tca642x_info(CONFIG_SYS_I2C_TCA642X_ADDR);
#endif
return 0;
......
......@@ -167,7 +167,7 @@ int tca642x_set_inital_state(uchar chip, struct tca642x_bank_info init_data[])
/*
* Display tca642x information
*/
static int tca642x_info(uchar chip)
/* static */ int tca642x_info(uchar chip)
{
int i, j;
uint8_t data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment