Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256747
b: refs/heads/master
c: e892bac
h: refs/heads/master
i:
  256745: e136548
  256743: e421030
v: v3
  • Loading branch information
Grant Likely committed Jun 15, 2011
1 parent 3ba794e commit df1ef54
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e2943c04c74e537c762c09bcea89e923510a9ac
refs/heads/master: e892bac102805f905e463a2cc7d0f870358cc1d5
5 changes: 5 additions & 0 deletions trunk/Documentation/devicetree/bindings/spi/spi_nvidia.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
NVIDIA Tegra 2 SPI device

Required properties:
- compatible : should be "nvidia,tegra250-spi".
- gpios : should specify GPIOs used for chipselect.
12 changes: 12 additions & 0 deletions trunk/drivers/spi/spi-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ static int __init spi_tegra_probe(struct platform_device *pdev)
tspi->rx_dma_req.req_sel = spi_tegra_req_sels[pdev->id];
tspi->rx_dma_req.dev = tspi;

master->dev.of_node = pdev->dev.of_node;
ret = spi_register_master(master);

if (ret < 0)
Expand Down Expand Up @@ -595,10 +596,21 @@ static int __devexit spi_tegra_remove(struct platform_device *pdev)

MODULE_ALIAS("platform:spi_tegra");

#ifdef CONFIG_OF
static struct of_device_id spi_tegra_of_match_table[] __devinitdata = {
{ .compatible = "nvidia,tegra250-spi", },
{}
};
MODULE_DEVICE_TABLE(of, spi_tegra_of_match_table);
#else /* CONFIG_OF */
#define spi_tegra_of_match_table NULL
#endif /* CONFIG_OF */

static struct platform_driver spi_tegra_driver = {
.driver = {
.name = "spi_tegra",
.owner = THIS_MODULE,
.of_match_table = spi_tegra_of_match_table,
},
.remove = __devexit_p(spi_tegra_remove),
};
Expand Down

0 comments on commit df1ef54

Please sign in to comment.