Skip to content

Commit

Permalink
Merge pull request riscv-collab#1064 from en-sc/en-sc/from_upstream
Browse files Browse the repository at this point in the history
 Merge up to 04154af from upstream
  • Loading branch information
en-sc authored May 7, 2024
2 parents 6a72b32 + c0791b1 commit ae7ffa4
Show file tree
Hide file tree
Showing 11 changed files with 476 additions and 13 deletions.
6 changes: 5 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,11 @@ PKG_CHECK_MODULES([LIBFTDI], [libftdi1], [
PKG_CHECK_MODULES([LIBFTDI], [libftdi], [use_libftdi=yes], [use_libftdi=no])
])

PKG_CHECK_MODULES([LIBGPIOD], [libgpiod], [use_libgpiod=yes], [use_libgpiod=no])
PKG_CHECK_MODULES([LIBGPIOD], [libgpiod < 2.0], [
use_libgpiod=yes
PKG_CHECK_EXISTS([libgpiod >= 1.5],
[AC_DEFINE([HAVE_LIBGPIOD1_FLAGS_BIAS], [1], [define if libgpiod v1 has line request flags bias])])
], [use_libgpiod=no])

PKG_CHECK_MODULES([LIBJAYLINK], [libjaylink >= 0.2],
[use_libjaylink=yes], [use_libjaylink=no])
Expand Down
9 changes: 7 additions & 2 deletions doc/manual/jtag/drivers/remote_bitbang.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ The read responses are encoded in ASCII as either digit 0 or 1.
If the use_remote_sleep option is set to 'yes', two additional requests may
be sent:

D - Sleep for 1 millisecond
d - Sleep for 1 microsecond
Z - Sleep for 1 millisecond
z - Sleep for 1 microsecond

NOTE: Previously these were specified as 'D' and 'd', which conflicts with the
"SWD write 0 0" command defined above. Adapters that implement Dd for remote
sleep must be updated to work with Zz.


*/
18 changes: 18 additions & 0 deletions doc/openocd.texi
Original file line number Diff line number Diff line change
Expand Up @@ -6805,6 +6805,24 @@ Note that in order for this command to take effect, the target needs to be reset
supported.}
@end deffn

@deffn {Flash Driver} {eneispif}
All versions of the KB1200 microcontrollers from ENE include internal
flash. The eneispif flash driver supports the KB1200 family of devices. The driver
automatically recognizes the specific version's flash parameters and
autoconfigures itself. The flash bank starts at address 0x60000000. An optional additional
parameter sets the address of eneispif controller, with the default address is 0x50101000.

@example

flash bank $_FLASHNAME eneispif 0x60000000 0 0 0 $_TARGETNAME \
0x50101000

# Address defaults to 0x50101000
flash bank $_FLASHNAME eneispif 0x60000000 0 0 0 $_TARGETNAME

@end example
@end deffn

@deffn {Flash Driver} {esirisc}
Members of the eSi-RISC family may optionally include internal flash programmed
via the eSi-TSMC Flash interface. Additional parameters are required to
Expand Down
1 change: 1 addition & 0 deletions src/flash/nor/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ NOR_DRIVERS = \
%D%/dsp5680xx_flash.c \
%D%/efm32.c \
%D%/em357.c \
%D%/eneispif.c \
%D%/esirisc_flash.c \
%D%/faux.c \
%D%/fespi.c \
Expand Down
1 change: 1 addition & 0 deletions src/flash/nor/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ extern const struct flash_driver cfi_flash;
extern const struct flash_driver dsp5680xx_flash;
extern const struct flash_driver efm32_flash;
extern const struct flash_driver em357_flash;
extern const struct flash_driver eneispif_flash;
extern const struct flash_driver esirisc_flash;
extern const struct flash_driver faux_flash;
extern const struct flash_driver fespi_flash;
Expand Down
1 change: 1 addition & 0 deletions src/flash/nor/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ static const struct flash_driver * const flash_drivers[] = {
&dsp5680xx_flash,
&efm32_flash,
&em357_flash,
&eneispif_flash,
&esirisc_flash,
&faux_flash,
&fm3_flash,
Expand Down
Loading

0 comments on commit ae7ffa4

Please sign in to comment.