/* sys_ccu_apb - Set the freq of the apb @freq: freq want to set  */
void __startup sys_ccu_apb(uint32_t dto, uint32_t freq)
/* sys_ccu_apb - Set the freq of the apb @freq: freq want to set  */
void __startup sys_ccu_apb(uint32_t dto, uint32_t freq)
{
    uint32_t val;
    dto_freq_set(10, dto, freq);
    val = read32(GCTL_BASE + GX6605S_SOURCE_SEL0);
    val |= GX6605S_SOURCE_SEL0_APB;
    write32(GCTL_BASE + GX6605S_SOURCE_SEL0, val);
    dto_freq_set(11, dto, freq);
    val = read32(GCTL_BASE + GX6605S_SOURCE_SEL0);
    val |= GX6605S_SOURCE_SEL0_UART;
    write32(GCTL_BASE + GX6605S_SOURCE_SEL0, val);
}