Commit cfe8255f authored by Max Filippov's avatar Max Filippov Committed by Chris Zankel

xtensa: xt2000: drop redundant sysmem initialization

sysmem structure initialization in xt2000 platform_init is identical to
the one done in init_arch just before the call to platform_init.
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent e86c4b67
...@@ -92,18 +92,8 @@ void __init platform_setup(char** cmdline) ...@@ -92,18 +92,8 @@ void __init platform_setup(char** cmdline)
/* early initialization */ /* early initialization */
extern sysmem_info_t __initdata sysmem; void __init platform_init(bp_tag_t *first)
void platform_init(bp_tag_t* first)
{ {
/* Set default memory block if not provided by the bootloader. */
if (sysmem.nr_banks == 0) {
sysmem.nr_banks = 1;
sysmem.bank[0].start = PLATFORM_DEFAULT_MEM_START;
sysmem.bank[0].end = PLATFORM_DEFAULT_MEM_START
+ PLATFORM_DEFAULT_MEM_SIZE;
}
} }
/* Heartbeat. Let the LED blink. */ /* Heartbeat. Let the LED blink. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment