flash: fix stm32 flash driver typo's
Change-Id: I37f3fee063d7f8729e057dcfe8904651790439e6 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/745 Tested-by: jenkins Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
This commit is contained in:
parent
055abd0b9c
commit
38e44d1361
|
@ -963,7 +963,7 @@ static int stm32x_probe(struct flash_bank *bank)
|
||||||
|
|
||||||
/* check for early silicon */
|
/* check for early silicon */
|
||||||
if (flash_size_in_kb == 0xffff) {
|
if (flash_size_in_kb == 0xffff) {
|
||||||
/* number of sectors may be incorrrect on early silicon */
|
/* number of sectors may be incorrect on early silicon */
|
||||||
LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 128k flash");
|
LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 128k flash");
|
||||||
flash_size_in_kb = 128;
|
flash_size_in_kb = 128;
|
||||||
}
|
}
|
||||||
|
@ -986,7 +986,7 @@ static int stm32x_probe(struct flash_bank *bank)
|
||||||
|
|
||||||
/* check for early silicon */
|
/* check for early silicon */
|
||||||
if (flash_size_in_kb == 0xffff) {
|
if (flash_size_in_kb == 0xffff) {
|
||||||
/* number of sectors may be incorrrect on early silicon */
|
/* number of sectors may be incorrect on early silicon */
|
||||||
LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 128k flash");
|
LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 128k flash");
|
||||||
flash_size_in_kb = 128;
|
flash_size_in_kb = 128;
|
||||||
}
|
}
|
||||||
|
@ -999,7 +999,7 @@ static int stm32x_probe(struct flash_bank *bank)
|
||||||
|
|
||||||
/* check for early silicon */
|
/* check for early silicon */
|
||||||
if (flash_size_in_kb == 0xffff) {
|
if (flash_size_in_kb == 0xffff) {
|
||||||
/* number of sectors may be incorrrect on early silicon */
|
/* number of sectors may be incorrect on early silicon */
|
||||||
LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 1024k flash");
|
LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 1024k flash");
|
||||||
flash_size_in_kb = 1024;
|
flash_size_in_kb = 1024;
|
||||||
}
|
}
|
||||||
|
|
|
@ -613,14 +613,14 @@ static int stm32x_probe(struct flash_bank *bank)
|
||||||
if ((device_id & 0xfff) == 0x411) {
|
if ((device_id & 0xfff) == 0x411) {
|
||||||
/* check for early silicon */
|
/* check for early silicon */
|
||||||
if (flash_size_in_kb == 0xffff) {
|
if (flash_size_in_kb == 0xffff) {
|
||||||
/* number of sectors may be incorrrect on early silicon */
|
/* number of sectors may be incorrect on early silicon */
|
||||||
LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 1024k flash");
|
LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 1024k flash");
|
||||||
flash_size_in_kb = 1024;
|
flash_size_in_kb = 1024;
|
||||||
}
|
}
|
||||||
} else if ((device_id & 0xfff) == 0x413) {
|
} else if ((device_id & 0xfff) == 0x413) {
|
||||||
/* check for early silicon */
|
/* check for early silicon */
|
||||||
if (flash_size_in_kb == 0xffff) {
|
if (flash_size_in_kb == 0xffff) {
|
||||||
/* number of sectors may be incorrrect on early silicon */
|
/* number of sectors may be incorrect on early silicon */
|
||||||
LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 1024k flash");
|
LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 1024k flash");
|
||||||
flash_size_in_kb = 1024;
|
flash_size_in_kb = 1024;
|
||||||
}
|
}
|
||||||
|
|
|
@ -490,14 +490,14 @@ static int stm32lx_probe(struct flash_bank *bank)
|
||||||
if ((device_id & 0xfff) == 0x416) {
|
if ((device_id & 0xfff) == 0x416) {
|
||||||
/* check for early silicon */
|
/* check for early silicon */
|
||||||
if (flash_size_in_kb == 0xffff) {
|
if (flash_size_in_kb == 0xffff) {
|
||||||
/* number of sectors may be incorrrect on early silicon */
|
/* number of sectors may be incorrect on early silicon */
|
||||||
LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 128k flash");
|
LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 128k flash");
|
||||||
flash_size_in_kb = 128;
|
flash_size_in_kb = 128;
|
||||||
}
|
}
|
||||||
} else if ((device_id & 0xfff) == 0x436) {
|
} else if ((device_id & 0xfff) == 0x436) {
|
||||||
/* check for early silicon */
|
/* check for early silicon */
|
||||||
if (flash_size_in_kb == 0xffff) {
|
if (flash_size_in_kb == 0xffff) {
|
||||||
/* number of sectors may be incorrrect on early silicon */
|
/* number of sectors may be incorrect on early silicon */
|
||||||
LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 384k flash");
|
LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming 384k flash");
|
||||||
flash_size_in_kb = 384;
|
flash_size_in_kb = 384;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue