Update the memory to map to align with the internal memory region map of IPQ40XX BUG=chrome-os-partner:49249 TEST=None. Initial code not sure if it will even compile BRANCH=none Original-Commit-Id: e33712a729ef9831508c2e9aae81d0b32495b681 Original-Change-Id: Iba1c5281a2fbda4ab96126676b901ba71f6b28e0 Original-Signed-off-by: Varadarajan Narayanan <varada@codeaurora.org> Original-Reviewed-on: https://chromium-review.googlesource.com/333295 Original-Reviewed-by: David Hendricks <dhendrix@chromium.org> squashed: soc/qualcomm/ipq40xx: Update DRAM address ranges BUG=chrome-os-partner:49249 TEST=None. Initial code not sure if it will even compile BRANCH=none Original-Commit-Id: 9150c125cb82f8dccb1347d898106703d85a5192 Original-Change-Id: Ic48d3e3f46a7c13a009a5cbed20984bd253eb85b Original-Signed-off-by: Varadarajan Narayanan <varada@codeaurora.org> Original-Reviewed-on: https://chromium-review.googlesource.com/333296 Original-Reviewed-by: David Hendricks <dhendrix@chromium.org> Change-Id: Iea40484751a1c0439ed511319ef09a0254eba757 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: https://review.coreboot.org/14654 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
62 lines
1.8 KiB
C
62 lines
1.8 KiB
C
/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#include <bootblock_common.h>
|
|
#include <console/console.h>
|
|
#include <symbols.h>
|
|
|
|
#include "mmu.h"
|
|
#include <soc/usbl_if.h>
|
|
|
|
static void dump_usbl_report(int section, sbl_ro_info *info)
|
|
{
|
|
int i, num_log_entries;
|
|
|
|
num_log_entries = info->num_log_entries;
|
|
if (!num_log_entries)
|
|
return;
|
|
|
|
printk(BIOS_INFO, " Section %d log:\n", section);
|
|
for (i = 0; i < num_log_entries; i++)
|
|
printk(BIOS_INFO, " %-5d:%2.2x:%.*s\n",
|
|
info->log[i].time_stamp,
|
|
info->log[i].type,
|
|
sizeof(info->log[i].msg),
|
|
info->log[i].msg);
|
|
}
|
|
|
|
void bootblock_mainboard_init(void)
|
|
{
|
|
int i;
|
|
|
|
setup_mmu(DRAM_NOT_INITIALIZED);
|
|
|
|
if (((uintptr_t)maskrom_param < (uintptr_t)&_wifi_imem_0) ||
|
|
((uintptr_t)maskrom_param > (uintptr_t)&_ewifi_imem_0)) {
|
|
printk(BIOS_INFO, "No uber-sbl parameter detected\n");
|
|
return;
|
|
}
|
|
|
|
/* Is maskrom parameter address set to a sensible value? */
|
|
if ((maskrom_param->start_magic != UBER_SBL_SHARED_INFO_START_MAGIC) ||
|
|
(maskrom_param->end_magic != UBER_SBL_SHARED_INFO_END_MAGIC)) {
|
|
|
|
printk(BIOS_INFO, "Uber-sbl: invalid magic!\n");
|
|
} else {
|
|
printk(BIOS_INFO, "Uber-sbl version: %s\n",
|
|
maskrom_param->version);
|
|
|
|
for (i = 0; i < maskrom_param->num; i++)
|
|
dump_usbl_report(i, &maskrom_param->info[i]);
|
|
}
|
|
}
|