]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: at91: Add chip ID for SAM9X60 SiP
authorNicolas Ferre <nicolas.ferre@microchip.com>
Wed, 7 Oct 2020 14:53:44 +0000 (16:53 +0200)
committerEugen Hristev <eugen.hristev@microchip.com>
Mon, 19 Oct 2020 06:19:53 +0000 (09:19 +0300)
SAM9X60 SiP (System in Package) are added for SoC identification.

Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
arch/arm/mach-at91/arm926ejs/sam9x60_devices.c
arch/arm/mach-at91/include/mach/sam9x60.h

index d463bbc7886361cb70d029e8c7430838116066d2..e3d3dd880cad2446e5d11242209095551f2af46f 100644 (file)
@@ -44,6 +44,12 @@ char *get_cpu_name(void)
                switch (extension_id) {
                case ARCH_EXID_SAM9X60:
                        return "SAM9X60";
+               case ARCH_EXID_SAM9X60_D6K:
+                       return "SAM9X60 8MiB SDRAM SiP";
+               case ARCH_EXID_SAM9X60_D5M:
+                       return "SAM9X60 64MiB DDR2 SiP";
+               case ARCH_EXID_SAM9X60_D1G:
+                       return "SAM9X60 128MiB DDR2 SiP";
                default:
                        return "Unknown CPU type";
                }
index 0f00a9ae871ee778adde6854cc58b4f9115c9b7d..b7f43226b7ee7d7d12a05ea6205b26c36eeeedd4 100644 (file)
 #define ARCH_ID_SAM9X60                0x819b35a0
 #define ARCH_ID_VERSION_MASK   0x1f
 #define ARCH_EXID_SAM9X60      0x00000000
+#define ARCH_EXID_SAM9X60_D6K  0x00000011
+#define ARCH_EXID_SAM9X60_D5M  0x00000001
+#define ARCH_EXID_SAM9X60_D1G  0x00000010
 
 #define cpu_is_sam9x60()       (get_chip_id() == ARCH_ID_SAM9X60)