summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2016-02-15 11:58:37 +0100
committerMichal Simek <michal.simek@xilinx.com>2016-02-22 16:21:12 +0100
commit18c4e7f71c3ab7298a5453c492e0a9c46cd38c23 (patch)
tree42d1774e4f172160571ec4a98703a0fa2a13d478 /cmd
parentd9a3bec682f9756621615f4306718a356a3230e3 (diff)
downloadu-boot-imx-18c4e7f71c3ab7298a5453c492e0a9c46cd38c23.zip
u-boot-imx-18c4e7f71c3ab7298a5453c492e0a9c46cd38c23.tar.gz
u-boot-imx-18c4e7f71c3ab7298a5453c492e0a9c46cd38c23.tar.bz2
i2c: spd: Extend SPD memory types
Decode DDR, DDR3 and DDR4 memories. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/i2c.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/cmd/i2c.c b/cmd/i2c.c
index b3bb644..18ce789 100644
--- a/cmd/i2c.c
+++ b/cmd/i2c.c
@@ -1141,7 +1141,7 @@ static void decode_bits (u_char const b, char const *str[], int const do_once)
*/
static int do_sdram (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
{
- enum { unknown, EDO, SDRAM, DDR2 } type;
+ enum { unknown, EDO, SDRAM, DDR, DDR2, DDR3, DDR4 } type;
uint chip;
u_char data[128];
@@ -1228,10 +1228,22 @@ static int do_sdram (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
type = SDRAM;
puts ("SDRAM\n");
break;
+ case 7:
+ type = DDR;
+ puts("DDR\n");
+ break;
case 8:
type = DDR2;
puts ("DDR2\n");
break;
+ case 11:
+ type = DDR3;
+ puts("DDR3\n");
+ break;
+ case 12:
+ type = DDR4;
+ puts("DDR4\n");
+ break;
default:
type = unknown;
puts ("unknown\n");