Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2317f56c authored by Russell King's avatar Russell King Committed by Chris Ball
Browse files

mmc: sdhci: convert generic bus width setup to library function

parent 5b4f1f6c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -103,10 +103,12 @@ static void sdhci_acpi_int_hw_reset(struct sdhci_host *host)

static const struct sdhci_ops sdhci_acpi_ops_dflt = {
	.enable_dma = sdhci_acpi_enable_dma,
	.set_bus_width = sdhci_set_bus_width,
};

static const struct sdhci_ops sdhci_acpi_ops_int = {
	.enable_dma = sdhci_acpi_enable_dma,
	.set_bus_width = sdhci_set_bus_width,
	.hw_reset   = sdhci_acpi_int_hw_reset,
};

+1 −0
Original line number Diff line number Diff line
@@ -209,6 +209,7 @@ static struct sdhci_ops sdhci_bcm_kona_ops = {
	.get_max_clock = sdhci_bcm_kona_get_max_clk,
	.get_timeout_clock = sdhci_bcm_kona_get_timeout_clock,
	.platform_send_init_74_clocks = sdhci_bcm_kona_init_74_clocks,
	.set_bus_width = sdhci_set_bus_width,
	.card_event = sdhci_bcm_kona_card_event,
};

+1 −0
Original line number Diff line number Diff line
@@ -133,6 +133,7 @@ static const struct sdhci_ops bcm2835_sdhci_ops = {
	.read_b = bcm2835_sdhci_readb,
	.get_max_clock = sdhci_pltfm_clk_get_max_clock,
	.get_min_clock = bcm2835_sdhci_get_min_clock,
	.set_bus_width = sdhci_set_bus_width,
};

static const struct sdhci_pltfm_data bcm2835_sdhci_pdata = {
+1 −0
Original line number Diff line number Diff line
@@ -82,6 +82,7 @@ static void sdhci_cns3xxx_set_clock(struct sdhci_host *host, unsigned int clock)
static const struct sdhci_ops sdhci_cns3xxx_ops = {
	.get_max_clock	= sdhci_cns3xxx_get_max_clk,
	.set_clock	= sdhci_cns3xxx_set_clock,
	.set_bus_width	= sdhci_set_bus_width,
};

static const struct sdhci_pltfm_data sdhci_cns3xxx_pdata = {
+1 −0
Original line number Diff line number Diff line
@@ -86,6 +86,7 @@ static u32 sdhci_dove_readl(struct sdhci_host *host, int reg)
static const struct sdhci_ops sdhci_dove_ops = {
	.read_w	= sdhci_dove_readw,
	.read_l	= sdhci_dove_readl,
	.set_bus_width = sdhci_set_bus_width,
};

static const struct sdhci_pltfm_data sdhci_dove_pdata = {
Loading