예제 #1
0
파일: miu.c 프로젝트: kleemajo/iphonelinux
int miu_setup() {
#ifdef CONFIG_IPOD2G
	if(POWER_ID_EPOCH(GET_REG(POWER + POWER_ID)) != chipid_get_power_epoch()) {
#else
	if(POWER_ID_EPOCH(*((uint8_t*)(POWER + POWER_ID))) != 3) {
#endif	
		// Epoch mismatch
		bufferPrintf("miu: epoch mismatch\r\n");
		return -1;
	}

#ifndef CONFIG_IPOD2G
	clock_set_bottom_bits_38100000(1);
#endif
	
	return 0;
}
예제 #2
0
파일: miu.c 프로젝트: c1de0x/iphonelinux
int miu_setup() {
	if(POWER_ID_EPOCH(*((uint8_t*)(POWER + POWER_ID))) != 3) {
		// Epoch mismatch
		return -1;
	}

	clock_set_bottom_bits_38100000(1);

	return 0;
}