diff mbox series

[2/8] rpi: Add identifier for the new CM4

Message ID 20201119174820.7820-3-nsaenzjulienne@suse.de
State Superseded
Delegated to: Matthias Brugger
Headers show
Series [1/8] rpi: Add identifier for the new RPi400 | expand

Commit Message

Nicolas Saenz Julienne Nov. 19, 2020, 5:48 p.m. UTC
The Raspberry Pi Foundation released the new Compute Module 4which we
want to detect, so we can enable Ethernet on it and know the correct
device tree file name.

Note that this sets the Ethernet option to true since the official CM4
IO board has an Ethernet port. But that might not be the case when using
custom ones.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>

---
---
 board/raspberrypi/rpi/rpi.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Nicolas Saenz Julienne Nov. 20, 2020, 9:01 a.m. UTC | #1
On Thu, 2020-11-19 at 18:48 +0100, Nicolas Saenz Julienne wrote:
> The Raspberry Pi Foundation released the new Compute Module 4which we
> want to detect, so we can enable Ethernet on it and know the correct
> device tree file name.
> 
> Note that this sets the Ethernet option to true since the official CM4
> IO board has an Ethernet port. But that might not be the case when using
> custom ones.
> 
> Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
> 
> ---
> ---
>  board/raspberrypi/rpi/rpi.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
> index ce60a24352..4ffd23c6ac 100644
> --- a/board/raspberrypi/rpi/rpi.c
> +++ b/board/raspberrypi/rpi/rpi.c
> @@ -162,6 +162,11 @@ static const struct rpi_model rpi_models_new_scheme[] = {
>  		DTB_DIR "bcm2711-rpi-4-b.dtb",
>  		true,
>  	},
> +	[0x14] = {
> +		"Compute Modue 4",
			     ^

Typo, should be Module.

Regards,
Nicolas
Matthias Brugger Dec. 1, 2020, 5:08 p.m. UTC | #2
On 19/11/2020 18:48, Nicolas Saenz Julienne wrote:
> The Raspberry Pi Foundation released the new Compute Module 4which we

"Module 4 which we "
(missing space)

> want to detect, so we can enable Ethernet on it and know the correct
> device tree file name.
> 
> Note that this sets the Ethernet option to true since the official CM4
> IO board has an Ethernet port. But that might not be the case when using
> custom ones.
> 
> Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
> 
> ---
> ---
>   board/raspberrypi/rpi/rpi.c | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
> index ce60a24352..4ffd23c6ac 100644
> --- a/board/raspberrypi/rpi/rpi.c
> +++ b/board/raspberrypi/rpi/rpi.c
> @@ -162,6 +162,11 @@ static const struct rpi_model rpi_models_new_scheme[] = {
>   		DTB_DIR "bcm2711-rpi-4-b.dtb",
>   		true,
>   	},
> +	[0x14] = {
> +		"Compute Modue 4",
> +		DTB_DIR "bcm2711-rpi-cm4.dtb",
> +		true,
> +	},
>   };
>   
>   static const struct rpi_model rpi_models_old_scheme[] = {
>
diff mbox series

Patch

diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index ce60a24352..4ffd23c6ac 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -162,6 +162,11 @@  static const struct rpi_model rpi_models_new_scheme[] = {
 		DTB_DIR "bcm2711-rpi-4-b.dtb",
 		true,
 	},
+	[0x14] = {
+		"Compute Modue 4",
+		DTB_DIR "bcm2711-rpi-cm4.dtb",
+		true,
+	},
 };
 
 static const struct rpi_model rpi_models_old_scheme[] = {