U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Wasim Khan <wasim.khan@oss.nxp.com>
To: trini@konsulko.com, priyanka.jain@nxp.com, v.sethi@nxp.com
Cc: u-boot@lists.denx.de, Wasim Khan <wasim.khan@nxp.com>
Subject: [PATCH] board/freescale/vid : move platform specific definitions
Date: Tue, 21 Sep 2021 16:24:57 +0200	[thread overview]
Message-ID: <20210921142457.3485758-1-wasim.khan@oss.nxp.com> (raw)

From: Wasim Khan <wasim.khan@nxp.com>

VID is a common driver. Move platform specific definitions
to platform specific header files

Signed-off-by: Wasim Khan <wasim.khan@nxp.com>
---
 board/freescale/common/vid.h     | 10 ----------
 include/configs/lx2160a_common.h |  7 +++++++
 2 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/board/freescale/common/vid.h b/board/freescale/common/vid.h
index b34c080b4b..32e68fceb2 100644
--- a/board/freescale/common/vid.h
+++ b/board/freescale/common/vid.h
@@ -59,16 +59,6 @@
 #define PMBUS_CMD_VOUT_COMMAND          0x21
 #define PMBUS_CMD_PAGE_PLUS_WRITE       0x05
 
-#if defined(CONFIG_TARGET_LX2160AQDS) || defined(CONFIG_TARGET_LX2162AQDS) || \
-defined(CONFIG_TARGET_LX2160ARDB)
-/* Voltage monitor on channel 2*/
-#define I2C_VOL_MONITOR_BUS_V_OFFSET	0x2
-#define I2C_VOL_MONITOR_BUS_V_OVF	0x1
-#define I2C_VOL_MONITOR_BUS_V_SHIFT	3
-#define I2C_VOL_MONITOR_ADDR            0x63
-#define I2C_MUX_CH_VOL_MONITOR		0xA
-#endif
-
 int adjust_vdd(ulong vdd_override);
 u16 soc_get_fuse_vid(int vid_index);
 
diff --git a/include/configs/lx2160a_common.h b/include/configs/lx2160a_common.h
index 1ae7d37dd9..c2c4a8c7a1 100644
--- a/include/configs/lx2160a_common.h
+++ b/include/configs/lx2160a_common.h
@@ -86,6 +86,13 @@
 #define CONFIG_SYS_LS_MC_DRAM_DPL_OFFSET	0x00F20000
 #define CONFIG_SYS_LS_MC_BOOT_TIMEOUT_MS	5000
 
+/* Voltage monitor on channel 2*/
+#define I2C_VOL_MONITOR_BUS_V_OFFSET	0x2
+#define I2C_VOL_MONITOR_BUS_V_OVF	0x1
+#define I2C_VOL_MONITOR_BUS_V_SHIFT	3
+#define I2C_VOL_MONITOR_ADDR		0x63
+#define I2C_MUX_CH_VOL_MONITOR		0xA
+
 /* Define phy_reset function to boot the MC based on mcinitcmd.
  * This happens late enough to properly fixup u-boot env MAC addresses.
  */
-- 
2.25.1


             reply	other threads:[~2021-09-21 14:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-21 14:24 Wasim Khan [this message]
2021-09-21 14:43 ` [PATCH] board/freescale/vid : move platform specific definitions Tom Rini
2021-09-24  8:36   ` Wasim Khan (OSS)
2021-09-24 11:53     ` Tom Rini
2021-09-24 20:27       ` Wasim Khan (OSS)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210921142457.3485758-1-wasim.khan@oss.nxp.com \
    --to=wasim.khan@oss.nxp.com \
    --cc=priyanka.jain@nxp.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=v.sethi@nxp.com \
    --cc=wasim.khan@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox