From 4049a7ac1025dbe966c05dc9b4725640ac9561cb Mon Sep 17 00:00:00 2001 From: "H. Nikolaus Schaller" Date: Thu, 7 Apr 2016 19:42:59 +0200 Subject: [PATCH] Pyra: debug print tca6424 registers before and after initialization (can be reverted later) Signed-off-by: H. Nikolaus Schaller --- board/pandora/pyra+lc15/pyra+lc15.c | 5 +++++ drivers/gpio/tca642x.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.39.5