mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-26 21:13:48 +00:00
a60c5a986e
Add SAMA7G5 series chip id definitions to align with linux SoC driver. Add support for SAMA7G5 System-In-Package (SIP): SAMA7G54D1G, SAMA7G54D2G, SAMA7G54D4G. Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
34 lines
789 B
C
34 lines
789 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2020 Microchip Technology, Inc.
|
|
* Eugen Hristev <eugen.hristev@microchip.com>
|
|
*/
|
|
|
|
#include <asm/arch/sama7g5.h>
|
|
|
|
char *get_cpu_name(void)
|
|
{
|
|
unsigned int extension_id = get_extension_chip_id();
|
|
|
|
if (cpu_is_sama7g5())
|
|
switch (extension_id) {
|
|
case ARCH_EXID_SAMA7G51:
|
|
return "SAMA7G51";
|
|
case ARCH_EXID_SAMA7G52:
|
|
return "SAMA7G52";
|
|
case ARCH_EXID_SAMA7G53:
|
|
return "SAMA7G53";
|
|
case ARCH_EXID_SAMA7G54:
|
|
return "SAMA7G54";
|
|
case ARCH_EXID_SAMA7G54_D1G:
|
|
return "SAMA7G54 1Gb DDR3L SiP";
|
|
case ARCH_EXID_SAMA7G54_D2G:
|
|
return "SAMA7G54 2Gb DDR3L SiP";
|
|
case ARCH_EXID_SAMA7G54_D4G:
|
|
return "SAMA7G54 4Gb DDR3L SiP";
|
|
default:
|
|
return "Unknown CPU type";
|
|
}
|
|
else
|
|
return "Unknown CPU type";
|
|
}
|