2 * tegra30_ahub.c - Tegra30 AHUB driver
4 * Copyright (c) 2011,2012, NVIDIA CORPORATION. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #include <linux/clk.h>
20 #include <linux/device.h>
22 #include <linux/module.h>
23 #include <linux/of_platform.h>
24 #include <linux/platform_device.h>
25 #include <linux/pm_runtime.h>
26 #include <linux/regmap.h>
27 #include <linux/slab.h>
30 #include <sound/soc.h>
31 #include "tegra30_ahub.h"
33 #define DRV_NAME "tegra30-ahub"
35 static struct tegra30_ahub
*ahub
;
37 static inline void tegra30_apbif_write(u32 reg
, u32 val
)
39 regmap_write(ahub
->regmap_apbif
, reg
, val
);
42 static inline u32
tegra30_apbif_read(u32 reg
)
45 regmap_read(ahub
->regmap_apbif
, reg
, &val
);
49 static inline void tegra30_audio_write(u32 reg
, u32 val
)
51 regmap_write(ahub
->regmap_ahub
, reg
, val
);
54 static int tegra30_ahub_runtime_suspend(struct device
*dev
)
56 regcache_cache_only(ahub
->regmap_apbif
, true);
57 regcache_cache_only(ahub
->regmap_ahub
, true);
59 clk_disable_unprepare(ahub
->clk_apbif
);
60 clk_disable_unprepare(ahub
->clk_d_audio
);
66 * clk_apbif isn't required for an I2S<->I2S configuration where no PCM data
67 * is read from or sent to memory. However, that's not something the rest of
68 * the driver supports right now, so we'll just treat the two clocks as one
71 * These functions should not be a plain ref-count. Instead, each active stream
72 * contributes some requirement to the minimum clock rate, so starting or
73 * stopping streams should dynamically adjust the clock as required. However,
74 * this is not yet implemented.
76 static int tegra30_ahub_runtime_resume(struct device
*dev
)
80 ret
= clk_prepare_enable(ahub
->clk_d_audio
);
82 dev_err(dev
, "clk_enable d_audio failed: %d\n", ret
);
85 ret
= clk_prepare_enable(ahub
->clk_apbif
);
87 dev_err(dev
, "clk_enable apbif failed: %d\n", ret
);
88 clk_disable(ahub
->clk_d_audio
);
92 regcache_cache_only(ahub
->regmap_apbif
, false);
93 regcache_cache_only(ahub
->regmap_ahub
, false);
98 int tegra30_ahub_allocate_rx_fifo(enum tegra30_ahub_rxcif
*rxcif
,
99 unsigned long *fiforeg
,
100 unsigned long *reqsel
)
105 channel
= find_first_zero_bit(ahub
->rx_usage
,
106 TEGRA30_AHUB_CHANNEL_CTRL_COUNT
);
107 if (channel
>= TEGRA30_AHUB_CHANNEL_CTRL_COUNT
)
110 __set_bit(channel
, ahub
->rx_usage
);
112 *rxcif
= TEGRA30_AHUB_RXCIF_APBIF_RX0
+ channel
;
113 *fiforeg
= ahub
->apbif_addr
+ TEGRA30_AHUB_CHANNEL_RXFIFO
+
114 (channel
* TEGRA30_AHUB_CHANNEL_RXFIFO_STRIDE
);
115 *reqsel
= ahub
->dma_sel
+ channel
;
117 reg
= TEGRA30_AHUB_CHANNEL_CTRL
+
118 (channel
* TEGRA30_AHUB_CHANNEL_CTRL_STRIDE
);
119 val
= tegra30_apbif_read(reg
);
120 val
&= ~(TEGRA30_AHUB_CHANNEL_CTRL_RX_THRESHOLD_MASK
|
121 TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_MASK
);
122 val
|= (7 << TEGRA30_AHUB_CHANNEL_CTRL_RX_THRESHOLD_SHIFT
) |
123 TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_EN
|
124 TEGRA30_AHUB_CHANNEL_CTRL_RX_PACK_16
;
125 tegra30_apbif_write(reg
, val
);
127 reg
= TEGRA30_AHUB_CIF_RX_CTRL
+
128 (channel
* TEGRA30_AHUB_CIF_RX_CTRL_STRIDE
);
129 val
= (0 << TEGRA30_AUDIOCIF_CTRL_FIFO_THRESHOLD_SHIFT
) |
130 (1 << TEGRA30_AUDIOCIF_CTRL_AUDIO_CHANNELS_SHIFT
) |
131 (1 << TEGRA30_AUDIOCIF_CTRL_CLIENT_CHANNELS_SHIFT
) |
132 TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_16
|
133 TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_16
|
134 TEGRA30_AUDIOCIF_CTRL_DIRECTION_RX
;
135 tegra30_apbif_write(reg
, val
);
139 EXPORT_SYMBOL_GPL(tegra30_ahub_allocate_rx_fifo
);
141 int tegra30_ahub_enable_rx_fifo(enum tegra30_ahub_rxcif rxcif
)
143 int channel
= rxcif
- TEGRA30_AHUB_RXCIF_APBIF_RX0
;
146 reg
= TEGRA30_AHUB_CHANNEL_CTRL
+
147 (channel
* TEGRA30_AHUB_CHANNEL_CTRL_STRIDE
);
148 val
= tegra30_apbif_read(reg
);
149 val
|= TEGRA30_AHUB_CHANNEL_CTRL_RX_EN
;
150 tegra30_apbif_write(reg
, val
);
154 EXPORT_SYMBOL_GPL(tegra30_ahub_enable_rx_fifo
);
156 int tegra30_ahub_disable_rx_fifo(enum tegra30_ahub_rxcif rxcif
)
158 int channel
= rxcif
- TEGRA30_AHUB_RXCIF_APBIF_RX0
;
161 reg
= TEGRA30_AHUB_CHANNEL_CTRL
+
162 (channel
* TEGRA30_AHUB_CHANNEL_CTRL_STRIDE
);
163 val
= tegra30_apbif_read(reg
);
164 val
&= ~TEGRA30_AHUB_CHANNEL_CTRL_RX_EN
;
165 tegra30_apbif_write(reg
, val
);
169 EXPORT_SYMBOL_GPL(tegra30_ahub_disable_rx_fifo
);
171 int tegra30_ahub_free_rx_fifo(enum tegra30_ahub_rxcif rxcif
)
173 int channel
= rxcif
- TEGRA30_AHUB_RXCIF_APBIF_RX0
;
175 __clear_bit(channel
, ahub
->rx_usage
);
179 EXPORT_SYMBOL_GPL(tegra30_ahub_free_rx_fifo
);
181 int tegra30_ahub_allocate_tx_fifo(enum tegra30_ahub_txcif
*txcif
,
182 unsigned long *fiforeg
,
183 unsigned long *reqsel
)
188 channel
= find_first_zero_bit(ahub
->tx_usage
,
189 TEGRA30_AHUB_CHANNEL_CTRL_COUNT
);
190 if (channel
>= TEGRA30_AHUB_CHANNEL_CTRL_COUNT
)
193 __set_bit(channel
, ahub
->tx_usage
);
195 *txcif
= TEGRA30_AHUB_TXCIF_APBIF_TX0
+ channel
;
196 *fiforeg
= ahub
->apbif_addr
+ TEGRA30_AHUB_CHANNEL_TXFIFO
+
197 (channel
* TEGRA30_AHUB_CHANNEL_TXFIFO_STRIDE
);
198 *reqsel
= ahub
->dma_sel
+ channel
;
200 reg
= TEGRA30_AHUB_CHANNEL_CTRL
+
201 (channel
* TEGRA30_AHUB_CHANNEL_CTRL_STRIDE
);
202 val
= tegra30_apbif_read(reg
);
203 val
&= ~(TEGRA30_AHUB_CHANNEL_CTRL_TX_THRESHOLD_MASK
|
204 TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_MASK
);
205 val
|= (7 << TEGRA30_AHUB_CHANNEL_CTRL_TX_THRESHOLD_SHIFT
) |
206 TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_EN
|
207 TEGRA30_AHUB_CHANNEL_CTRL_TX_PACK_16
;
208 tegra30_apbif_write(reg
, val
);
210 reg
= TEGRA30_AHUB_CIF_TX_CTRL
+
211 (channel
* TEGRA30_AHUB_CIF_TX_CTRL_STRIDE
);
212 val
= (0 << TEGRA30_AUDIOCIF_CTRL_FIFO_THRESHOLD_SHIFT
) |
213 (1 << TEGRA30_AUDIOCIF_CTRL_AUDIO_CHANNELS_SHIFT
) |
214 (1 << TEGRA30_AUDIOCIF_CTRL_CLIENT_CHANNELS_SHIFT
) |
215 TEGRA30_AUDIOCIF_CTRL_AUDIO_BITS_16
|
216 TEGRA30_AUDIOCIF_CTRL_CLIENT_BITS_16
|
217 TEGRA30_AUDIOCIF_CTRL_DIRECTION_TX
;
218 tegra30_apbif_write(reg
, val
);
222 EXPORT_SYMBOL_GPL(tegra30_ahub_allocate_tx_fifo
);
224 int tegra30_ahub_enable_tx_fifo(enum tegra30_ahub_txcif txcif
)
226 int channel
= txcif
- TEGRA30_AHUB_TXCIF_APBIF_TX0
;
229 reg
= TEGRA30_AHUB_CHANNEL_CTRL
+
230 (channel
* TEGRA30_AHUB_CHANNEL_CTRL_STRIDE
);
231 val
= tegra30_apbif_read(reg
);
232 val
|= TEGRA30_AHUB_CHANNEL_CTRL_TX_EN
;
233 tegra30_apbif_write(reg
, val
);
237 EXPORT_SYMBOL_GPL(tegra30_ahub_enable_tx_fifo
);
239 int tegra30_ahub_disable_tx_fifo(enum tegra30_ahub_txcif txcif
)
241 int channel
= txcif
- TEGRA30_AHUB_TXCIF_APBIF_TX0
;
244 reg
= TEGRA30_AHUB_CHANNEL_CTRL
+
245 (channel
* TEGRA30_AHUB_CHANNEL_CTRL_STRIDE
);
246 val
= tegra30_apbif_read(reg
);
247 val
&= ~TEGRA30_AHUB_CHANNEL_CTRL_TX_EN
;
248 tegra30_apbif_write(reg
, val
);
252 EXPORT_SYMBOL_GPL(tegra30_ahub_disable_tx_fifo
);
254 int tegra30_ahub_free_tx_fifo(enum tegra30_ahub_txcif txcif
)
256 int channel
= txcif
- TEGRA30_AHUB_TXCIF_APBIF_TX0
;
258 __clear_bit(channel
, ahub
->tx_usage
);
262 EXPORT_SYMBOL_GPL(tegra30_ahub_free_tx_fifo
);
264 int tegra30_ahub_set_rx_cif_source(enum tegra30_ahub_rxcif rxcif
,
265 enum tegra30_ahub_txcif txcif
)
267 int channel
= rxcif
- TEGRA30_AHUB_RXCIF_APBIF_RX0
;
270 reg
= TEGRA30_AHUB_AUDIO_RX
+
271 (channel
* TEGRA30_AHUB_AUDIO_RX_STRIDE
);
272 tegra30_audio_write(reg
, 1 << txcif
);
276 EXPORT_SYMBOL_GPL(tegra30_ahub_set_rx_cif_source
);
278 int tegra30_ahub_unset_rx_cif_source(enum tegra30_ahub_rxcif rxcif
)
280 int channel
= rxcif
- TEGRA30_AHUB_RXCIF_APBIF_RX0
;
283 reg
= TEGRA30_AHUB_AUDIO_RX
+
284 (channel
* TEGRA30_AHUB_AUDIO_RX_STRIDE
);
285 tegra30_audio_write(reg
, 0);
289 EXPORT_SYMBOL_GPL(tegra30_ahub_unset_rx_cif_source
);
291 static const char * const configlink_clocks
[] __devinitconst
= {
303 struct of_dev_auxdata ahub_auxdata
[] __devinitdata
= {
304 OF_DEV_AUXDATA("nvidia,tegra30-i2s", 0x70080300, "tegra30-i2s.0", NULL
),
305 OF_DEV_AUXDATA("nvidia,tegra30-i2s", 0x70080400, "tegra30-i2s.1", NULL
),
306 OF_DEV_AUXDATA("nvidia,tegra30-i2s", 0x70080500, "tegra30-i2s.2", NULL
),
307 OF_DEV_AUXDATA("nvidia,tegra30-i2s", 0x70080600, "tegra30-i2s.3", NULL
),
308 OF_DEV_AUXDATA("nvidia,tegra30-i2s", 0x70080700, "tegra30-i2s.4", NULL
),
312 #define LAST_REG(name) \
313 (TEGRA30_AHUB_##name + \
314 (TEGRA30_AHUB_##name##_STRIDE * TEGRA30_AHUB_##name##_COUNT) - 4)
316 #define REG_IN_ARRAY(reg, name) \
317 ((reg >= TEGRA30_AHUB_##name) && \
318 (reg <= LAST_REG(name) && \
319 (!((reg - TEGRA30_AHUB_##name) % TEGRA30_AHUB_##name##_STRIDE))))
321 static bool tegra30_ahub_apbif_wr_rd_reg(struct device
*dev
, unsigned int reg
)
324 case TEGRA30_AHUB_CONFIG_LINK_CTRL
:
325 case TEGRA30_AHUB_MISC_CTRL
:
326 case TEGRA30_AHUB_APBDMA_LIVE_STATUS
:
327 case TEGRA30_AHUB_I2S_LIVE_STATUS
:
328 case TEGRA30_AHUB_SPDIF_LIVE_STATUS
:
329 case TEGRA30_AHUB_I2S_INT_MASK
:
330 case TEGRA30_AHUB_DAM_INT_MASK
:
331 case TEGRA30_AHUB_SPDIF_INT_MASK
:
332 case TEGRA30_AHUB_APBIF_INT_MASK
:
333 case TEGRA30_AHUB_I2S_INT_STATUS
:
334 case TEGRA30_AHUB_DAM_INT_STATUS
:
335 case TEGRA30_AHUB_SPDIF_INT_STATUS
:
336 case TEGRA30_AHUB_APBIF_INT_STATUS
:
337 case TEGRA30_AHUB_I2S_INT_SOURCE
:
338 case TEGRA30_AHUB_DAM_INT_SOURCE
:
339 case TEGRA30_AHUB_SPDIF_INT_SOURCE
:
340 case TEGRA30_AHUB_APBIF_INT_SOURCE
:
341 case TEGRA30_AHUB_I2S_INT_SET
:
342 case TEGRA30_AHUB_DAM_INT_SET
:
343 case TEGRA30_AHUB_SPDIF_INT_SET
:
344 case TEGRA30_AHUB_APBIF_INT_SET
:
350 if (REG_IN_ARRAY(reg
, CHANNEL_CTRL
) ||
351 REG_IN_ARRAY(reg
, CHANNEL_CLEAR
) ||
352 REG_IN_ARRAY(reg
, CHANNEL_STATUS
) ||
353 REG_IN_ARRAY(reg
, CHANNEL_TXFIFO
) ||
354 REG_IN_ARRAY(reg
, CHANNEL_RXFIFO
) ||
355 REG_IN_ARRAY(reg
, CIF_TX_CTRL
) ||
356 REG_IN_ARRAY(reg
, CIF_RX_CTRL
) ||
357 REG_IN_ARRAY(reg
, DAM_LIVE_STATUS
))
363 static bool tegra30_ahub_apbif_volatile_reg(struct device
*dev
,
367 case TEGRA30_AHUB_CONFIG_LINK_CTRL
:
368 case TEGRA30_AHUB_MISC_CTRL
:
369 case TEGRA30_AHUB_APBDMA_LIVE_STATUS
:
370 case TEGRA30_AHUB_I2S_LIVE_STATUS
:
371 case TEGRA30_AHUB_SPDIF_LIVE_STATUS
:
372 case TEGRA30_AHUB_I2S_INT_STATUS
:
373 case TEGRA30_AHUB_DAM_INT_STATUS
:
374 case TEGRA30_AHUB_SPDIF_INT_STATUS
:
375 case TEGRA30_AHUB_APBIF_INT_STATUS
:
376 case TEGRA30_AHUB_I2S_INT_SET
:
377 case TEGRA30_AHUB_DAM_INT_SET
:
378 case TEGRA30_AHUB_SPDIF_INT_SET
:
379 case TEGRA30_AHUB_APBIF_INT_SET
:
385 if (REG_IN_ARRAY(reg
, CHANNEL_CLEAR
) ||
386 REG_IN_ARRAY(reg
, CHANNEL_STATUS
) ||
387 REG_IN_ARRAY(reg
, CHANNEL_TXFIFO
) ||
388 REG_IN_ARRAY(reg
, CHANNEL_RXFIFO
) ||
389 REG_IN_ARRAY(reg
, DAM_LIVE_STATUS
))
395 static bool tegra30_ahub_apbif_precious_reg(struct device
*dev
,
398 if (REG_IN_ARRAY(reg
, CHANNEL_TXFIFO
) ||
399 REG_IN_ARRAY(reg
, CHANNEL_RXFIFO
))
405 static const struct regmap_config tegra30_ahub_apbif_regmap_config
= {
410 .max_register
= TEGRA30_AHUB_APBIF_INT_SET
,
411 .writeable_reg
= tegra30_ahub_apbif_wr_rd_reg
,
412 .readable_reg
= tegra30_ahub_apbif_wr_rd_reg
,
413 .volatile_reg
= tegra30_ahub_apbif_volatile_reg
,
414 .precious_reg
= tegra30_ahub_apbif_precious_reg
,
415 .cache_type
= REGCACHE_RBTREE
,
418 static bool tegra30_ahub_ahub_wr_rd_reg(struct device
*dev
, unsigned int reg
)
420 if (REG_IN_ARRAY(reg
, AUDIO_RX
))
426 static const struct regmap_config tegra30_ahub_ahub_regmap_config
= {
431 .max_register
= LAST_REG(AUDIO_RX
),
432 .writeable_reg
= tegra30_ahub_ahub_wr_rd_reg
,
433 .readable_reg
= tegra30_ahub_ahub_wr_rd_reg
,
434 .cache_type
= REGCACHE_RBTREE
,
437 static int __devinit
tegra30_ahub_probe(struct platform_device
*pdev
)
441 struct resource
*res0
, *res1
, *region
;
443 void __iomem
*regs_apbif
, *regs_ahub
;
450 * The AHUB hosts a register bus: the "configlink". For this to
451 * operate correctly, all devices on this bus must be out of reset.
454 for (i
= 0; i
< ARRAY_SIZE(configlink_clocks
); i
++) {
455 clk
= clk_get_sys(NULL
, configlink_clocks
[i
]);
457 dev_err(&pdev
->dev
, "Can't get clock %s\n",
458 configlink_clocks
[i
]);
462 tegra_periph_reset_deassert(clk
);
466 ahub
= devm_kzalloc(&pdev
->dev
, sizeof(struct tegra30_ahub
),
469 dev_err(&pdev
->dev
, "Can't allocate tegra30_ahub\n");
473 dev_set_drvdata(&pdev
->dev
, ahub
);
475 ahub
->dev
= &pdev
->dev
;
477 ahub
->clk_d_audio
= clk_get(&pdev
->dev
, "d_audio");
478 if (IS_ERR(ahub
->clk_d_audio
)) {
479 dev_err(&pdev
->dev
, "Can't retrieve ahub d_audio clock\n");
480 ret
= PTR_ERR(ahub
->clk_d_audio
);
484 ahub
->clk_apbif
= clk_get(&pdev
->dev
, "apbif");
485 if (IS_ERR(ahub
->clk_apbif
)) {
486 dev_err(&pdev
->dev
, "Can't retrieve ahub apbif clock\n");
487 ret
= PTR_ERR(ahub
->clk_apbif
);
488 goto err_clk_put_d_audio
;
491 if (of_property_read_u32_array(pdev
->dev
.of_node
,
492 "nvidia,dma-request-selector",
495 "Missing property nvidia,dma-request-selector\n");
497 goto err_clk_put_d_audio
;
499 ahub
->dma_sel
= of_dma
[1];
501 res0
= platform_get_resource(pdev
, IORESOURCE_MEM
, 0);
503 dev_err(&pdev
->dev
, "No apbif memory resource\n");
505 goto err_clk_put_apbif
;
508 region
= devm_request_mem_region(&pdev
->dev
, res0
->start
,
509 resource_size(res0
), DRV_NAME
);
511 dev_err(&pdev
->dev
, "request region apbif failed\n");
513 goto err_clk_put_apbif
;
515 ahub
->apbif_addr
= res0
->start
;
517 regs_apbif
= devm_ioremap(&pdev
->dev
, res0
->start
,
518 resource_size(res0
));
520 dev_err(&pdev
->dev
, "ioremap apbif failed\n");
522 goto err_clk_put_apbif
;
525 ahub
->regmap_apbif
= devm_regmap_init_mmio(&pdev
->dev
, regs_apbif
,
526 &tegra30_ahub_apbif_regmap_config
);
527 if (IS_ERR(ahub
->regmap_apbif
)) {
528 dev_err(&pdev
->dev
, "apbif regmap init failed\n");
529 ret
= PTR_ERR(ahub
->regmap_apbif
);
530 goto err_clk_put_apbif
;
532 regcache_cache_only(ahub
->regmap_apbif
, true);
534 res1
= platform_get_resource(pdev
, IORESOURCE_MEM
, 1);
536 dev_err(&pdev
->dev
, "No ahub memory resource\n");
538 goto err_clk_put_apbif
;
541 region
= devm_request_mem_region(&pdev
->dev
, res1
->start
,
542 resource_size(res1
), DRV_NAME
);
544 dev_err(&pdev
->dev
, "request region ahub failed\n");
546 goto err_clk_put_apbif
;
549 regs_ahub
= devm_ioremap(&pdev
->dev
, res1
->start
,
550 resource_size(res1
));
552 dev_err(&pdev
->dev
, "ioremap ahub failed\n");
554 goto err_clk_put_apbif
;
557 ahub
->regmap_ahub
= devm_regmap_init_mmio(&pdev
->dev
, regs_ahub
,
558 &tegra30_ahub_ahub_regmap_config
);
559 if (IS_ERR(ahub
->regmap_ahub
)) {
560 dev_err(&pdev
->dev
, "ahub regmap init failed\n");
561 ret
= PTR_ERR(ahub
->regmap_ahub
);
562 goto err_clk_put_apbif
;
564 regcache_cache_only(ahub
->regmap_ahub
, true);
566 pm_runtime_enable(&pdev
->dev
);
567 if (!pm_runtime_enabled(&pdev
->dev
)) {
568 ret
= tegra30_ahub_runtime_resume(&pdev
->dev
);
573 of_platform_populate(pdev
->dev
.of_node
, NULL
, ahub_auxdata
,
579 pm_runtime_disable(&pdev
->dev
);
581 clk_put(ahub
->clk_apbif
);
583 clk_put(ahub
->clk_d_audio
);
589 static int __devexit
tegra30_ahub_remove(struct platform_device
*pdev
)
594 pm_runtime_disable(&pdev
->dev
);
595 if (!pm_runtime_status_suspended(&pdev
->dev
))
596 tegra30_ahub_runtime_suspend(&pdev
->dev
);
598 clk_put(ahub
->clk_apbif
);
599 clk_put(ahub
->clk_d_audio
);
606 static const struct of_device_id tegra30_ahub_of_match
[] __devinitconst
= {
607 { .compatible
= "nvidia,tegra30-ahub", },
611 static const struct dev_pm_ops tegra30_ahub_pm_ops __devinitconst
= {
612 SET_RUNTIME_PM_OPS(tegra30_ahub_runtime_suspend
,
613 tegra30_ahub_runtime_resume
, NULL
)
616 static struct platform_driver tegra30_ahub_driver
= {
617 .probe
= tegra30_ahub_probe
,
618 .remove
= __devexit_p(tegra30_ahub_remove
),
621 .owner
= THIS_MODULE
,
622 .of_match_table
= tegra30_ahub_of_match
,
623 .pm
= &tegra30_ahub_pm_ops
,
626 module_platform_driver(tegra30_ahub_driver
);
628 MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>");
629 MODULE_DESCRIPTION("Tegra30 AHUB driver");
630 MODULE_LICENSE("GPL v2");
631 MODULE_ALIAS("platform:" DRV_NAME
);
632 MODULE_DEVICE_TABLE(of
, tegra30_ahub_of_match
);