Skip to content

Commit 76c5eca

Browse files
authored
Merge pull request #516 from Gadgetoid/patch-hw-tidyup
rpihw.c: Tidyup.
2 parents b55f0ec + 88e8af4 commit 76c5eca

File tree

1 file changed

+52
-54
lines changed

1 file changed

+52
-54
lines changed

rpihw.c

Lines changed: 52 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ static const rpi_hw_t rpi_hw_info[] = {
6969
.videocore_base = VIDEOCORE_BASE_RPI2,
7070
.desc = "Pi 400 - 4GB v1.1"
7171
},
72+
7273
//
7374
// Raspberry Pi 4
7475
//
@@ -163,6 +164,7 @@ static const rpi_hw_t rpi_hw_info[] = {
163164
.videocore_base = VIDEOCORE_BASE_RPI2,
164165
.desc = "Pi 4 Model B - 8GB v1.5"
165166
},
167+
166168
//
167169
// Compute Module 4
168170
//
@@ -194,6 +196,35 @@ static const rpi_hw_t rpi_hw_info[] = {
194196
.videocore_base = VIDEOCORE_BASE_RPI2,
195197
.desc = "Compute Module 4 v1.0 WiFi 8GB"
196198
},
199+
{
200+
.hwver = 0xa03141,
201+
.type = RPI_HWVER_TYPE_PI4,
202+
.periph_base = PERIPH_BASE_RPI4,
203+
.videocore_base = VIDEOCORE_BASE_RPI2,
204+
.desc = "Compute Module 4 Rev 1.1"
205+
},
206+
{
207+
.hwver = 0xb03141,
208+
.type = RPI_HWVER_TYPE_PI4,
209+
.periph_base = PERIPH_BASE_RPI4,
210+
.videocore_base = VIDEOCORE_BASE_RPI2,
211+
.desc = "Compute Module 4 Rev 1.1"
212+
},
213+
{
214+
.hwver = 0xc03141,
215+
.type = RPI_HWVER_TYPE_PI4,
216+
.periph_base = PERIPH_BASE_RPI4,
217+
.videocore_base = VIDEOCORE_BASE_RPI2,
218+
.desc = "Compute Module 4 Rev 1.1"
219+
},
220+
{
221+
.hwver = 0xd03141,
222+
.type = RPI_HWVER_TYPE_PI4,
223+
.periph_base = PERIPH_BASE_RPI4,
224+
.videocore_base = VIDEOCORE_BASE_RPI2,
225+
.desc = "Compute Module 4 Rev 1.1"
226+
},
227+
197228
//
198229
// Model B Rev 1.0
199230
//
@@ -329,6 +360,20 @@ static const rpi_hw_t rpi_hw_info[] = {
329360
.videocore_base = VIDEOCORE_BASE_RPI,
330361
.desc = "Compute Module 1",
331362
},
363+
{
364+
.hwver = 0xa020a0,
365+
.type = RPI_HWVER_TYPE_PI2,
366+
.periph_base = PERIPH_BASE_RPI2,
367+
.videocore_base = VIDEOCORE_BASE_RPI2,
368+
.desc = "Compute Module 3/L3",
369+
},
370+
{
371+
.hwver = 0xa02100,
372+
.type = RPI_HWVER_TYPE_PI2,
373+
.periph_base = PERIPH_BASE_RPI2,
374+
.videocore_base = VIDEOCORE_BASE_RPI2,
375+
.desc = "Compute Module 3+",
376+
},
332377

333378
//
334379
// Pi Zero
@@ -449,6 +494,13 @@ static const rpi_hw_t rpi_hw_info[] = {
449494
.videocore_base = VIDEOCORE_BASE_RPI2,
450495
.desc = "Pi 3 B+",
451496
},
497+
{
498+
.hwver = 0xa32082,
499+
.type = RPI_HWVER_TYPE_PI2,
500+
.periph_base = PERIPH_BASE_RPI2,
501+
.videocore_base = VIDEOCORE_BASE_RPI2,
502+
.desc = "Pi 3 B",
503+
},
452504
{
453505
.hwver = 0xa02082,
454506
.type = RPI_HWVER_TYPE_PI2,
@@ -483,61 +535,7 @@ static const rpi_hw_t rpi_hw_info[] = {
483535
.periph_base = PERIPH_BASE_RPI2,
484536
.videocore_base = VIDEOCORE_BASE_RPI2,
485537
.desc = "Model 3 A+",
486-
},
487-
488-
//
489-
// Pi Compute Module 3
490-
//
491-
{
492-
.hwver = 0xa020a0,
493-
.type = RPI_HWVER_TYPE_PI2,
494-
.periph_base = PERIPH_BASE_RPI2,
495-
.videocore_base = VIDEOCORE_BASE_RPI2,
496-
.desc = "Compute Module 3/L3",
497-
},
498-
//
499-
// Pi Compute Module 3+
500-
//
501-
{
502-
.hwver = 0xa02100,
503-
.type = RPI_HWVER_TYPE_PI2,
504-
.periph_base = PERIPH_BASE_RPI2,
505-
.videocore_base = VIDEOCORE_BASE_RPI2,
506-
.desc = "Compute Module 3+",
507-
},
508-
509-
//ComputeModule 4 Additions
510-
{
511-
.hwver = 0xa03141,
512-
.type = RPI_HWVER_TYPE_PI4,
513-
.periph_base = PERIPH_BASE_RPI4,
514-
.videocore_base = VIDEOCORE_BASE_RPI2,
515-
.desc = "Raspberry Pi Compute Module 4 Rev 1.1"
516-
},
517-
518-
{
519-
.hwver = 0xb03141,
520-
.type = RPI_HWVER_TYPE_PI4,
521-
.periph_base = PERIPH_BASE_RPI4,
522-
.videocore_base = VIDEOCORE_BASE_RPI2,
523-
.desc = "Raspberry Pi Compute Module 4 Rev 1.1"
524-
}, {
525-
.hwver = 0xc03141,
526-
.type = RPI_HWVER_TYPE_PI4,
527-
.periph_base = PERIPH_BASE_RPI4,
528-
.videocore_base = VIDEOCORE_BASE_RPI2,
529-
.desc = "Raspberry Pi Compute Module 4 Rev 1.1"
530-
},
531-
532-
{
533-
.hwver = 0xd03141,
534-
.type = RPI_HWVER_TYPE_PI4,
535-
.periph_base = PERIPH_BASE_RPI4,
536-
.videocore_base = VIDEOCORE_BASE_RPI2,
537-
.desc = "Raspberry Pi Compute Module 4 Rev 1.1"
538538
}
539-
540-
541539
};
542540

543541

0 commit comments

Comments
 (0)