aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass2020-05-10 14:16:43 -0600
committerTom Rini2020-06-25 13:24:11 -0400
commit566ffde8e19ac683e9d0836716de8ee090a56bf8 (patch)
tree05beb1aad7e040405f1359e26fea2550f9ac1666 /cmd
parent7d81641ba9984db472798b1c9b059e019c8b1bc0 (diff)
bdinfo: microblaze: sh: nios2: Drop arch-specific flash info
The differences these architectures have are minor and not worth the extra code. Use the generic version always. Tidy up the code style by removing unnecessary tabs. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bdinfo.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index 96888c5fed7..228835d0564 100644
--- a/cmd/bdinfo.c
+++ b/cmd/bdinfo.c
@@ -111,20 +111,9 @@ static inline void print_bi_dram(const bd_t *bd)
static inline void print_bi_flash(const bd_t *bd)
{
-#if defined(CONFIG_MICROBLAZE) || defined(CONFIG_SH)
- print_num("flash start ", (ulong)bd->bi_flashstart);
- print_num("flash size ", (ulong)bd->bi_flashsize);
- print_num("flash offset ", (ulong)bd->bi_flashoffset);
-
-#elif defined(CONFIG_NIOS2)
- print_num("flash start", (ulong)bd->bi_flashstart);
- print_num("flash size", (ulong)bd->bi_flashsize);
- print_num("flash offset", (ulong)bd->bi_flashoffset);
-#else
- print_num("flashstart", (ulong)bd->bi_flashstart);
- print_num("flashsize", (ulong)bd->bi_flashsize);
- print_num("flashoffset", (ulong)bd->bi_flashoffset);
-#endif
+ print_num("flashstart", (ulong)bd->bi_flashstart);
+ print_num("flashsize", (ulong)bd->bi_flashsize);
+ print_num("flashoffset", (ulong)bd->bi_flashoffset);
}
static inline void print_eth_ip_addr(void)