X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fconfigs%2Ftx6.h;h=5369b5cba30fae705b45b5ee2f629ab36280007d;hb=6128b0deae2481daa611731ee5ebbae05e8cd3dd;hp=22f4c1007acddd1bce8f7321ab238c397d883d1d;hpb=5c7e86ebb3514bdac7ac9ae7c0885879f43b9e95;p=karo-tx-uboot.git diff --git a/include/configs/tx6.h b/include/configs/tx6.h index 22f4c1007a..5369b5cba3 100644 --- a/include/configs/tx6.h +++ b/include/configs/tx6.h @@ -14,9 +14,6 @@ /* * Ka-Ro TX6 board - SoC configuration */ -#ifndef CONFIG_TX6_REV -#define CONFIG_TX6_REV 0x1 /* '1' would be converted to 'y' by define2mk.sed */ -#endif #define CONFIG_MX6 #define CONFIG_SYS_MX6_HCLK 24000000 #define CONFIG_SYS_MX6_CLK32 32768 @@ -280,6 +277,7 @@ #define CONFIG_SYS_I2C_BASE I2C1_BASE_ADDR #define CONFIG_SYS_I2C_MX6_PORT1 #define CONFIG_SYS_I2C_SPEED 400000 +#if defined(CONFIG_TX6_REV) #if CONFIG_TX6_REV == 0x1 #define CONFIG_SYS_I2C_SLAVE 0x3c #define CONFIG_LTC3676 @@ -292,7 +290,11 @@ #else #error Unsupported TX6 module revision #endif -#endif +#endif /* CONFIG_TX6_REV */ +/* autodetect which PMIC is present to derive TX6_REV */ +#define CONFIG_LTC3676 /* TX6_REV == 1 */ +#define CONFIG_RN5T567 /* TX6_REV == 3 */ +#endif /* CONFIG_CMD_I2C */ #ifndef CONFIG_ENV_IS_NOWHERE /* define one of the following options: