Pyra: debug print tca6424 registers before and after initialization (can be reverted...
authorH. Nikolaus Schaller <hns@goldelico.com>
Thu, 7 Apr 2016 17:42:59 +0000 (19:42 +0200)
committernotaz <notasas@gmail.com>
Sun, 14 Aug 2016 13:43:32 +0000 (16:43 +0300)
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
board/pandora/pyra+lc15/pyra+lc15.c
drivers/gpio/tca642x.c

index 8e569b4..aa24e30 100644 (file)
@@ -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;
index 6386835..0be6f06 100644 (file)
@@ -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;