Skip to content

Commit

Permalink
Update stm32l4x.c
Browse files Browse the repository at this point in the history
Add STM32L496/STM32L4A6 compatibility
  • Loading branch information
pmancele authored May 22, 2017
1 parent 307de6e commit 6bcefea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/flash/nor/stm32l4x.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@ static int stm32l4_probe(struct flash_bank *bank)

/* set max flash size depending on family */
switch (device_id & 0xfff) {
case 0x461:
case 0x415:
max_flash_size_in_kb = 1024;
break;
Expand Down Expand Up @@ -716,8 +717,12 @@ static int get_stm32l4_info(struct flash_bank *bank, char *buf, int buf_size)
const char *device_str;

switch (device_id) {
case 0x461:
device_str = "STM32L496/4A6";
break;

case 0x415:
device_str = "STM32L4xx";
device_str = "STM32L475/476/486";
break;

case 0x435:
Expand Down

0 comments on commit 6bcefea

Please sign in to comment.