Skip to contentSkip to conversation

rockchip: include: configs: remove unused configs for tag and size

PATCH In review Johan Jonker 2 participants 2 messages Apr 20, 2022 – Apr 22, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rockchip: include: configs: remove unused configs for tag and size

The configs ROCKCHIP_CHIP_TAG and ROCKCHIP_MAX_INIT_SIZE were originally added with rksd.c, rkspi.c and rkcommon.c in mind, but are no longer in use and replaced by struct spl_info, so remove unused configs for tag and size.

---
 include/configs/rk3036_common.h | 3 ---
 include/configs/rk3188_common.h | 2 --
 include/configs/rk322x_common.h | 2 --
 3 files changed, 7 deletions(-)
include/configs/rk3036_common.h +0 -3
index 5905518e..6effa6f0 100644
@@ -16,9 +16,6 @@
 #define CONFIG_SYS_INIT_SP_ADDR		0x60100000
 #define CONFIG_SPL_STACK		0x10081fff
 
-#define CONFIG_ROCKCHIP_MAX_INIT_SIZE	(4 << 10)
-#define CONFIG_ROCKCHIP_CHIP_TAG	"RK30"
-
 #define CONFIG_SYS_SDRAM_BASE		0x60000000
 #define SDRAM_BANK_SIZE			(512UL << 20UL)
 #define SDRAM_MAX_SIZE                  (CONFIG_NR_DRAM_BANKS * SDRAM_BANK_SIZE)
include/configs/rk3188_common.h +0 -2
index 7449e816..5c4dfa61 100644
@@ -16,8 +16,6 @@
 #endif
 #define CONFIG_SYS_INIT_SP_ADDR		0x60100000
 
-#define CONFIG_ROCKCHIP_MAX_INIT_SIZE	(0x8000 - 0x800)
-#define CONFIG_ROCKCHIP_CHIP_TAG	"RK31"
 #define CONFIG_IRAM_BASE	0x10080000
 
 /* spl size 32kb sram - 2kb bootrom */
include/configs/rk322x_common.h +0 -2
index 3258820f..e955d0d1 100644
@@ -17,8 +17,6 @@
 #define CONFIG_SYS_INIT_SP_ADDR		0x61100000
 #define CONFIG_SPL_MAX_SIZE		0x100000
 
-#define CONFIG_ROCKCHIP_MAX_INIT_SIZE	(28 << 10)
-#define CONFIG_ROCKCHIP_CHIP_TAG	"RK32"
 #define CONFIG_IRAM_BASE		0x10080000
 
 #define CONFIG_SYS_SDRAM_BASE		0x60000000
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Johan Jonker

The configs ROCKCHIP_CHIP_TAG and ROCKCHIP_MAX_INIT_SIZE were originally added with rksd.c, rkspi.c and rkcommon.c in mind, but are no longer in use and replaced by struct spl_info, so remove unused configs for tag and size.

Thanks,
- Kever

Quoted 46 lines
---
  include/configs/rk3036_common.h | 3 ---
  include/configs/rk3188_common.h | 2 --
  include/configs/rk322x_common.h | 2 --
  3 files changed, 7 deletions(-)
include/configs/rk3036_common.h +0 -3
index 5905518e..6effa6f0 100644
@@ -16,9 +16,6 @@
  #define CONFIG_SYS_INIT_SP_ADDR		0x60100000
  #define CONFIG_SPL_STACK		0x10081fff
 
-#define CONFIG_ROCKCHIP_MAX_INIT_SIZE	(4 << 10)
-#define CONFIG_ROCKCHIP_CHIP_TAG	"RK30"
-
  #define CONFIG_SYS_SDRAM_BASE		0x60000000
  #define SDRAM_BANK_SIZE			(512UL << 20UL)
  #define SDRAM_MAX_SIZE                  (CONFIG_NR_DRAM_BANKS * SDRAM_BANK_SIZE)
include/configs/rk3188_common.h +0 -2
index 7449e816..5c4dfa61 100644
@@ -16,8 +16,6 @@
  #endif
  #define CONFIG_SYS_INIT_SP_ADDR		0x60100000
 
-#define CONFIG_ROCKCHIP_MAX_INIT_SIZE	(0x8000 - 0x800)
-#define CONFIG_ROCKCHIP_CHIP_TAG	"RK31"
  #define CONFIG_IRAM_BASE	0x10080000
 
  /* spl size 32kb sram - 2kb bootrom */
include/configs/rk322x_common.h +0 -2
index 3258820f..e955d0d1 100644
@@ -17,8 +17,6 @@
  #define CONFIG_SYS_INIT_SP_ADDR		0x61100000
  #define CONFIG_SPL_MAX_SIZE		0x100000
 
-#define CONFIG_ROCKCHIP_MAX_INIT_SIZE	(28 << 10)
-#define CONFIG_ROCKCHIP_CHIP_TAG	"RK32"
  #define CONFIG_IRAM_BASE		0x10080000
 
  #define CONFIG_SYS_SDRAM_BASE		0x60000000