summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2018-12-22 11:15:37 +0530
committerAnup Patel <[email protected]>2018-12-22 20:49:52 +0530
commit24b4d48674ad2dc088949cdf852231ab1e81f56b (patch)
treef90a5cf9eb6e5c4507e4eb1912cae4803ece9f38
parent51d3964f0795dbd305953e41a4e7fe241e243855 (diff)
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 <[email protected]>
-rw-r--r--platform/kendryte/k210/config.mk1
-rw-r--r--platform/kendryte/k210/platform.c2
-rw-r--r--platform/qemu/sifive_u/config.mk1
-rw-r--r--platform/qemu/sifive_u/platform.c2
-rw-r--r--platform/qemu/virt/config.mk1
-rw-r--r--platform/qemu/virt/platform.c2
-rw-r--r--platform/sifive/hifive_u540/config.mk1
-rw-r--r--platform/sifive/hifive_u540/platform.c2
8 files changed, 4 insertions, 8 deletions
diff --git a/platform/kendryte/k210/config.mk b/platform/kendryte/k210/config.mk
index c0c36ea0..f800a41f 100644
--- a/platform/kendryte/k210/config.mk
+++ b/platform/kendryte/k210/config.mk
@@ -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
diff --git a/platform/kendryte/k210/platform.c b/platform/kendryte/k210/platform.c
index d3765d0e..4ef1a249 100644
--- a/platform/kendryte/k210/platform.c
+++ b/platform/kendryte/k210/platform.c
@@ -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,
diff --git a/platform/qemu/sifive_u/config.mk b/platform/qemu/sifive_u/config.mk
index d4470cd0..c2668a8f 100644
--- a/platform/qemu/sifive_u/config.mk
+++ b/platform/qemu/sifive_u/config.mk
@@ -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
diff --git a/platform/qemu/sifive_u/platform.c b/platform/qemu/sifive_u/platform.c
index f01df1ef..c2dcafc8 100644
--- a/platform/qemu/sifive_u/platform.c
+++ b/platform/qemu/sifive_u/platform.c
@@ -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,
diff --git a/platform/qemu/virt/config.mk b/platform/qemu/virt/config.mk
index 8496e2d4..467b0576 100644
--- a/platform/qemu/virt/config.mk
+++ b/platform/qemu/virt/config.mk
@@ -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
diff --git a/platform/qemu/virt/platform.c b/platform/qemu/virt/platform.c
index 9e006744..7b82e4e2 100644
--- a/platform/qemu/virt/platform.c
+++ b/platform/qemu/virt/platform.c
@@ -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,
diff --git a/platform/sifive/hifive_u540/config.mk b/platform/sifive/hifive_u540/config.mk
index f411fa9a..ecbf88c3 100644
--- a/platform/sifive/hifive_u540/config.mk
+++ b/platform/sifive/hifive_u540/config.mk
@@ -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
diff --git a/platform/sifive/hifive_u540/platform.c b/platform/sifive/hifive_u540/platform.c
index 646ce273..395ad4ed 100644
--- a/platform/sifive/hifive_u540/platform.c
+++ b/platform/sifive/hifive_u540/platform.c
@@ -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,