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:
Anup Patel
2018-12-22 11:15:37 +05:30
committed by Anup Patel
parent 51d3964f07
commit 24b4d48674
8 changed files with 4 additions and 8 deletions

View File

@@ -8,7 +8,6 @@
# #
# Essential defines required by SBI platform # 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_COUNT=2
platform-cppflags-y+= -DPLAT_HART_STACK_SIZE=4096 platform-cppflags-y+= -DPLAT_HART_STACK_SIZE=4096

View File

@@ -76,7 +76,7 @@ static int k210_system_shutdown(u32 type)
struct sbi_platform platform = { struct sbi_platform platform = {
.name = STRINGIFY(PLAT_NAME), .name = "Kendryte K210",
.features = SBI_PLATFORM_HAS_MMIO_TIMER_VALUE, .features = SBI_PLATFORM_HAS_MMIO_TIMER_VALUE,
.hart_count = PLAT_HART_COUNT, .hart_count = PLAT_HART_COUNT,

View File

@@ -8,7 +8,6 @@
# #
# Essential defines required by SBI platform # 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_COUNT=1
platform-cppflags-y+= -DPLAT_HART_STACK_SIZE=8192 platform-cppflags-y+= -DPLAT_HART_STACK_SIZE=8192

View File

@@ -100,7 +100,7 @@ static int sifive_u_system_down(u32 type)
} }
struct sbi_platform platform = { struct sbi_platform platform = {
.name = STRINGIFY(PLAT_NAME), .name = "QEMU SiFive Unleashed",
.features = SBI_PLATFORM_DEFAULT_FEATURES, .features = SBI_PLATFORM_DEFAULT_FEATURES,
.hart_count = PLAT_HART_COUNT, .hart_count = PLAT_HART_COUNT,
.hart_stack_size = PLAT_HART_STACK_SIZE, .hart_stack_size = PLAT_HART_STACK_SIZE,

View File

@@ -8,7 +8,6 @@
# #
# Essential defines required by SBI platform # 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_COUNT=8
platform-cppflags-y+= -DPLAT_HART_STACK_SIZE=8192 platform-cppflags-y+= -DPLAT_HART_STACK_SIZE=8192

View File

@@ -101,7 +101,7 @@ static int virt_system_down(u32 type)
} }
struct sbi_platform platform = { struct sbi_platform platform = {
.name = STRINGIFY(PLAT_NAME), .name = "QEMU Virt Machine",
.features = SBI_PLATFORM_DEFAULT_FEATURES, .features = SBI_PLATFORM_DEFAULT_FEATURES,
.hart_count = PLAT_HART_COUNT, .hart_count = PLAT_HART_COUNT,
.hart_stack_size = PLAT_HART_STACK_SIZE, .hart_stack_size = PLAT_HART_STACK_SIZE,

View File

@@ -8,7 +8,6 @@
# #
# Essential defines required by SBI platform # 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_COUNT=5
platform-cppflags-y+= -DPLAT_HART_STACK_SIZE=8192 platform-cppflags-y+= -DPLAT_HART_STACK_SIZE=8192

View File

@@ -120,7 +120,7 @@ static int sifive_u_system_down(u32 type)
} }
struct sbi_platform platform = { struct sbi_platform platform = {
.name = STRINGIFY(PLAT_NAME), .name = "SiFive HiFive U540",
.features = SBI_PLATFORM_DEFAULT_FEATURES, .features = SBI_PLATFORM_DEFAULT_FEATURES,
.hart_count = PLAT_HART_COUNT, .hart_count = PLAT_HART_COUNT,
.hart_stack_size = PLAT_HART_STACK_SIZE, .hart_stack_size = PLAT_HART_STACK_SIZE,