From 3541014d482636e61b3e08d131712cc172a5708d Mon Sep 17 00:00:00 2001 From: Mathieu Kardous Date: Thu, 15 Sep 2022 11:12:03 -0400 Subject: [PATCH] Add Support for BRD4319A --- examples/chef/efr32/BUILD.gn | 4 ++-- examples/light-switch-app/efr32/BUILD.gn | 4 ++-- examples/lighting-app/efr32/BUILD.gn | 4 ++-- examples/lock-app/efr32/BUILD.gn | 4 ++-- examples/thermostat/efr32/BUILD.gn | 4 ++-- examples/window-app/efr32/BUILD.gn | 4 ++-- third_party/silabs/efr32_sdk.gni | 9 ++++++--- third_party/silabs/silabs_board.gni | 3 +++ 8 files changed, 21 insertions(+), 15 deletions(-) diff --git a/examples/chef/efr32/BUILD.gn b/examples/chef/efr32/BUILD.gn index b0b64075d85e15..0458f433b7ede4 100644 --- a/examples/chef/efr32/BUILD.gn +++ b/examples/chef/efr32/BUILD.gn @@ -92,9 +92,9 @@ chip_data_model("chef-common") { is_server = true } -# ThunderBoards and Explorer Kit (No LCD) +# ThunderBoards, Explorer Kit and MGM240L do not support LCD (No LCD) if (silabs_board == "BRD4166A" || silabs_board == "BRD2601B" || - silabs_board == "BRD2703A") { + silabs_board == "BRD2703A" || silabs_board == "BRD4319A") { show_qr_code = false disable_lcd = true } diff --git a/examples/light-switch-app/efr32/BUILD.gn b/examples/light-switch-app/efr32/BUILD.gn index 3cbfbb9b48d8af..f9a87873a5b36d 100644 --- a/examples/light-switch-app/efr32/BUILD.gn +++ b/examples/light-switch-app/efr32/BUILD.gn @@ -85,9 +85,9 @@ if (chip_enable_wifi) { enable_openthread_cli = false } -# ThunderBoards and Explorer Kit (No LCD) +# ThunderBoards, Explorer Kit and MGM240L do not support LCD (No LCD) if (silabs_board == "BRD4166A" || silabs_board == "BRD2601B" || - silabs_board == "BRD2703A") { + silabs_board == "BRD2703A" || silabs_board == "BRD4319A") { show_qr_code = false disable_lcd = true } diff --git a/examples/lighting-app/efr32/BUILD.gn b/examples/lighting-app/efr32/BUILD.gn index 47837c6305ee93..4a9ffa08a3a298 100644 --- a/examples/lighting-app/efr32/BUILD.gn +++ b/examples/lighting-app/efr32/BUILD.gn @@ -85,9 +85,9 @@ if (chip_enable_wifi) { enable_openthread_cli = false } -# ThunderBoards and Explorer Kit (No LCD) +# ThunderBoards, Explorer Kit and MGM240L do not support LCD (No LCD) if (silabs_board == "BRD4166A" || silabs_board == "BRD2601B" || - silabs_board == "BRD2703A") { + silabs_board == "BRD2703A" || silabs_board == "BRD4319A") { show_qr_code = false disable_lcd = true } diff --git a/examples/lock-app/efr32/BUILD.gn b/examples/lock-app/efr32/BUILD.gn index 148c1d99b4ba04..77df63b61c1868 100644 --- a/examples/lock-app/efr32/BUILD.gn +++ b/examples/lock-app/efr32/BUILD.gn @@ -85,9 +85,9 @@ if (chip_enable_wifi) { enable_openthread_cli = false } -# ThunderBoards and Explorer Kit (No LCD) +# ThunderBoards, Explorer Kit and MGM240L do not support LCD (No LCD) if (silabs_board == "BRD4166A" || silabs_board == "BRD2601B" || - silabs_board == "BRD2703A") { + silabs_board == "BRD2703A" || silabs_board == "BRD4319A") { show_qr_code = false disable_lcd = true } diff --git a/examples/thermostat/efr32/BUILD.gn b/examples/thermostat/efr32/BUILD.gn index c057647faed5c1..3c4190218c68c6 100644 --- a/examples/thermostat/efr32/BUILD.gn +++ b/examples/thermostat/efr32/BUILD.gn @@ -82,9 +82,9 @@ if (chip_enable_wifi) { enable_openthread_cli = false } -# ThunderBoards and Explorer Kit (No LCD) +# ThunderBoards, Explorer Kit and MGM240L do not support LCD (No LCD) if (silabs_board == "BRD4166A" || silabs_board == "BRD2601B" || - silabs_board == "BRD2703A") { + silabs_board == "BRD2703A" || silabs_board == "BRD4319A") { show_qr_code = false disable_lcd = true } diff --git a/examples/window-app/efr32/BUILD.gn b/examples/window-app/efr32/BUILD.gn index 9d38580bfba775..5b781828462497 100644 --- a/examples/window-app/efr32/BUILD.gn +++ b/examples/window-app/efr32/BUILD.gn @@ -81,9 +81,9 @@ if (chip_enable_wifi) { enable_openthread_cli = false } -# ThunderBoards and Explorer Kit (No LCD) +# ThunderBoards, Explorer Kit and MGM240L do not support LCD (No LCD) if (silabs_board == "BRD4166A" || silabs_board == "BRD2601B" || - silabs_board == "BRD2703A") { + silabs_board == "BRD2703A" || silabs_board == "BRD4319A") { show_qr_code = false disable_lcd = true } diff --git a/third_party/silabs/efr32_sdk.gni b/third_party/silabs/efr32_sdk.gni index fb49e050d291f2..22fa2d0aac59b9 100644 --- a/third_party/silabs/efr32_sdk.gni +++ b/third_party/silabs/efr32_sdk.gni @@ -33,8 +33,8 @@ declare_args() { use_external_flash = true } -# Explorer Kit does not have external flash -if (silabs_board == "BRD2703A") { +# Explorer Kit and MGM240L do not have external flash +if (silabs_board == "BRD2703A" || silabs_board == "BRD4319A") { use_external_flash = false } @@ -42,7 +42,8 @@ if (silabs_board == "BRD2703A") { use_wstk_leds = true # Board does not support LEDs and Buttons at the same time -if (silabs_board == "BRD4317A" || silabs_board == "BRD4316A") { +if (silabs_board == "BRD4317A" || silabs_board == "BRD4316A" || + silabs_board == "BRD4319A") { use_wstk_leds = false } @@ -322,6 +323,8 @@ template("efr32_sdk") { libs += [ "${sdk_support_root}/platform/radio/rail_lib/autogen/librail_release/librail_config_mgm240pb32vna_gcc.a" ] } else if (silabs_mcu == "MGM240PB22VNA") { libs += [ "${sdk_support_root}/platform/radio/rail_lib/autogen/librail_release/librail_config_mgm240pb22vna_gcc.a" ] + } else if (silabs_mcu == "MGM240L022RNF") { + libs += [ "${sdk_support_root}/platform/radio/rail_lib/autogen/librail_release/librail_config_mgm240l022rnf_gcc.a" ] } defines += [ diff --git a/third_party/silabs/silabs_board.gni b/third_party/silabs/silabs_board.gni index 2bfa9c8edbe7a5..d819872b44939d 100644 --- a/third_party/silabs/silabs_board.gni +++ b/third_party/silabs/silabs_board.gni @@ -87,6 +87,9 @@ if (silabs_board == "BRD4304A") { } else if (silabs_board == "BRD4317A") { silabs_family = "mgm24" silabs_mcu = "MGM240PB32VNA" +} else if (silabs_board == "BRD4319A") { + silabs_family = "mgm24" + silabs_mcu = "MGM240L022RNF" } else { print( "Please provide a valid value for EFR32_BOARD env variable (currently supported BRD4304A, BRD4161A, BRD4163A, BRD4164A BRD4166A, BRD4170A, BRD4186C, BRD4187C, BRD2601B, BRD2703A, BRD4317A)")