diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2017-12-08 15:35:35 +0800 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2017-12-14 13:08:47 -0800 |
commit | 481fb01f41feec75366cd0790ff672638384b60a (patch) | |
tree | 59ad26ae239a1c7798d07930eae8a72a9345ba31 /include/configs | |
parent | 70a131eb5ac1f4cceb5500ad3224473020497cc9 (diff) | |
download | u-boot-481fb01f41feec75366cd0790ff672638384b60a.tar.gz u-boot-481fb01f41feec75366cd0790ff672638384b60a.tar.xz u-boot-481fb01f41feec75366cd0790ff672638384b60a.zip |
armv8: ls1012ardb: clean up definitions for I2C IO expanders
This patch is to clean up definitions for I2C IO expanders.
The value 0x10 of __SW_BOOT_EMU is wrong. It should be 0x2.
Fixed it in this patch.
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/ls1012ardb.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/configs/ls1012ardb.h b/include/configs/ls1012ardb.h index a14021f589..d0ceae24f7 100644 --- a/include/configs/ls1012ardb.h +++ b/include/configs/ls1012ardb.h @@ -24,14 +24,16 @@ * I2C IO expander */ -#define I2C_MUX_IO1_ADDR 0x24 -#define __SW_BOOT_MASK 0xFC -#define __SW_BOOT_EMU 0x10 -#define __SW_BOOT_BANK1 0x00 -#define __SW_BOOT_BANK2 0x01 -#define __SW_REV_MASK 0x07 -#define __SW_REV_A 0xF8 -#define __SW_REV_B 0xF0 +#define I2C_MUX_IO_ADDR 0x24 +#define I2C_MUX_IO_0 0 +#define I2C_MUX_IO_1 1 +#define SW_BOOT_MASK 0x03 +#define SW_BOOT_EMU 0x02 +#define SW_BOOT_BANK1 0x00 +#define SW_BOOT_BANK2 0x01 +#define SW_REV_MASK 0xF8 +#define SW_REV_A 0xF8 +#define SW_REV_B 0xF0 /* MMC */ #ifdef CONFIG_MMC |