diff mbox series

[v4,11/11] mmc: sdhci-omap: Add am335x and am437x specific compatibles

Message ID 20200106110133.13791-12-faiz_abbas@ti.com (mailing list archive)
State New, archived
Headers show
Series Port am335x and am437x devices to sdhci-omap | expand

Commit Message

Faiz Abbas Jan. 6, 2020, 11:01 a.m. UTC
Add support for new compatible for TI's am335x and am437x devices.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
---
 drivers/mmc/host/sdhci-omap.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Adrian Hunter Jan. 15, 2020, 12:14 p.m. UTC | #1
On 6/01/20 1:01 pm, Faiz Abbas wrote:
> Add support for new compatible for TI's am335x and am437x devices.
> 
> Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>

Acked-by: Adrian Hunter <adrian.hunter@intel.com>

> ---
>  drivers/mmc/host/sdhci-omap.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c
> index 34df30edd450..4d7026daa8cd 100644
> --- a/drivers/mmc/host/sdhci-omap.c
> +++ b/drivers/mmc/host/sdhci-omap.c
> @@ -919,6 +919,14 @@ static const struct sdhci_omap_data k2g_data = {
>  	.offset = 0x200,
>  };
>  
> +static const struct sdhci_omap_data am335_data = {
> +	.offset = 0x200,
> +};
> +
> +static const struct sdhci_omap_data am437_data = {
> +	.offset = 0x200,
> +};
> +
>  static const struct sdhci_omap_data dra7_data = {
>  	.offset = 0x200,
>  	.flags	= SDHCI_OMAP_REQUIRE_IODELAY,
> @@ -927,6 +935,8 @@ static const struct sdhci_omap_data dra7_data = {
>  static const struct of_device_id omap_sdhci_match[] = {
>  	{ .compatible = "ti,dra7-sdhci", .data = &dra7_data },
>  	{ .compatible = "ti,k2g-sdhci", .data = &k2g_data },
> +	{ .compatible = "ti,am335-sdhci", .data = &am335_data },
> +	{ .compatible = "ti,am437-sdhci", .data = &am437_data },
>  	{},
>  };
>  MODULE_DEVICE_TABLE(of, omap_sdhci_match);
>
diff mbox series

Patch

diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c
index 34df30edd450..4d7026daa8cd 100644
--- a/drivers/mmc/host/sdhci-omap.c
+++ b/drivers/mmc/host/sdhci-omap.c
@@ -919,6 +919,14 @@  static const struct sdhci_omap_data k2g_data = {
 	.offset = 0x200,
 };
 
+static const struct sdhci_omap_data am335_data = {
+	.offset = 0x200,
+};
+
+static const struct sdhci_omap_data am437_data = {
+	.offset = 0x200,
+};
+
 static const struct sdhci_omap_data dra7_data = {
 	.offset = 0x200,
 	.flags	= SDHCI_OMAP_REQUIRE_IODELAY,
@@ -927,6 +935,8 @@  static const struct sdhci_omap_data dra7_data = {
 static const struct of_device_id omap_sdhci_match[] = {
 	{ .compatible = "ti,dra7-sdhci", .data = &dra7_data },
 	{ .compatible = "ti,k2g-sdhci", .data = &k2g_data },
+	{ .compatible = "ti,am335-sdhci", .data = &am335_data },
+	{ .compatible = "ti,am437-sdhci", .data = &am437_data },
 	{},
 };
 MODULE_DEVICE_TABLE(of, omap_sdhci_match);