File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,8 @@ const struct device *gecko_flash_dev = NULL;
9090#error Unsupported flash driver
9191#endif
9292
93+ #define GECKO_FLASH_DEVICE DT_NODE_FULL_NAME(DT_INST(0, silabs_gecko_flash_controller))
94+
9395extern const struct device * ext_flash_dev ;
9496extern const struct device * gecko_flash_dev ;
9597extern int get_gecko_fw_version (void );
@@ -2359,13 +2361,13 @@ void tmo_shell_main (void)
23592361 printf ("SPI NOR external flash driver %s ready!\n" , FLASH_DEVICE );
23602362 }
23612363
2362- gecko_flash_dev = device_get_binding ("FLASH_CTRL" );
2363- if (!gecko_flash_dev ) {
2364- printf ("\nFLASH_CTRL : Device driver FLASH_CTRL not found\n" );
2365- }
2366- else {
2367- printf ("Gecko flash driver FLASH_CTRL ready!\n" );
2368- }
2364+ gecko_flash_dev = device_get_binding (GECKO_FLASH_DEVICE );
2365+ if (!gecko_flash_dev ) {
2366+ printf ("\nGECKO_FLASH_DEVICE : Device driver GECKO_FLASH_DEVICE not found\n" );
2367+ }
2368+ else {
2369+ printf ("Gecko flash driver GECKO_FLASH_DEVICE ready!\n" );
2370+ }
23692371
23702372 // mount the flash file system
23712373 mountfs ();
You can’t perform that action at this time.
0 commit comments