aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-12-04 10:14:13 -0500
committerTom Rini <trini@konsulko.com>2022-12-23 10:15:13 -0500
commit0478dac62a9add8c73981a900ceaa6da732ae2bb (patch)
tree9fac1da2ae69ad7aad9a1c9c649076bf78112c4b /board
parente95bcfb56c6599ba6d00a54fc2f857b6680481c4 (diff)
downloadu-boot-0478dac62a9add8c73981a900ceaa6da732ae2bb.zip
u-boot-0478dac62a9add8c73981a900ceaa6da732ae2bb.tar.gz
u-boot-0478dac62a9add8c73981a900ceaa6da732ae2bb.tar.bz2
kbuild: Remove uncmd_spl logic
At this point in the conversion there should be no need to have logic to disable some symbol during the SPL build as all symbols should have an SPL counterpart. The main real changes done here are that we now must make proper use of CONFIG_IS_ENABLED(DM_SERIAL) rather than many of the odd tricks we developed prior to CONFIG_IS_ENABLED() being available. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/common/i2c_common.c2
-rw-r--r--board/freescale/common/i2c_common.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/board/freescale/common/i2c_common.c b/board/freescale/common/i2c_common.c
index 0f09ed7..119ed3c 100644
--- a/board/freescale/common/i2c_common.c
+++ b/board/freescale/common/i2c_common.c
@@ -9,7 +9,7 @@
#include <i2c.h>
#include "i2c_common.h"
-#ifdef CONFIG_DM_I2C
+#if CONFIG_IS_ENABLED(DM_I2C)
/* If DM is in use, retrieve the chip for the specified bus number */
int fsl_i2c_get_device(int address, int bus, DEVICE_HANDLE_T *dev)
diff --git a/board/freescale/common/i2c_common.h b/board/freescale/common/i2c_common.h
index 840ad66..77a7b6a 100644
--- a/board/freescale/common/i2c_common.h
+++ b/board/freescale/common/i2c_common.h
@@ -9,7 +9,7 @@
#define __NXP_I2C_COMMON_H__
/* Common functionality shared by the I2C drivers for VID and the mux. */
-#ifdef CONFIG_DM_I2C
+#if CONFIG_IS_ENABLED(DM_I2C)
#define DEVICE_HANDLE_T struct udevice *
#define I2C_READ(dev, register, data, length) \