From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 5/6] ddr_spd: provide common SPD type
Date: Mon, 4 Mar 2019 12:38:22 +0100 [thread overview]
Message-ID: <20190304113823.21535-6-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20190304113823.21535-1-s.hauer@pengutronix.de>
Provide a common struct type for the different SPD EEPROM types. Can be
used to pass around SPD data without specifying the DDR type.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
include/ddr_spd.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/include/ddr_spd.h b/include/ddr_spd.h
index 95d0eb04b6..6e63d90e5e 100644
--- a/include/ddr_spd.h
+++ b/include/ddr_spd.h
@@ -499,6 +499,16 @@ struct ddr4_spd_eeprom {
uint8_t user[512-384]; /* 384~511 End User Programmable */
};
+struct spd_eeprom {
+ union {
+ struct ddr1_spd_eeprom ddr1;
+ struct ddr2_spd_eeprom ddr2;
+ struct ddr3_spd_eeprom ddr3;
+ struct ddr4_spd_eeprom ddr4;
+ uint8_t data[512];
+ };
+};
+
/*
* Byte 2 Fundamental Memory Types.
*/
--
2.20.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2019-03-04 11:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-04 11:38 [PATCH 0/6] SPD EEPROM improvements Sascha Hauer
2019-03-04 11:38 ` [PATCH 1/6] crc: import crc_itu_t() from kernel Sascha Hauer
2019-03-04 11:50 ` Sam Ravnborg
2019-03-04 13:19 ` Sascha Hauer
2019-03-04 11:38 ` [PATCH 2/6] crc: Add PBL variant for crc_itu_t() Sascha Hauer
2019-03-04 11:38 ` [PATCH 3/6] ddr_spd: Update from U-Boot Sascha Hauer
2019-03-04 11:38 ` [PATCH 4/6] ddr_spd: Add function to read eeprom Sascha Hauer
2019-03-04 11:53 ` Sam Ravnborg
2019-03-04 12:02 ` Sam Ravnborg
2019-03-04 13:22 ` Sascha Hauer
2019-03-04 11:38 ` Sascha Hauer [this message]
2019-03-04 11:38 ` [PATCH 6/6] ddr_spd: Enable in PBL Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190304113823.21535-6-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox