Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201497
b: refs/heads/master
c: 4380c14
h: refs/heads/master
i:
  201495: 3037631
v: v3
  • Loading branch information
Rabin Vincent authored and Russell King committed Jul 29, 2010
1 parent d8af00f commit 822dca7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4956e10903fd3459306dd9438c1e714ba3068a2a
refs/heads/master: 4380c14fd77338bac9d1da4dc5dd9f6eb4966c82
8 changes: 6 additions & 2 deletions trunk/drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,23 @@ static unsigned int fmax = 515633;
/**
* struct variant_data - MMCI variant-specific quirks
* @clkreg: default value for MCICLOCK register
* @clkreg_enable: enable value for MMCICLOCK register
*/
struct variant_data {
unsigned int clkreg;
unsigned int clkreg_enable;
};

static struct variant_data variant_arm = {
};

static struct variant_data variant_u300 = {
.clkreg_enable = 1 << 13, /* HWFCEN */
};

static struct variant_data variant_ux500 = {
.clkreg = MCI_CLK_ENABLE,
.clkreg_enable = 1 << 14, /* HWFCEN */
};
/*
* This must be called with host->lock held
Expand All @@ -71,8 +75,8 @@ static void mmci_set_clkreg(struct mmci_host *host, unsigned int desired)
clk = 255;
host->cclk = host->mclk / (2 * (clk + 1));
}
if (host->hw_designer == AMBA_VENDOR_ST)
clk |= MCI_ST_FCEN; /* Bug fix in ST IP block */

clk |= variant->clkreg_enable;
clk |= MCI_CLK_ENABLE;
/* This hasn't proven to be worthwhile */
/* clk |= MCI_CLK_PWRSAVE; */
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/mmc/host/mmci.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
#define MCI_4BIT_BUS (1 << 11)
/* 8bit wide buses supported in ST Micro versions */
#define MCI_ST_8BIT_BUS (1 << 12)
/* HW flow control on the ST Micro version */
#define MCI_ST_FCEN (1 << 13)

#define MMCIARGUMENT 0x008
#define MMCICOMMAND 0x00c
Expand Down

0 comments on commit 822dca7

Please sign in to comment.