1 // SPDX-License-Identifier: GPL-2.0-only 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 2 /* 3 * Copyright (c) 2020, The Linux Foundation. A 3 * Copyright (c) 2020, The Linux Foundation. All rights reserved. 4 * 4 * 5 * lpass-sc7180.c -- ALSA SoC platform-machine 5 * lpass-sc7180.c -- ALSA SoC platform-machine driver for QTi LPASS 6 */ 6 */ 7 7 8 #include <linux/clk.h> 8 #include <linux/clk.h> 9 #include <linux/device.h> 9 #include <linux/device.h> 10 #include <linux/err.h> 10 #include <linux/err.h> 11 #include <linux/kernel.h> 11 #include <linux/kernel.h> 12 #include <linux/module.h> 12 #include <linux/module.h> 13 #include <linux/of.h> 13 #include <linux/of.h> 14 #include <linux/platform_device.h> 14 #include <linux/platform_device.h> 15 #include <linux/pm.h> << 16 #include <dt-bindings/sound/sc7180-lpass.h> 15 #include <dt-bindings/sound/sc7180-lpass.h> 17 #include <sound/pcm.h> 16 #include <sound/pcm.h> 18 #include <sound/soc.h> 17 #include <sound/soc.h> 19 18 20 #include "lpass-lpaif-reg.h" 19 #include "lpass-lpaif-reg.h" 21 #include "lpass.h" 20 #include "lpass.h" 22 21 23 static struct snd_soc_dai_driver sc7180_lpass_ 22 static struct snd_soc_dai_driver sc7180_lpass_cpu_dai_driver[] = { 24 { 23 { 25 .id = MI2S_PRIMARY, 24 .id = MI2S_PRIMARY, 26 .name = "Primary MI2S", 25 .name = "Primary MI2S", 27 .playback = { 26 .playback = { 28 .stream_name = "Primar 27 .stream_name = "Primary Playback", 29 .formats = SNDR 28 .formats = SNDRV_PCM_FMTBIT_S16, 30 .rates = SNDRV_PCM_RAT 29 .rates = SNDRV_PCM_RATE_48000, 31 .rate_min = 4800 30 .rate_min = 48000, 32 .rate_max = 4800 31 .rate_max = 48000, 33 .channels_min = 2, 32 .channels_min = 2, 34 .channels_max = 2, 33 .channels_max = 2, 35 }, 34 }, 36 .capture = { 35 .capture = { 37 .stream_name = "Primar 36 .stream_name = "Primary Capture", 38 .formats = SNDRV_PCM_F 37 .formats = SNDRV_PCM_FMTBIT_S16 | 39 SNDRV_PCM_FMTB 38 SNDRV_PCM_FMTBIT_S32, 40 .rates = SNDRV_PCM_RAT 39 .rates = SNDRV_PCM_RATE_48000, 41 .rate_min = 4800 40 .rate_min = 48000, 42 .rate_max = 4800 41 .rate_max = 48000, 43 .channels_min = 2, 42 .channels_min = 2, 44 .channels_max = 2, 43 .channels_max = 2, 45 }, 44 }, >> 45 .probe = &asoc_qcom_lpass_cpu_dai_probe, 46 .ops = &asoc_qcom_lpass_cpu 46 .ops = &asoc_qcom_lpass_cpu_dai_ops, 47 }, { 47 }, { 48 .id = MI2S_SECONDARY, 48 .id = MI2S_SECONDARY, 49 .name = "Secondary MI2S", 49 .name = "Secondary MI2S", 50 .playback = { 50 .playback = { 51 .stream_name = "Second 51 .stream_name = "Secondary Playback", 52 .formats = SNDR 52 .formats = SNDRV_PCM_FMTBIT_S16, 53 .rates = SNDRV_PCM_RAT 53 .rates = SNDRV_PCM_RATE_48000, 54 .rate_min = 4800 54 .rate_min = 48000, 55 .rate_max = 4800 55 .rate_max = 48000, 56 .channels_min = 2, 56 .channels_min = 2, 57 .channels_max = 2, 57 .channels_max = 2, 58 }, 58 }, 59 .ops = &asoc_qcom_lpass_cpu !! 59 .probe = &asoc_qcom_lpass_cpu_dai_probe, >> 60 .ops = &asoc_qcom_lpass_cpu_dai_ops, >> 61 .pcm_new = lpass_cpu_pcm_new, 60 }, { 62 }, { 61 .id = LPASS_DP_RX, 63 .id = LPASS_DP_RX, 62 .name = "Hdmi", 64 .name = "Hdmi", 63 .playback = { 65 .playback = { 64 .stream_name = "Hdmi P 66 .stream_name = "Hdmi Playback", 65 .formats = SNDR 67 .formats = SNDRV_PCM_FMTBIT_S24, 66 .rates = SNDRV_PCM_RAT 68 .rates = SNDRV_PCM_RATE_48000, 67 .rate_min = 4800 69 .rate_min = 48000, 68 .rate_max = 4800 70 .rate_max = 48000, 69 .channels_min = 2, 71 .channels_min = 2, 70 .channels_max = 2, 72 .channels_max = 2, 71 }, 73 }, 72 .ops = &asoc_qcom_lpass_hdm 74 .ops = &asoc_qcom_lpass_hdmi_dai_ops, 73 }, 75 }, 74 }; 76 }; 75 77 76 static int sc7180_lpass_alloc_dma_channel(stru 78 static int sc7180_lpass_alloc_dma_channel(struct lpass_data *drvdata, 77 int 79 int direction, unsigned int dai_id) 78 { 80 { 79 const struct lpass_variant *v = drvdat !! 81 struct lpass_variant *v = drvdata->variant; 80 int chan = 0; 82 int chan = 0; 81 83 82 if (dai_id == LPASS_DP_RX) { 84 if (dai_id == LPASS_DP_RX) { 83 if (direction == SNDRV_PCM_STR 85 if (direction == SNDRV_PCM_STREAM_PLAYBACK) { 84 chan = find_first_zero 86 chan = find_first_zero_bit(&drvdata->hdmi_dma_ch_bit_map, 85 87 v->hdmi_rdma_channels); 86 88 87 if (chan >= v->hdmi_rd 89 if (chan >= v->hdmi_rdma_channels) 88 return -EBUSY; 90 return -EBUSY; 89 } 91 } 90 set_bit(chan, &drvdata->hdmi_d 92 set_bit(chan, &drvdata->hdmi_dma_ch_bit_map); 91 } else { 93 } else { 92 if (direction == SNDRV_PCM_STR 94 if (direction == SNDRV_PCM_STREAM_PLAYBACK) { 93 chan = find_first_zero 95 chan = find_first_zero_bit(&drvdata->dma_ch_bit_map, 94 96 v->rdma_channels); 95 97 96 if (chan >= v->rdma_ch 98 if (chan >= v->rdma_channels) 97 return -EBUSY; 99 return -EBUSY; 98 } else { 100 } else { 99 chan = find_next_zero_ 101 chan = find_next_zero_bit(&drvdata->dma_ch_bit_map, 100 v->wrd 102 v->wrdma_channel_start + 101 v->wrd 103 v->wrdma_channels, 102 v->wrd 104 v->wrdma_channel_start); 103 105 104 if (chan >= v->wrdma_ 106 if (chan >= v->wrdma_channel_start + v->wrdma_channels) 105 return -EBUSY; 107 return -EBUSY; 106 } 108 } 107 109 108 set_bit(chan, &drvdata->dma_ch 110 set_bit(chan, &drvdata->dma_ch_bit_map); 109 } 111 } 110 return chan; 112 return chan; 111 } 113 } 112 114 113 static int sc7180_lpass_free_dma_channel(struc 115 static int sc7180_lpass_free_dma_channel(struct lpass_data *drvdata, int chan, unsigned int dai_id) 114 { 116 { 115 if (dai_id == LPASS_DP_RX) 117 if (dai_id == LPASS_DP_RX) 116 clear_bit(chan, &drvdata->hdmi 118 clear_bit(chan, &drvdata->hdmi_dma_ch_bit_map); 117 else 119 else 118 clear_bit(chan, &drvdata->dma_ 120 clear_bit(chan, &drvdata->dma_ch_bit_map); 119 121 120 return 0; 122 return 0; 121 } 123 } 122 124 123 static int sc7180_lpass_init(struct platform_d 125 static int sc7180_lpass_init(struct platform_device *pdev) 124 { 126 { 125 struct lpass_data *drvdata = platform_ 127 struct lpass_data *drvdata = platform_get_drvdata(pdev); 126 const struct lpass_variant *variant = !! 128 struct lpass_variant *variant = drvdata->variant; 127 struct device *dev = &pdev->dev; 129 struct device *dev = &pdev->dev; 128 int ret, i; 130 int ret, i; 129 131 130 drvdata->clks = devm_kcalloc(dev, vari 132 drvdata->clks = devm_kcalloc(dev, variant->num_clks, 131 sizeof(*d 133 sizeof(*drvdata->clks), GFP_KERNEL); 132 if (!drvdata->clks) << 133 return -ENOMEM; << 134 << 135 drvdata->num_clks = variant->num_clks; 134 drvdata->num_clks = variant->num_clks; 136 135 137 for (i = 0; i < drvdata->num_clks; i++ 136 for (i = 0; i < drvdata->num_clks; i++) 138 drvdata->clks[i].id = variant- 137 drvdata->clks[i].id = variant->clk_name[i]; 139 138 140 ret = devm_clk_bulk_get(dev, drvdata-> 139 ret = devm_clk_bulk_get(dev, drvdata->num_clks, drvdata->clks); 141 if (ret) { 140 if (ret) { 142 dev_err(dev, "Failed to get cl 141 dev_err(dev, "Failed to get clocks %d\n", ret); 143 return ret; 142 return ret; 144 } 143 } 145 144 146 ret = clk_bulk_prepare_enable(drvdata- 145 ret = clk_bulk_prepare_enable(drvdata->num_clks, drvdata->clks); 147 if (ret) { 146 if (ret) { 148 dev_err(dev, "sc7180 clk_enabl 147 dev_err(dev, "sc7180 clk_enable failed\n"); 149 return ret; 148 return ret; 150 } 149 } 151 150 152 return 0; 151 return 0; 153 } 152 } 154 153 155 static int sc7180_lpass_exit(struct platform_d 154 static int sc7180_lpass_exit(struct platform_device *pdev) 156 { 155 { 157 struct lpass_data *drvdata = platform_ 156 struct lpass_data *drvdata = platform_get_drvdata(pdev); 158 157 159 clk_bulk_disable_unprepare(drvdata->nu 158 clk_bulk_disable_unprepare(drvdata->num_clks, drvdata->clks); 160 return 0; << 161 } << 162 159 163 static int __maybe_unused sc7180_lpass_dev_res << 164 { << 165 struct lpass_data *drvdata = dev_get_d << 166 << 167 return clk_bulk_prepare_enable(drvdata << 168 } << 169 << 170 static int __maybe_unused sc7180_lpass_dev_sus << 171 { << 172 struct lpass_data *drvdata = dev_get_d << 173 << 174 clk_bulk_disable_unprepare(drvdata->nu << 175 return 0; 160 return 0; 176 } 161 } 177 162 178 static const struct dev_pm_ops sc7180_lpass_pm !! 163 static struct lpass_variant sc7180_data = { 179 SET_SYSTEM_SLEEP_PM_OPS(sc7180_lpass_d << 180 }; << 181 << 182 static const struct lpass_variant sc7180_data << 183 .i2sctrl_reg_base = 0x1000, 164 .i2sctrl_reg_base = 0x1000, 184 .i2sctrl_reg_stride = 0x1000, 165 .i2sctrl_reg_stride = 0x1000, 185 .i2s_ports = 3, 166 .i2s_ports = 3, 186 .irq_reg_base = 0x9000, 167 .irq_reg_base = 0x9000, 187 .irq_reg_stride = 0x1000, 168 .irq_reg_stride = 0x1000, 188 .irq_ports = 3, 169 .irq_ports = 3, 189 .rdma_reg_base = 0xC000, 170 .rdma_reg_base = 0xC000, 190 .rdma_reg_stride = 0x1000, 171 .rdma_reg_stride = 0x1000, 191 .rdma_channels = 5, 172 .rdma_channels = 5, 192 .hdmi_rdma_reg_base = 0x64 173 .hdmi_rdma_reg_base = 0x64000, 193 .hdmi_rdma_reg_stride = 0x1000, 174 .hdmi_rdma_reg_stride = 0x1000, 194 .hdmi_rdma_channels = 4, 175 .hdmi_rdma_channels = 4, 195 .dmactl_audif_start = 1, 176 .dmactl_audif_start = 1, 196 .wrdma_reg_base = 0x18000, 177 .wrdma_reg_base = 0x18000, 197 .wrdma_reg_stride = 0x1000, 178 .wrdma_reg_stride = 0x1000, 198 .wrdma_channel_start = 5, 179 .wrdma_channel_start = 5, 199 .wrdma_channels = 4, 180 .wrdma_channels = 4, 200 181 201 .loopback = REG_FIELD_ID 182 .loopback = REG_FIELD_ID(0x1000, 17, 17, 3, 0x1000), 202 .spken = REG_FIELD_ID 183 .spken = REG_FIELD_ID(0x1000, 16, 16, 3, 0x1000), 203 .spkmode = REG_FIELD_ID 184 .spkmode = REG_FIELD_ID(0x1000, 11, 15, 3, 0x1000), 204 .spkmono = REG_FIELD_ID 185 .spkmono = REG_FIELD_ID(0x1000, 10, 10, 3, 0x1000), 205 .micen = REG_FIELD_ID 186 .micen = REG_FIELD_ID(0x1000, 9, 9, 3, 0x1000), 206 .micmode = REG_FIELD_ID 187 .micmode = REG_FIELD_ID(0x1000, 4, 8, 3, 0x1000), 207 .micmono = REG_FIELD_ID 188 .micmono = REG_FIELD_ID(0x1000, 3, 3, 3, 0x1000), 208 .wssrc = REG_FIELD_ID 189 .wssrc = REG_FIELD_ID(0x1000, 2, 2, 3, 0x1000), 209 .bitwidth = REG_FIELD_ID 190 .bitwidth = REG_FIELD_ID(0x1000, 0, 1, 3, 0x1000), 210 191 211 .rdma_dyncclk = REG_FIELD_ID 192 .rdma_dyncclk = REG_FIELD_ID(0xC000, 21, 21, 5, 0x1000), 212 .rdma_bursten = REG_FIELD_ID 193 .rdma_bursten = REG_FIELD_ID(0xC000, 20, 20, 5, 0x1000), 213 .rdma_wpscnt = REG_FIELD_ID 194 .rdma_wpscnt = REG_FIELD_ID(0xC000, 16, 19, 5, 0x1000), 214 .rdma_intf = REG_ 195 .rdma_intf = REG_FIELD_ID(0xC000, 12, 15, 5, 0x1000), 215 .rdma_fifowm = REG_FIELD_ID 196 .rdma_fifowm = REG_FIELD_ID(0xC000, 1, 5, 5, 0x1000), 216 .rdma_enable = REG_FIELD_ID 197 .rdma_enable = REG_FIELD_ID(0xC000, 0, 0, 5, 0x1000), 217 198 218 .wrdma_dyncclk = REG_FIELD_ID 199 .wrdma_dyncclk = REG_FIELD_ID(0x18000, 22, 22, 4, 0x1000), 219 .wrdma_bursten = REG_FIELD_ID 200 .wrdma_bursten = REG_FIELD_ID(0x18000, 21, 21, 4, 0x1000), 220 .wrdma_wpscnt = REG_FIELD_ID 201 .wrdma_wpscnt = REG_FIELD_ID(0x18000, 17, 20, 4, 0x1000), 221 .wrdma_intf = REG_FIELD_ID 202 .wrdma_intf = REG_FIELD_ID(0x18000, 12, 16, 4, 0x1000), 222 .wrdma_fifowm = REG_FIELD_ID 203 .wrdma_fifowm = REG_FIELD_ID(0x18000, 1, 5, 4, 0x1000), 223 .wrdma_enable = REG_FIELD_ID 204 .wrdma_enable = REG_FIELD_ID(0x18000, 0, 0, 4, 0x1000), 224 205 225 .hdmi_tx_ctl_addr = 0x1000, 206 .hdmi_tx_ctl_addr = 0x1000, 226 .hdmi_legacy_addr = 0x1008, 207 .hdmi_legacy_addr = 0x1008, 227 .hdmi_vbit_addr = 0x610c0, 208 .hdmi_vbit_addr = 0x610c0, 228 .hdmi_ch_lsb_addr = 0x61048, 209 .hdmi_ch_lsb_addr = 0x61048, 229 .hdmi_ch_msb_addr = 0x6104c, 210 .hdmi_ch_msb_addr = 0x6104c, 230 .ch_stride = 0x8, 211 .ch_stride = 0x8, 231 .hdmi_parity_addr = 0x61034, 212 .hdmi_parity_addr = 0x61034, 232 .hdmi_dmactl_addr = 0x61038, 213 .hdmi_dmactl_addr = 0x61038, 233 .hdmi_dma_stride = 0x4, 214 .hdmi_dma_stride = 0x4, 234 .hdmi_DP_addr = 0x610c8, 215 .hdmi_DP_addr = 0x610c8, 235 .hdmi_sstream_addr = 0x6101c, 216 .hdmi_sstream_addr = 0x6101c, 236 .hdmi_irq_reg_base = 0x63 217 .hdmi_irq_reg_base = 0x63000, 237 .hdmi_irq_ports = 1, 218 .hdmi_irq_ports = 1, 238 219 239 .hdmi_rdma_dyncclk = REG_ 220 .hdmi_rdma_dyncclk = REG_FIELD_ID(0x64000, 14, 14, 4, 0x1000), 240 .hdmi_rdma_bursten = REG_ 221 .hdmi_rdma_bursten = REG_FIELD_ID(0x64000, 13, 13, 4, 0x1000), 241 .hdmi_rdma_burst8 = REG_ 222 .hdmi_rdma_burst8 = REG_FIELD_ID(0x64000, 15, 15, 4, 0x1000), 242 .hdmi_rdma_burst16 = REG_ 223 .hdmi_rdma_burst16 = REG_FIELD_ID(0x64000, 16, 16, 4, 0x1000), 243 .hdmi_rdma_dynburst = REG_ 224 .hdmi_rdma_dynburst = REG_FIELD_ID(0x64000, 18, 18, 4, 0x1000), 244 .hdmi_rdma_wpscnt = REG_ 225 .hdmi_rdma_wpscnt = REG_FIELD_ID(0x64000, 10, 12, 4, 0x1000), 245 .hdmi_rdma_fifowm = REG_ 226 .hdmi_rdma_fifowm = REG_FIELD_ID(0x64000, 1, 5, 4, 0x1000), 246 .hdmi_rdma_enable = REG_ 227 .hdmi_rdma_enable = REG_FIELD_ID(0x64000, 0, 0, 4, 0x1000), 247 228 248 .sstream_en = REG_FIELD(0x 229 .sstream_en = REG_FIELD(0x6101c, 0, 0), 249 .dma_sel = REG_ 230 .dma_sel = REG_FIELD(0x6101c, 1, 2), 250 .auto_bbit_en = REG_FIELD(0x6101c, 3 231 .auto_bbit_en = REG_FIELD(0x6101c, 3, 3), 251 .layout = REG_FIELD(0x 232 .layout = REG_FIELD(0x6101c, 4, 4), 252 .layout_sp = REG_FIELD(0x 233 .layout_sp = REG_FIELD(0x6101c, 5, 8), 253 .set_sp_on_en = REG_FIELD(0x6101c, 1 234 .set_sp_on_en = REG_FIELD(0x6101c, 10, 10), 254 .dp_audio = REG_FIELD(0x 235 .dp_audio = REG_FIELD(0x6101c, 11, 11), 255 .dp_staffing_en = REG_FIELD(0x6101c, 1 236 .dp_staffing_en = REG_FIELD(0x6101c, 12, 12), 256 .dp_sp_b_hw_en = REG_FIELD(0x6101c, 1 237 .dp_sp_b_hw_en = REG_FIELD(0x6101c, 13, 13), 257 238 258 .mute = REG_FIELD(0x 239 .mute = REG_FIELD(0x610c8, 0, 0), 259 .as_sdp_cc = REG_FIELD(0x 240 .as_sdp_cc = REG_FIELD(0x610c8, 1, 3), 260 .as_sdp_ct = REG_FIELD(0x 241 .as_sdp_ct = REG_FIELD(0x610c8, 4, 7), 261 .aif_db4 = REG_ 242 .aif_db4 = REG_FIELD(0x610c8, 8, 15), 262 .frequency = REG_FIELD(0x 243 .frequency = REG_FIELD(0x610c8, 16, 21), 263 .mst_index = REG_FIELD(0x 244 .mst_index = REG_FIELD(0x610c8, 28, 29), 264 .dptx_index = REG_FIELD(0x 245 .dptx_index = REG_FIELD(0x610c8, 30, 31), 265 246 266 .soft_reset = REG_FIELD(0x 247 .soft_reset = REG_FIELD(0x1000, 31, 31), 267 .force_reset = REG_FIELD(0x1000, 30 248 .force_reset = REG_FIELD(0x1000, 30, 30), 268 249 269 .use_hw_chs = REG_FIELD(0x 250 .use_hw_chs = REG_FIELD(0x61038, 0, 0), 270 .use_hw_usr = REG_FIELD(0x 251 .use_hw_usr = REG_FIELD(0x61038, 1, 1), 271 .hw_chs_sel = REG_FIELD(0x 252 .hw_chs_sel = REG_FIELD(0x61038, 2, 4), 272 .hw_usr_sel = REG_FIELD(0x 253 .hw_usr_sel = REG_FIELD(0x61038, 5, 6), 273 254 274 .replace_vbit = REG_FIELD(0x610c0, 0 255 .replace_vbit = REG_FIELD(0x610c0, 0, 0), 275 .vbit_stream = REG_FIELD(0x610c0, 1 256 .vbit_stream = REG_FIELD(0x610c0, 1, 1), 276 257 277 .legacy_en = REG_FIELD(0 258 .legacy_en = REG_FIELD(0x1008, 0, 0), 278 .calc_en = REG_FIELD(0 259 .calc_en = REG_FIELD(0x61034, 0, 0), 279 .lsb_bits = REG_FIELD(0 260 .lsb_bits = REG_FIELD(0x61048, 0, 31), 280 .msb_bits = REG_FIELD(0 261 .msb_bits = REG_FIELD(0x6104c, 0, 31), 281 262 282 263 283 .clk_name = (const char* 264 .clk_name = (const char*[]) { 284 "pcnoc-sway 265 "pcnoc-sway-clk", 285 "audio-core 266 "audio-core", 286 "pcnoc-mpor 267 "pcnoc-mport-clk", 287 }, 268 }, 288 .num_clks = 3, 269 .num_clks = 3, 289 .dai_driver = sc7180_lpass 270 .dai_driver = sc7180_lpass_cpu_dai_driver, 290 .num_dai = ARRAY_SIZE(s 271 .num_dai = ARRAY_SIZE(sc7180_lpass_cpu_dai_driver), 291 .dai_osr_clk_names = (const char 272 .dai_osr_clk_names = (const char *[]) { 292 "mclk0", 273 "mclk0", 293 "null", 274 "null", 294 }, 275 }, 295 .dai_bit_clk_names = (const char 276 .dai_bit_clk_names = (const char *[]) { 296 "mi2s-bit-c 277 "mi2s-bit-clk0", 297 "mi2s-bit-c 278 "mi2s-bit-clk1", 298 }, 279 }, 299 .init = sc7180_lpass 280 .init = sc7180_lpass_init, 300 .exit = sc7180_lpass 281 .exit = sc7180_lpass_exit, 301 .alloc_dma_channel = sc7180_lpass 282 .alloc_dma_channel = sc7180_lpass_alloc_dma_channel, 302 .free_dma_channel = sc7180_lpass 283 .free_dma_channel = sc7180_lpass_free_dma_channel, 303 }; 284 }; 304 285 305 static const struct of_device_id sc7180_lpass_ 286 static const struct of_device_id sc7180_lpass_cpu_device_id[] __maybe_unused = { 306 {.compatible = "qcom,sc7180-lpass-cpu" 287 {.compatible = "qcom,sc7180-lpass-cpu", .data = &sc7180_data}, 307 {} 288 {} 308 }; 289 }; 309 MODULE_DEVICE_TABLE(of, sc7180_lpass_cpu_devic 290 MODULE_DEVICE_TABLE(of, sc7180_lpass_cpu_device_id); 310 291 311 static struct platform_driver sc7180_lpass_cpu 292 static struct platform_driver sc7180_lpass_cpu_platform_driver = { 312 .driver = { 293 .driver = { 313 .name = "sc7180-lpass-cpu", 294 .name = "sc7180-lpass-cpu", 314 .of_match_table = of_match_ptr 295 .of_match_table = of_match_ptr(sc7180_lpass_cpu_device_id), 315 .pm = &sc7180_lpass_pm_ops, << 316 }, 296 }, 317 .probe = asoc_qcom_lpass_cpu_platform_ 297 .probe = asoc_qcom_lpass_cpu_platform_probe, 318 .remove = asoc_qcom_lpass_cpu_platform 298 .remove = asoc_qcom_lpass_cpu_platform_remove, 319 .shutdown = asoc_qcom_lpass_cpu_platfo 299 .shutdown = asoc_qcom_lpass_cpu_platform_shutdown, 320 }; 300 }; 321 301 322 module_platform_driver(sc7180_lpass_cpu_platfo 302 module_platform_driver(sc7180_lpass_cpu_platform_driver); 323 303 324 MODULE_DESCRIPTION("SC7180 LPASS CPU DRIVER"); 304 MODULE_DESCRIPTION("SC7180 LPASS CPU DRIVER"); 325 MODULE_LICENSE("GPL"); !! 305 MODULE_LICENSE("GPL v2"); 326 306
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.