* [U-Boot] [PATCH] rpi: Complete table of models with new revision code scheme
@ 2018-04-06 8:45 Jonathan Gray
2018-04-06 9:04 ` [U-Boot] " Alexander Graf
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Gray @ 2018-04-06 8:45 UTC (permalink / raw)
To: u-boot
In the model table for the new revision code encoding documented in
https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md
add the entries for old models with the new scheme and add CM3 which
only appears in the new scheme.
A device tree for CM3 is not currently upstreamed in linux. When that
happens the name will likely have to be adjusted in the table.
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
---
board/raspberrypi/rpi/rpi.c | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index 279a9c3cda..de8e308f6c 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -91,11 +91,36 @@ static const struct rpi_model rpi_model_unknown = {
};
static const struct rpi_model rpi_models_new_scheme[] = {
+ [0x0] = {
+ "Model A",
+ DTB_DIR "bcm2835-rpi-a.dtb",
+ false,
+ },
+ [0x1] = {
+ "Model B",
+ DTB_DIR "bcm2835-rpi-b.dtb",
+ true,
+ },
+ [0x2] = {
+ "Model A+",
+ DTB_DIR "bcm2835-rpi-a-plus.dtb",
+ false,
+ },
+ [0x3] = {
+ "Model B+",
+ DTB_DIR "bcm2835-rpi-b-plus.dtb",
+ true,
+ },
[0x4] = {
"2 Model B",
DTB_DIR "bcm2836-rpi-2-b.dtb",
true,
},
+ [0x6] = {
+ "Compute Module",
+ DTB_DIR "bcm2835-rpi-cm.dtb",
+ false,
+ },
[0x8] = {
"3 Model B",
DTB_DIR "bcm2837-rpi-3-b.dtb",
@@ -106,6 +131,11 @@ static const struct rpi_model rpi_models_new_scheme[] = {
DTB_DIR "bcm2835-rpi-zero.dtb",
false,
},
+ [0xA] = {
+ "Compute Module 3",
+ DTB_DIR "bcm2837-rpi-cm3.dtb",
+ false,
+ },
[0xC] = {
"Zero W",
DTB_DIR "bcm2835-rpi-zero-w.dtb",
--
2.16.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] rpi: Complete table of models with new revision code scheme
2018-04-06 8:45 [U-Boot] [PATCH] rpi: Complete table of models with new revision code scheme Jonathan Gray
@ 2018-04-06 9:04 ` Alexander Graf
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2018-04-06 9:04 UTC (permalink / raw)
To: u-boot
> In the model table for the new revision code encoding documented in
> https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md
> add the entries for old models with the new scheme and add CM3 which
> only appears in the new scheme.
>
> A device tree for CM3 is not currently upstreamed in linux. When that
> happens the name will likely have to be adjusted in the table.
>
> Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Thanks, applied to rpi-next
Alex
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-06 9:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-06 8:45 [U-Boot] [PATCH] rpi: Complete table of models with new revision code scheme Jonathan Gray
2018-04-06 9:04 ` [U-Boot] " Alexander Graf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.