Skip to content

Commit dd17582

Browse files
ene-steventom-van
authored andcommitted
flash/nor/eneispif: support ENE KB1200 ispi flash
Change-Id: I03bccceb1956ee121e6a3728b7d647ef1262fa23 Signed-off-by: Steven Chang <steven@ene.com.tw> Reviewed-on: https://review.openocd.org/c/openocd/+/8136 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
1 parent a35e254 commit dd17582

File tree

5 files changed

+454
-0
lines changed

5 files changed

+454
-0
lines changed

doc/openocd.texi

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6776,6 +6776,24 @@ Note that in order for this command to take effect, the target needs to be reset
67766776
supported.}
67776777
@end deffn
67786778

6779+
@deffn {Flash Driver} {eneispif}
6780+
All versions of the KB1200 microcontrollers from ENE include internal
6781+
flash. The eneispif flash driver supports the KB1200 family of devices. The driver
6782+
automatically recognizes the specific version's flash parameters and
6783+
autoconfigures itself. The flash bank starts at address 0x60000000. An optional additional
6784+
parameter sets the address of eneispif controller, with the default address is 0x50101000.
6785+
6786+
@example
6787+
6788+
flash bank $_FLASHNAME eneispif 0x60000000 0 0 0 $_TARGETNAME \
6789+
0x50101000
6790+
6791+
# Address defaults to 0x50101000
6792+
flash bank $_FLASHNAME eneispif 0x60000000 0 0 0 $_TARGETNAME
6793+
6794+
@end example
6795+
@end deffn
6796+
67796797
@deffn {Flash Driver} {esirisc}
67806798
Members of the eSi-RISC family may optionally include internal flash programmed
67816799
via the eSi-TSMC Flash interface. Additional parameters are required to

src/flash/nor/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ NOR_DRIVERS = \
2828
%D%/dsp5680xx_flash.c \
2929
%D%/efm32.c \
3030
%D%/em357.c \
31+
%D%/eneispif.c \
3132
%D%/esirisc_flash.c \
3233
%D%/faux.c \
3334
%D%/fespi.c \

src/flash/nor/driver.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ extern const struct flash_driver cfi_flash;
256256
extern const struct flash_driver dsp5680xx_flash;
257257
extern const struct flash_driver efm32_flash;
258258
extern const struct flash_driver em357_flash;
259+
extern const struct flash_driver eneispif_flash;
259260
extern const struct flash_driver esirisc_flash;
260261
extern const struct flash_driver faux_flash;
261262
extern const struct flash_driver fespi_flash;

src/flash/nor/drivers.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ static const struct flash_driver * const flash_drivers[] = {
3333
&dsp5680xx_flash,
3434
&efm32_flash,
3535
&em357_flash,
36+
&eneispif_flash,
3637
&esirisc_flash,
3738
&faux_flash,
3839
&fm3_flash,

0 commit comments

Comments
 (0)