- // should really only happen once, on startup..
- readpng(g_screen_ptr, "skin/background.png", READPNG_BG);
+ case SOCID_MMSP2:
+ mmsp2_init();
+ default_cpu_clock = 200;
+ gp2x_dev_id = GP2X_DEV_GP2X;
+ break;
+ case SOCID_POLLUX:
+ pollux_init();
+ default_cpu_clock = 533;
+ f = fopen("/dev/accel", "rb");
+ if (f) {
+ printf("detected Caanoo\n");
+ gp2x_dev_id = GP2X_DEV_CAANOO;
+ fclose(f);
+ }
+ else {
+ printf("detected Wiz\n");
+ gp2x_dev_id = GP2X_DEV_WIZ;
+ }
+ break;
+ default:
+ printf("could not recognize SoC.\n");
+ break;