Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void __init acpu_freq_tbl_fixup(void)
- {
- void __iomem *ct_csr_base;
- uint32_t tcsr_spare2;
- unsigned int max_acpu_khz;
- unsigned int i;
- ct_csr_base = ioremap(CT_CSR_PHYS, PAGE_SIZE);
- BUG_ON(ct_csr_base == NULL);
- tcsr_spare2 = readl(TCSR_SPARE2_ADDR);
- /* Check if the register is supported and meaningful. */
- if ((tcsr_spare2 & 0xF000) != 0xA000) {
- pr_info("Efuse data on Max ACPU freq not present.\n");
- goto skip_efuse_fixup;
- }
- switch (tcsr_spare2 & 0xF0) {
- case 0x70:
- max_acpu_khz = 768000;
- break;
- case 0x30:
- case 0x00:
- #ifdef CONFIG_HTCLEO_EXOVERCLOCK
- max_acpu_khz = 1305600;
- #elif CONFIG_HTCLEO_OVERCLOCK
- max_acpu_khz = 1190400;
- #else
- max_acpu_khz = 998400;
- #endif
- break;
- case 0x10:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement