gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:out_b from mtkernel_3/kernel/sysdepend/cpu/rx231/cpu_clock.c (0.00 seconds)
mtkernel_3
kernel/sysdepend/cpu/rx231/cpu_clock.c - 2.3KB - 68 lines
34: 
35:         out_b(SYSTEM_MOSCWTCR, 0x05);                  /* LOCO(4MHz)*16384cyc=4.096ms(Over 3ms) */
36:         out_b(SYSTEM_MOSCCR, 0x00);                    /* Enable Main Clock */
37: 
40: out_h(SYSTEM_PLLCR, 0x1A01); /* PLL 8MHz/2*13.5=54MHz */ 41: out_b(SYSTEM_PLLCR2, 0x00); /* Enable PLL */ 42: while(!(in_b(SYSTEM_OSCOVFSR) & 0x04)); /* Wait PLL Stabilization */
44: out_h(SYSTEM_UPLLCR, 0x0B11); /* UPLL 8MHz/1*6=48MHz */ 45: out_b(SYSTEM_UPLLCR2, 0x00); /* Enable UPLL */ 46: while( !(in_b(SYSTEM_OSCOVFSR) & 0x20)); /* Wait UPLL Stabilization */ 47: 48: out_b(SYSTEM_OPCCR, 0x00); /* High Speed Mode */ 49: while( in_b(SYSTEM_OPCCR) & 0x10); /* Wait Transition Completed */ 50: 51: out_b(SYSTEM_MEMWAIT, 0x01); /* Memory Wait States */ 52:
55: 56: out_b(SYSTEM_LOCOCR, 0x01); /* Disable LOCO */ 57: