9 #include <linux/kernel.h>
11 #include <linux/slab.h>
28 INIT_LIST_HEAD(&(*c)->list);
30 (*c)->macio = dev->bus->chip;
45 np = i2sdev->
sound.ofdev.dev.of_node;
79 if (list_empty(&c->
list))
87 struct macio_chip *macio = c->
macio;
92 if (macio ==
NULL || macio->base ==
NULL)
99 MACIO_BIS(KEYLARGO_FCR1, KL1_I2S0_ENABLE);
102 MACIO_BIS(KEYLARGO_FCR1, KL1_I2S1_ENABLE);
115 struct macio_chip *macio = c->
macio;
131 if (macio ==
NULL || macio->base ==
NULL)
137 MACIO_BIS(KEYLARGO_FCR1, KL1_I2S0_CELL_ENABLE);
139 MACIO_BIC(KEYLARGO_FCR1, KL1_I2S0_CELL_ENABLE);
143 MACIO_BIS(KEYLARGO_FCR1, KL1_I2S1_CELL_ENABLE);
145 MACIO_BIC(KEYLARGO_FCR1, KL1_I2S1_CELL_ENABLE);
158 struct macio_chip *macio = c->
macio;
174 if (macio ==
NULL || macio->base ==
NULL)
180 MACIO_BIS(KEYLARGO_FCR1, KL1_I2S0_CLK_ENABLE_BIT);
182 MACIO_BIC(KEYLARGO_FCR1, KL1_I2S0_CLK_ENABLE_BIT);
186 MACIO_BIS(KEYLARGO_FCR1, KL1_I2S1_CLK_ENABLE_BIT);
188 MACIO_BIC(KEYLARGO_FCR1, KL1_I2S1_CLK_ENABLE_BIT);