Remove SDRAM manufacturer name code
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 1 Apr 2017 21:58:49 +0000 (14:58 -0700)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 1 Apr 2017 21:58:49 +0000 (14:58 -0700)
sdram.c

diff --git a/sdram.c b/sdram.c
index 7cea7b6..0d34893 100644 (file)
--- a/sdram.c
+++ b/sdram.c
@@ -54,25 +54,6 @@ extern uint32_t g_CPUID;
 \r
 uint32_t g_RAMSize = RAM_SIZE_UNKNOWN;\r
 \r
-static const char* lpddr2_manufacturer_name(uint32_t mr) {\r
-       switch (mr) {\r
-       case 1:\r
-               return "Samsung";\r
-       case 2:\r
-               return "Qimonda";\r
-       case 3:\r
-               return "Elpida";\r
-       case 4:\r
-               return "Etron";\r
-       case 5:\r
-               return "Nanya";\r
-       case 6:\r
-               return "Hynix";\r
-       default:\r
-               return "Unknown";\r
-       }\r
-}\r
-\r
 #define MR8_DENSITY_SHIFT      0x2\r
 #define MR8_DENSITY_MASK       (0xF << 0x2)\r
 \r
@@ -549,10 +530,10 @@ void sdram_init() {
 \r
        g_RAMSize = lpddr2_size(bc);\r
 \r
-       logf("SDRAM Type: %s %s LPDDR2 (BC=0x%X)\n",\r
-            lpddr2_manufacturer_name(vendor_id),\r
+       logf("SDRAM Type: %s LPDDR2 (BC=0x%X, vendor %d)\n",\r
             size_to_string[g_RAMSize],\r
-            bc);\r
+            bc,\r
+            vendor_id);\r
 \r
        if (g_RAMSize == RAM_SIZE_UNKNOWN)\r
                panic("unknown ram size (MR8 response was 0x%X)", bc);\r
This page took 0.024798 seconds and 4 git commands to generate.