/* sys_ccu_ahb - Set the freq of the ahb @freq: freq want to set  */
void __startup sys_ccu_ahb(uint32_t cpu, uint32_t freq)
/* sys_ccu_ahb - Set the freq of the ahb @freq: freq want to set  */
void __startup sys_ccu_ahb(uint32_t cpu, uint32_t freq)
{
    uint32_t val;
    val = read32(GCTL_BASE + GX6605S_SOURCE_SEL1);
    val &= ~(0x0f << 28);
    val |= (7 & 0x0f) << 28;
    write32(GCTL_BASE + GX6605S_SOURCE_SEL1, val);
    val = read32(GCTL_BASE + GX6605S_SOURCE_SEL0);
    val |= GX6605S_SOURCE_SEL0_CPU;
    write32(GCTL_BASE + GX6605S_SOURCE_SEL0, val);
}