mx7ulp: Move SoC base address to a common file
authorFabio Estevam <festevam@gmail.com>
Wed, 23 Oct 2019 14:08:55 +0000 (11:08 -0300)
committerStefano Babic <sbabic@denx.de>
Thu, 16 Jan 2020 20:02:56 +0000 (21:02 +0100)
SoC base addresses should better go into a common SoC file instead
of repeating the definition in each board file.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
arch/arm/include/asm/arch-mx7ulp/imx-regs.h
include/configs/mx7ulp_evk.h

index 3c82e9921ed56fa3d358f47055fa9c8fede37975..9a420dc30bf6c92d235f358fc247b22bb57f6a7a 100644 (file)
 #define SNVS_LPCR_DPEN                         (0x20)
 #define SNVS_LPCR_SRTC_ENV                     (0x1)
 
+#define SRC_BASE_ADDR                  CMC1_RBASE
+#define IRAM_BASE_ADDR                 OCRAM_0_BASE
+#define IOMUXC_BASE_ADDR               IOMUXC1_RBASE
+
 #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
 
 #include <asm/types.h>
index f5583054a3c159ee61ebb9e0e4befa675fa546f5..c1b379bdeaf34098b8654cf677d4cd9c26c2d330 100644 (file)
 #define CONFIG_BOARD_POSTCLK_INIT
 #define CONFIG_SYS_BOOTM_LEN           0x1000000
 
-#define SRC_BASE_ADDR                  CMC1_RBASE
-#define IRAM_BASE_ADDR                 OCRAM_0_BASE
-#define IOMUXC_BASE_ADDR               IOMUXC1_RBASE
-
 #define CONFIG_SYS_MMC_ENV_DEV          0      /* USDHC1 */
 #define CONFIG_SYS_MMC_ENV_PART         0      /* user area */
 #define CONFIG_MMCROOT                  "/dev/mmcblk0p2"  /* USDHC1 */