forked from Mirrors/opensbi
		
	platform: Remove PLAT_NAME from all platforms
The PLAT_NAME is used only in platform.c for all platforms hence remove it. Signed-off-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
		@@ -8,7 +8,6 @@
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
# Essential defines required by SBI platform
 | 
			
		||||
platform-cppflags-y = -DPLAT_NAME="Kendryte K210"
 | 
			
		||||
platform-cppflags-y+= -DPLAT_HART_COUNT=2
 | 
			
		||||
platform-cppflags-y+= -DPLAT_HART_STACK_SIZE=4096
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -76,7 +76,7 @@ static int k210_system_shutdown(u32 type)
 | 
			
		||||
 | 
			
		||||
struct sbi_platform platform = {
 | 
			
		||||
 | 
			
		||||
	.name = STRINGIFY(PLAT_NAME),
 | 
			
		||||
	.name = "Kendryte K210",
 | 
			
		||||
	.features = SBI_PLATFORM_HAS_MMIO_TIMER_VALUE,
 | 
			
		||||
 | 
			
		||||
	.hart_count = PLAT_HART_COUNT,
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,6 @@
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
# Essential defines required by SBI platform
 | 
			
		||||
platform-cppflags-y = -DPLAT_NAME="QEMU SiFive Unleashed"
 | 
			
		||||
platform-cppflags-y+= -DPLAT_HART_COUNT=1
 | 
			
		||||
platform-cppflags-y+= -DPLAT_HART_STACK_SIZE=8192
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -100,7 +100,7 @@ static int sifive_u_system_down(u32 type)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct sbi_platform platform = {
 | 
			
		||||
	.name = STRINGIFY(PLAT_NAME),
 | 
			
		||||
	.name = "QEMU SiFive Unleashed",
 | 
			
		||||
	.features = SBI_PLATFORM_DEFAULT_FEATURES,
 | 
			
		||||
	.hart_count = PLAT_HART_COUNT,
 | 
			
		||||
	.hart_stack_size = PLAT_HART_STACK_SIZE,
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,6 @@
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
# Essential defines required by SBI platform
 | 
			
		||||
platform-cppflags-y = -DPLAT_NAME="QEMU Virt Machine"
 | 
			
		||||
platform-cppflags-y+= -DPLAT_HART_COUNT=8
 | 
			
		||||
platform-cppflags-y+= -DPLAT_HART_STACK_SIZE=8192
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -101,7 +101,7 @@ static int virt_system_down(u32 type)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct sbi_platform platform = {
 | 
			
		||||
	.name = STRINGIFY(PLAT_NAME),
 | 
			
		||||
	.name = "QEMU Virt Machine",
 | 
			
		||||
	.features = SBI_PLATFORM_DEFAULT_FEATURES,
 | 
			
		||||
	.hart_count = PLAT_HART_COUNT,
 | 
			
		||||
	.hart_stack_size = PLAT_HART_STACK_SIZE,
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,6 @@
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
# Essential defines required by SBI platform
 | 
			
		||||
platform-cppflags-y = -DPLAT_NAME="SiFive HiFive U540"
 | 
			
		||||
platform-cppflags-y+= -DPLAT_HART_COUNT=5
 | 
			
		||||
platform-cppflags-y+= -DPLAT_HART_STACK_SIZE=8192
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -120,7 +120,7 @@ static int sifive_u_system_down(u32 type)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct sbi_platform platform = {
 | 
			
		||||
	.name = STRINGIFY(PLAT_NAME),
 | 
			
		||||
	.name = "SiFive HiFive U540",
 | 
			
		||||
	.features = SBI_PLATFORM_DEFAULT_FEATURES,
 | 
			
		||||
	.hart_count = PLAT_HART_COUNT,
 | 
			
		||||
	.hart_stack_size = PLAT_HART_STACK_SIZE,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user