summaryrefslogtreecommitdiff
path: root/board/ti/am335x/mux.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/ti/am335x/mux.c')
-rw-r--r--board/ti/am335x/mux.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/board/ti/am335x/mux.c b/board/ti/am335x/mux.c
index e450ff64d8..fed737fa09 100644
--- a/board/ti/am335x/mux.c
+++ b/board/ti/am335x/mux.c
@@ -345,14 +345,6 @@ void enable_i2c2_pin_mux(void)
static unsigned short detect_daughter_board_profile(void)
{
unsigned short val;
-
-#if !CONFIG_IS_ENABLED(DM_I2C)
- if (i2c_probe(I2C_CPLD_ADDR))
- return PROFILE_NONE;
-
- if (i2c_read(I2C_CPLD_ADDR, CFG_REG, 1, (unsigned char *)(&val), 2))
- return PROFILE_NONE;
-#else
struct udevice *dev = NULL;
int rc;
@@ -362,7 +354,6 @@ static unsigned short detect_daughter_board_profile(void)
rc = dm_i2c_read(dev, CFG_REG, (unsigned char *)(&val), 2);
if (rc)
return PROFILE_NONE;
-#endif
return (1 << (val & PROFILE_MASK));
}