diff --git a/bsps/powerpc/mvme3100/start/bspstart.c b/bsps/powerpc/mvme3100/start/bspstart.c index f27304c144..4df6f5326a 100644 --- a/bsps/powerpc/mvme3100/start/bspstart.c +++ b/bsps/powerpc/mvme3100/start/bspstart.c @@ -52,6 +52,8 @@ extern unsigned long __rtems_end[]; extern unsigned ppc_exc_lock_std, ppc_exc_gpr3_std; +extern bool _IO_All_drivers_initialized; + /* * Copy Additional boot param passed by boot loader */ @@ -249,7 +251,7 @@ VpdBufRec vpdData [] = { printk("CPU 0x%x - rev 0x%x\n", myCpu, myCpuRevision); #ifdef SHOW_MORE_INIT_SETTINGS - printk("Additionnal boot options are %s\n", BSP_commandline_string); + printk("Additional boot options are %s\n", BSP_commandline_string); printk("Initial system stack at %" PRIxPTR "\n", (uintptr_t) stack); #endif @@ -431,7 +433,15 @@ void bsp_start( void ) static void mvme3100_i2c_initialize(void) { + + printk("-------- call BSP_i2c_initialize() with _IO_All_drivers_initialized = true\n"); + printk("assumes that major 0 is assigned to i2c ---------\n"); + + printk("now trying to i2c intialized\n"); + _IO_All_drivers_initialized = true; BSP_i2c_initialize(); + _IO_All_drivers_initialized = false; + printk("now i2c intialized 2\n"); } RTEMS_SYSINIT_ITEM( diff --git a/bsps/shared/dev/rtc/ds1375.c b/bsps/shared/dev/rtc/ds1375.c index e51744355f..dbb599ae19 100644 --- a/bsps/shared/dev/rtc/ds1375.c +++ b/bsps/shared/dev/rtc/ds1375.c @@ -434,7 +434,6 @@ bool rtc_ds1375_device_probe( ) { int fd; - if ( ( fd = getfd( minor ) ) < 0 ) { STDIOSAFE( "ds1375_probe (open): %s\n", strerror( errno ) ); return false; diff --git a/cpukit/sapi/src/io.c b/cpukit/sapi/src/io.c index 3a3780610e..527d9c082b 100644 --- a/cpukit/sapi/src/io.c +++ b/cpukit/sapi/src/io.c @@ -50,6 +50,9 @@ void _IO_Initialize_all_drivers( void ) _IO_All_drivers_initialized = true; - for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) + //for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) + + //printk(" _IO_Initialize_all_drivers starts from major=1 !!!\n"); + for ( major=1 ; major < _IO_Number_of_drivers ; major ++ ) (void) rtems_io_initialize( major, 0, NULL ); } diff --git a/spec/build/bsps/powerpc/mvme3100/bspmvme3100.yml b/spec/build/bsps/powerpc/mvme3100/bspmvme3100.yml index 1667c1617a..dc04e4dd36 100644 --- a/spec/build/bsps/powerpc/mvme3100/bspmvme3100.yml +++ b/spec/build/bsps/powerpc/mvme3100/bspmvme3100.yml @@ -64,6 +64,7 @@ source: - bsps/powerpc/mvme3100/pci/detect_host_bridge.c - bsps/powerpc/mvme3100/rtc/todcfg.c - bsps/powerpc/mvme3100/start/bspstart.c +- bsps/powerpc/mvme3100/start/bspclean.c - bsps/powerpc/mvme3100/start/misc.c - bsps/powerpc/shared/btimer/btimer-ppc-dec.c - bsps/powerpc/shared/cache/cache.c