aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-12-12 22:12:30 -0500
committerTom Rini <trini@konsulko.com>2021-12-27 08:41:38 -0500
commitbe7dbb60c5bfa38ea444fe7de1dca8bd35f83f5b (patch)
treec0d375195597632ee82a485cf4a83c0e6f90c1ee /drivers
parentff27af1244113a8cd27624430799d58e3ce5898b (diff)
downloadu-boot-be7dbb60c5bfa38ea444fe7de1dca8bd35f83f5b.zip
u-boot-be7dbb60c5bfa38ea444fe7de1dca8bd35f83f5b.tar.gz
u-boot-be7dbb60c5bfa38ea444fe7de1dca8bd35f83f5b.tar.bz2
Convert CONFIG_SYS_IMMR to Kconfig
This converts the following to Kconfig: CONFIG_SYS_IMMR We do this by consolidating the SYS_IMMR options we have and providing defaults. We also, in the few places where M68K was also sharing code with these platforms, define it within the file to CONFIG_SYS_MBAR to match usage. This should be cleaned up longer term. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/fsl_i2c.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c
index eafd801..9a3c824 100644
--- a/drivers/i2c/fsl_i2c.c
+++ b/drivers/i2c/fsl_i2c.c
@@ -40,6 +40,10 @@
DECLARE_GLOBAL_DATA_PTR;
+#ifdef CONFIG_M68K
+#define CONFIG_SYS_IMMR CONFIG_SYS_MBAR
+#endif
+
#if !CONFIG_IS_ENABLED(DM_I2C)
static const struct fsl_i2c_base *i2c_base[4] = {
(struct fsl_i2c_base *)(CONFIG_SYS_IMMR + CONFIG_SYS_FSL_I2C_OFFSET),