diff options
| author | Tom Rini <[email protected]> | 2022-10-28 20:27:10 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-11-10 10:08:55 -0500 |
| commit | 8c778f78340068cebf5484a9f69de1de5d4eb447 (patch) | |
| tree | dbe5b6dd7db245a93dd6eb3ba3243ed6b624fbc5 /include | |
| parent | 02f5a01441ecd356b73b491c99d635c67b2ba207 (diff) | |
Convert CONFIG_SYS_NONCACHED_MEMORY to Kconfig
This converts the following to Kconfig:
CONFIG_SYS_NONCACHED_MEMORY
To do this we introduce CONFIG_SYS_HAS_NONCACHED_MEMORY as a bool to
gate if we are going to have noncached_... functions available and then
continue to use CONFIG_SYS_NONCACHED_MEMORY to store the size of said
cache. We make this new option depend on both the architectures which
implement support and the drivers which make use of it.
Cc: Tom Warren <[email protected]>
Cc: Mingming lee <[email protected]>
Cc: "Ying-Chun Liu (PaulLiu)" <[email protected]>
Cc: Alban Bedel <[email protected]>
Cc: Stephen Warren <[email protected]>
Cc: Marcel Ziswiler <[email protected]>
Cc: Allen Martin <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/configs/imx8mp_rsb3720.h | 4 | ||||
| -rw-r--r-- | include/configs/mt7621.h | 2 | ||||
| -rw-r--r-- | include/configs/mt7622.h | 4 | ||||
| -rw-r--r-- | include/configs/mt7623.h | 2 | ||||
| -rw-r--r-- | include/configs/mt7629.h | 2 | ||||
| -rw-r--r-- | include/configs/mt7981.h | 4 | ||||
| -rw-r--r-- | include/configs/mt7986.h | 4 | ||||
| -rw-r--r-- | include/configs/mt8512.h | 4 | ||||
| -rw-r--r-- | include/configs/mt8518.h | 5 | ||||
| -rw-r--r-- | include/configs/tegra-common-post.h | 2 |
10 files changed, 0 insertions, 33 deletions
diff --git a/include/configs/imx8mp_rsb3720.h b/include/configs/imx8mp_rsb3720.h index b8abdb07634..5caabf21a64 100644 --- a/include/configs/imx8mp_rsb3720.h +++ b/include/configs/imx8mp_rsb3720.h @@ -41,10 +41,6 @@ #if defined(CONFIG_CMD_NET) #define CONFIG_FEC_MXC_PHYADDR 4 -#ifdef CONFIG_DWC_ETH_QOS -#define CONFIG_SYS_NONCACHED_MEMORY (1 * SZ_1M) /* 1M */ -#endif - #define PHY_ANEG_TIMEOUT 20000 #endif diff --git a/include/configs/mt7621.h b/include/configs/mt7621.h index 6a55e7a3275..9b1ba3655e8 100644 --- a/include/configs/mt7621.h +++ b/include/configs/mt7621.h @@ -15,8 +15,6 @@ #define CONFIG_SYS_INIT_SP_OFFSET 0x800000 -#define CONFIG_SYS_NONCACHED_MEMORY 0x100000 - /* MMC */ #define MMC_SUPPORTS_TUNING diff --git a/include/configs/mt7622.h b/include/configs/mt7622.h index f9953993677..fd8e30acf59 100644 --- a/include/configs/mt7622.h +++ b/include/configs/mt7622.h @@ -9,10 +9,6 @@ #ifndef __MT7622_H #define __MT7622_H -#include <linux/sizes.h> - -#define CONFIG_SYS_NONCACHED_MEMORY SZ_1M - /* Uboot definition */ #define CONFIG_SYS_UBOOT_BASE CONFIG_TEXT_BASE diff --git a/include/configs/mt7623.h b/include/configs/mt7623.h index 0cd8b08552c..73093f94d2b 100644 --- a/include/configs/mt7623.h +++ b/include/configs/mt7623.h @@ -13,8 +13,6 @@ /* Miscellaneous configurable options */ -#define CONFIG_SYS_NONCACHED_MEMORY SZ_1M - /* Environment */ /* Preloader -> Uboot */ diff --git a/include/configs/mt7629.h b/include/configs/mt7629.h index 22d11d01476..668dc3c4f74 100644 --- a/include/configs/mt7629.h +++ b/include/configs/mt7629.h @@ -13,8 +13,6 @@ /* Miscellaneous configurable options */ -#define CONFIG_SYS_NONCACHED_MEMORY SZ_1M - /* Environment */ /* Defines for SPL */ diff --git a/include/configs/mt7981.h b/include/configs/mt7981.h index 1f81b0b4f87..9f26b0ba7bb 100644 --- a/include/configs/mt7981.h +++ b/include/configs/mt7981.h @@ -9,10 +9,6 @@ #ifndef __MT7981_H #define __MT7981_H -#include <linux/sizes.h> - -#define CONFIG_SYS_NONCACHED_MEMORY SZ_1M - /* Uboot definition */ #define CONFIG_SYS_UBOOT_BASE CONFIG_TEXT_BASE diff --git a/include/configs/mt7986.h b/include/configs/mt7986.h index 00e1c57ae8a..4fbd57a573d 100644 --- a/include/configs/mt7986.h +++ b/include/configs/mt7986.h @@ -9,10 +9,6 @@ #ifndef __MT7986_H #define __MT7986_H -#include <linux/sizes.h> - -#define CONFIG_SYS_NONCACHED_MEMORY SZ_1M - /* Uboot definition */ #define CONFIG_SYS_UBOOT_BASE CONFIG_TEXT_BASE diff --git a/include/configs/mt8512.h b/include/configs/mt8512.h index 5ff5541c509..d15941660ab 100644 --- a/include/configs/mt8512.h +++ b/include/configs/mt8512.h @@ -9,10 +9,6 @@ #ifndef __MT8512_H #define __MT8512_H -#include <linux/sizes.h> - -#define CONFIG_SYS_NONCACHED_MEMORY SZ_1M - /* Uboot definition */ #define CONFIG_SYS_UBOOT_START CONFIG_TEXT_BASE diff --git a/include/configs/mt8518.h b/include/configs/mt8518.h index 6d4704644e4..7cabbef9288 100644 --- a/include/configs/mt8518.h +++ b/include/configs/mt8518.h @@ -9,11 +9,6 @@ #ifndef __MT8518_H #define __MT8518_H -#include <linux/sizes.h> - -#define CONFIG_SYS_NONCACHED_MEMORY SZ_1M - - /* DRAM definition */ #define CONFIG_SYS_SDRAM_BASE 0x40000000 #define CONFIG_SYS_SDRAM_SIZE 0x20000000 diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h index 4e20e1d1984..69acabf19fd 100644 --- a/include/configs/tegra-common-post.h +++ b/include/configs/tegra-common-post.h @@ -7,8 +7,6 @@ #ifndef __TEGRA_COMMON_POST_H #define __TEGRA_COMMON_POST_H -#define CONFIG_SYS_NONCACHED_MEMORY (1 << 20) /* 1 MiB */ - #if CONFIG_IS_ENABLED(CMD_USB) # define BOOT_TARGET_USB(func) func(USB, usb, 0) #else |
