static void unipro_backend_init(void) { int i; /* unipro_init() will initialize any non-display, non-camera CPorts */ unipro_init(); /* Now register a driver for those CPorts */ for (i = 0; i < unipro_cport_count(); i++) { /* These cports are already allocated for display and camera */ if (i == CPORTID_CDSI0 || i == CPORTID_CDSI1) continue; unipro_driver_register(&unipro_driver, i); } }
int bringup_entry(int argc, char *argv[]) { unipro_init(); tsb_unipro_mbox_send(TSB_MAIL_READY_OTHER); return nsh_main(argc, argv); }
int bringup_entry(int argc, char *argv[]) { unipro_init(); return nsh_main(argc, argv); }
void unipro_init_with_event_handler(unipro_event_handler_t handler) { unipro_set_event_handler(handler); unipro_init(); }