summaryrefslogtreecommitdiff
path: root/src/soc/qualcomm/ipq40xx/lcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/qualcomm/ipq40xx/lcc.c')
-rw-r--r--src/soc/qualcomm/ipq40xx/lcc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/soc/qualcomm/ipq40xx/lcc.c b/src/soc/qualcomm/ipq40xx/lcc.c
index 9a6c9116ec..392bd9c714 100644
--- a/src/soc/qualcomm/ipq40xx/lcc.c
+++ b/src/soc/qualcomm/ipq40xx/lcc.c
@@ -76,11 +76,11 @@ typedef struct __packed {
} IpqLccPllRegs;
struct lcc_freq_tbl {
- unsigned freq;
- unsigned pd;
- unsigned m;
- unsigned n;
- unsigned d;
+ unsigned int freq;
+ unsigned int pd;
+ unsigned int m;
+ unsigned int n;
+ unsigned int d;
};
static const struct lcc_freq_tbl lcc_mi2s_freq_tbl[] = {
@@ -205,12 +205,12 @@ static int lcc_init_enable_ahbix(IpqLccClocks *bus)
return 1;
}
-static int lcc_init_mi2s(IpqLccClocks *bus, unsigned freq)
+static int lcc_init_mi2s(IpqLccClocks *bus, unsigned int freq)
{
IpqLccMi2sRegs *mi2s_regs = bus->lcc_mi2s_regs;
uint32_t regval;
uint8_t pd, m, n, d;
- unsigned i;
+ unsigned int i;
i = 0;
while (lcc_mi2s_freq_tbl[i].freq != 0) {
@@ -285,7 +285,7 @@ static int lcc_enable_mi2s(IpqLccClocks *bus)
return 1;
}
-int audio_clock_config(unsigned frequency)
+int audio_clock_config(unsigned int frequency)
{
IpqLccClocks bus = {
.gcc_apcs_regs = (void *)(MSM_GCC_BASE + GCC_PLL_APCS_REG),