aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/mmci.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@stericsson.com>2009-08-03 20:01:02 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-09-12 06:51:14 -0400
commitf17a1f06d2fa93f4825be572622eb02c4894db4e (patch)
treea9c179d0a49bbb67db01be55d03a9c1dc966eb27 /drivers/mmc/host/mmci.c
parent701038144945ef98c5817f43079952fa38c35999 (diff)
ARM: 5636/1: Move vendor enum to AMBA include
This moves the primecell vendor enum definition inside vic.c out to linux/amba/bus.h where it belongs and replace any occurances of specific vendor ID:s with the respective enums instead. Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mmc/host/mmci.c')
-rw-r--r--drivers/mmc/host/mmci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index e1aa8471ab1c..d78b1e460d7d 100644
--- a/drivers/mmc/host/mmci.c
+++ b/drivers/mmc/host/mmci.c
@@ -430,7 +430,7 @@ static void mmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
430 clk = 255; 430 clk = 255;
431 host->cclk = host->mclk / (2 * (clk + 1)); 431 host->cclk = host->mclk / (2 * (clk + 1));
432 } 432 }
433 if (host->hw_designer == 0x80) 433 if (host->hw_designer == AMBA_VENDOR_ST)
434 clk |= MCI_FCEN; /* Bug fix in ST IP block */ 434 clk |= MCI_FCEN; /* Bug fix in ST IP block */
435 clk |= MCI_CLK_ENABLE; 435 clk |= MCI_CLK_ENABLE;
436 } 436 }
@@ -443,7 +443,7 @@ static void mmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
443 break; 443 break;
444 case MMC_POWER_UP: 444 case MMC_POWER_UP:
445 /* The ST version does not have this, fall through to POWER_ON */ 445 /* The ST version does not have this, fall through to POWER_ON */
446 if (host->hw_designer != 0x80) { 446 if (host->hw_designer != AMBA_VENDOR_ST) {
447 pwr |= MCI_PWR_UP; 447 pwr |= MCI_PWR_UP;
448 break; 448 break;
449 } 449 }
@@ -453,7 +453,7 @@ static void mmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
453 } 453 }
454 454
455 if (ios->bus_mode == MMC_BUSMODE_OPENDRAIN) { 455 if (ios->bus_mode == MMC_BUSMODE_OPENDRAIN) {
456 if (host->hw_designer != 0x80) 456 if (host->hw_designer != AMBA_VENDOR_ST)
457 pwr |= MCI_ROD; 457 pwr |= MCI_ROD;
458 else { 458 else {
459 /* 459 /*