X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=include%2Fconfigs%2Ftx6.h;h=dcd36decc742631644e5d3583652b0b77a92e103;hp=8b1b05be803d1dd3e4c138c78bb444fee0ff90b8;hb=13a3e2ee237f515af5738c07aaf604db9b54be34;hpb=ff78a3e22349a3d692d7c849abf9816af1627681;ds=sidebyside diff --git a/include/configs/tx6.h b/include/configs/tx6.h index 8b1b05be80..dcd36decc7 100644 --- a/include/configs/tx6.h +++ b/include/configs/tx6.h @@ -317,22 +317,21 @@ #error Unsupported TX6 module revision #endif #else /* CONFIG_TX6_REV */ -/* autodetect which PMIC is present to derive TX6_REV */ #ifdef CONFIG_SOC_MX6UL -#ifndef CONFIG_TX6_UBOOT_NOENV +#ifdef CONFIG_SYS_I2C_SOFT /* NOENV U-Boot is used for initial bootstrap. * Since the TAMPER_PIN_DISABLE fuses have to be programmed * to be able to use the TAMPER pins as GPIO to access the * PMIC I2C bus, this is not possible on virgin hardware. */ -#define CONFIG_SYS_I2C -#define CONFIG_SYS_I2C_SOFT #define CONFIG_SYS_I2C_SOFT_SPEED 400000 +#define CONFIG_SYS_I2C_SPEED CONFIG_SYS_I2C_SOFT_SPEED #define CONFIG_SOFT_I2C_GPIO_SCL IMX_GPIO_NR(5, 0) #define CONFIG_SOFT_I2C_GPIO_SDA IMX_GPIO_NR(5, 1) #define CONFIG_SOFT_I2C_READ_REPEATED_START -#endif /* CONFIG_TX6_UBOOT_NOENV */ +#endif /* CONFIG_SYS_I2C_SOFT */ #else /* !CONFIG_SOC_MX6UL */ +/* autodetect which PMIC is present to derive TX6_REV */ #define CONFIG_LTC3676 /* TX6_REV == 1 */ #endif /* CONFIG_SOC_MX6UL */ #define CONFIG_RN5T567 /* TX6_REV == 3 */