7 #include <soc/lcc-reg.h>
59 { 1024000, 4, 1, 96, 8 },
60 { 1411200, 4, 2, 139, 8 },
61 { 1536000, 4, 1, 64, 8 },
62 { 2048000, 4, 1, 48, 8 },
63 { 2116800, 4, 2, 93, 8 },
64 { 2304000, 4, 2, 85, 8 },
65 { 2822400, 4, 6, 209, 8 },
66 { 3072000, 4, 1, 32, 8 },
67 { 3175200, 4, 1, 31, 8 },
68 { 4096000, 4, 1, 24, 8 },
69 { 4233600, 4, 9, 209, 8 },
70 { 4608000, 4, 3, 64, 8 },
71 { 5644800, 4, 12, 209, 8 },
72 { 6144000, 4, 1, 16, 8 },
73 { 6350400, 4, 2, 31, 8 },
74 { 8192000, 4, 1, 12, 8 },
75 { 8467200, 4, 18, 209, 8 },
76 { 9216000, 4, 3, 32, 8 },
77 { 11289600, 4, 24, 209, 8 },
78 { 12288000, 4, 1, 8, 8 },
79 { 12700800, 4, 27, 209, 8 },
80 { 13824000, 4, 9, 64, 8 },
81 { 16384000, 4, 1, 6, 8 },
82 { 16934400, 4, 41, 238, 8 },
83 { 18432000, 4, 3, 16, 8 },
84 { 22579200, 2, 24, 209, 8 },
85 { 24576000, 4, 1, 4, 8 },
86 { 27648000, 4, 9, 32, 8 },
87 { 33868800, 4, 41, 119, 8 },
88 { 36864000, 4, 3, 8, 8 },
89 { 45158400, 1, 24, 209, 8 },
90 { 49152000, 4, 1, 2, 8 },
91 { 50803200, 1, 27, 209, 8 },
static void write32(void *addr, uint32_t val)
static uint32_t read32(const void *addr)
#define printk(level,...)
void mdelay(unsigned int msecs)
#define LCC_PLL_PCLK_SRC_PRI
#define LCC_AHBIX_MD_NOT_2D_VAL_MASK
#define LCC_AHBIX_NS_MNC_CLK_ENABLE
#define LCC_AHBIX_MD_M_VAL_SHIFT
#define LCC_PLL0_CFG_LV_MAIN_ENABLE
#define LCC_AHBIX_NS_MNC_MODE_DUAL
#define LCC_MI2S_NS_PREDIV_DIV4
#define LCC_AHBIX_NS_PREDIV_BYPASS
#define LCC_MI2S_NS_MNC_ENABLE
#define LCC_MI2S_NS_MNC_MODE_DUAL
#define LCC_MI2S_STAT_OSR_CLK_MASK
#define LCC_AHBIX_STAT_AIF_CLK_MASK
#define LCC_PLL0_STAT_ACTIVE_MASK
#define LCC_MI2S_MD_M_VAL_SHIFT
#define LCC_MI2S_NS_OSR_CXC_ENABLE
#define LCC_MI2S_NS_N_VAL_SHIFT
#define MSM_LPASS_LCC_BASE
#define LCC_AHBIX_MD_M_VAL_MASK
#define LCC_MI2S_MD_NOT_2D_VAL_SHIFT
#define LCC_MI2S_MD_M_VAL_MASK
#define LCC_PLL0_MODE_LOCK_CNT_MASK
#define LCC_PLL0_MODE_BIAS_CNT_SHIFT
#define LCC_PLL0_MODE_REG
#define LCC_AHBIX_NS_MN_SRC_LPA
#define LCC_MI2S_NS_MNC_CLK_ENABLE
#define LCC_PLL0_CFG_FRAC_ENABLE
#define LCC_MI2S_NS_PREDIV_BYPASS
#define LCC_MI2S_MD_NOT_2D_VAL_MASK
#define LCC_MI2S_NS_PREDIV_DIV2
#define LCC_MI2S_NS_BIT_DIV_DIV4
#define LCC_AHBIX_NS_CRC_ENABLE
#define LCC_MI2S_STAT_BIT_CLK_MASK
#define LCC_AHBIX_NS_GFM_SEL_MNC
#define LCC_PLL0_MODE_FSM_VOTE_ENABLE
#define LCC_AHBIX_NS_MNC_ENABLE
#define GCC_PLL_APCS_PLL4_ENABLE
#define LCC_PLL0_MODE_LOCK_CNT_SHIFT
#define LCC_MI2S_NS_MN_SRC_LPA
#define LCC_AHBIX_NS_N_VAL_MASK
#define LCC_PLL0_MODE_BIAS_CNT_MASK
#define LCC_AHBIX_NS_N_VAL_SHIFT
#define LCC_MI2S_NS_N_VAL_MASK
#define LCC_AHBIX_MD_NOT_2D_VAL_SHIFT
#define LCC_MI2S_NS_BIT_CXC_ENABLE
struct __packed IpqLccPll0Regs
static int lcc_init_enable_ahbix(IpqLccClocks *bus)
static int lcc_init_mi2s(IpqLccClocks *bus, unsigned int freq)
static const struct lcc_freq_tbl lcc_mi2s_freq_tbl[]
static int lcc_enable_mi2s(IpqLccClocks *bus)
static int lcc_init_enable_pll0(IpqLccClocks *bus)
int audio_clock_config(unsigned int frequency)
struct __packed IpqLccAhbixRegs
struct __packed IpqLccMi2sRegs
struct __packed IpqLccPllRegs
struct __packed IpqLccGccRegs
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
#define m(clkreg, src_bits, pmcreg, dst_bits)