Skip to content

Commit

Permalink
flash/bluenrg-x: Add STM32 device names to BlueNRG devices
Browse files Browse the repository at this point in the history
BlueNRG-LP -> STM32WB07
BlueNRG-LPS -> STM32WB05
BlueNRG-LPF -> STM32WB09

Signed-off-by: bouzazif <[email protected]>
Reviewed-by: Tarek BOCHKATI <[email protected]>
  • Loading branch information
FBOSTM authored and tarek-bochkati committed Dec 3, 2024
1 parent 89b053b commit b3fe75f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/flash/nor/bluenrg-x.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ static const struct flash_ctrl_priv_data flash_priv_data_lp = {
.flash_regs_base = 0x40001000,
.flash_page_size = 2048,
.jtag_idcode = 0x0201E041,
.part_name = "BLUENRG-LP",
.part_name = "STM32WB07 (BLUENRG-LP)",
};

static const struct flash_ctrl_priv_data flash_priv_data_lps = {
Expand All @@ -74,7 +74,7 @@ static const struct flash_ctrl_priv_data flash_priv_data_lps = {
.flash_regs_base = 0x40001000,
.flash_page_size = 2048,
.jtag_idcode = 0x02028041,
.part_name = "BLUENRG-LPS",
.part_name = "STM32WB05 (BLUENRG-LPS)",
};

static const struct flash_ctrl_priv_data flash_priv_data_lpf = {
Expand All @@ -84,7 +84,7 @@ static const struct flash_ctrl_priv_data flash_priv_data_lpf = {
.flash_regs_base = 0x40001000,
.flash_page_size = 2048,
.jtag_idcode = 0x02032041,
.part_name = "BLUENRG-LPF",
.part_name = "STM32WB09 (BLUENRG-LPF)",
};
struct bluenrgx_flash_bank {
bool probed;
Expand Down Expand Up @@ -405,7 +405,6 @@ static int bluenrgx_probe(struct flash_bank *bank)
return retval;
}


/* Default device is BlueNRG-1 */
bluenrgx_info->flash_ptr = &flash_priv_data_1;
bank->base = flash_priv_data_1.flash_base;
Expand Down

0 comments on commit b3fe75f

Please sign in to comment.