From: H. Nikolaus Schaller Date: Thu, 7 Apr 2016 17:42:59 +0000 (+0200) Subject: Pyra: debug print tca6424 registers before and after initialization (can be reverted... X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4049a7ac1025dbe966c05dc9b4725640ac9561cb;p=pandora-u-boot.git Pyra: debug print tca6424 registers before and after initialization (can be reverted later) Signed-off-by: H. Nikolaus Schaller --- diff --git a/board/pandora/pyra+lc15/pyra+lc15.c b/board/pandora/pyra+lc15/pyra+lc15.c index 8e569b4ed0c..aa24e30f1f4 100644 --- a/board/pandora/pyra+lc15/pyra+lc15.c +++ b/board/pandora/pyra+lc15/pyra+lc15.c @@ -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; diff --git a/drivers/gpio/tca642x.c b/drivers/gpio/tca642x.c index 6386835d5df..0be6f06cf4c 100644 --- a/drivers/gpio/tca642x.c +++ b/drivers/gpio/tca642x.c @@ -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;