Skip to content

Commit

Permalink
drivers: spip: add npcm4xx spip driver to support spi flash access
Browse files Browse the repository at this point in the history
add npcm4xx spip driver to support spi flash access.

only support single mode read/write spi command.

increase main stack size to 4096 to match openbic reference platform.

Signed-off-by: cpchiang <[email protected]>
  • Loading branch information
cpchiang committed Aug 24, 2023
1 parent 88666c8 commit c11b26d
Show file tree
Hide file tree
Showing 10 changed files with 332 additions and 146 deletions.
6 changes: 3 additions & 3 deletions boards/arm/npcm400f_evb/fun_def_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ FUN_DEFINE(DT_NODELABEL(pinctrl_td4p_default), TD4P)
FUN_DEFINE(DT_NODELABEL(pinctrl_vin3_default), VIN3)
#endif

#if DT_NODE_HAS_STATUS(DT_NODELABEL(spip), okay) && CONFIG_SPIP_NPCM4XX
FUN_DEFINE(DT_NODELABEL(pinctrl_spip_default), SPIP_CS, SPIP_SCLK, SPIP_DIO0, SPIP_DIO1)
FUN_DEFINE(DT_NODELABEL(pinctrl_spip_quad), SPIP_DIO2, SPIP_DIO3)
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spip1), okay) && CONFIG_SPIP_NPCM4XX
FUN_DEFINE(DT_NODELABEL(pinctrl_spip1_default), SPIP1_CS, SPIP1_SCLK, SPIP1_DIO0, SPIP1_DIO1)
FUN_DEFINE(DT_NODELABEL(pinctrl_spip1_quad), SPIP1_DIO2, SPIP1_DIO3)
#endif

#if DT_NODE_HAS_STATUS(DT_NODELABEL(i3c0), okay) && CONFIG_I3C_NPCM4XX
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/npcm400f_evb/npcm400f_evb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
&pinctrl_vin3_default>; /* VIN3 - D6 */
};

&spip {
&spip1 {
status = "okay";
};

Expand Down
2 changes: 1 addition & 1 deletion boards/arm/npcm400f_evb/npcm400f_evb_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=48000000
CONFIG_XIP=y
CONFIG_STACK_SENTINEL=y
# [main stack size default: 1024]
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_NO_OPTIMIZATIONS=y
CONFIG_HEAP_MEM_POOL_SIZE=16384

Expand Down
Loading

0 comments on commit c11b26d

Please sign in to comment.