Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1499868 > unrolled thread
| Started by | Scott Branden <scott.branden@broadcom.com> |
|---|---|
| First post | 2016-10-12 20:40 +0200 |
| Last post | 2016-10-17 15:50 +0200 |
| Articles | 7 — 4 participants |
Back to article view | Back to linux.kernel
[PATCH 0/2] mmc: sdhci-iproc: Add byte register access support Scott Branden <scott.branden@broadcom.com> - 2016-10-12 20:40 +0200
[PATCH 2/2] mmc: sdhci-iproc: support standard byte register accesses Scott Branden <scott.branden@broadcom.com> - 2016-10-12 20:40 +0200
Re: [PATCH 2/2] mmc: sdhci-iproc: support standard byte register accesses Adrian Hunter <adrian.hunter@intel.com> - 2016-10-17 08:50 +0200
[PATCH 1/2] mmc: sdhci-iproc: Add brcm,sdhci-iproc compat string in bindings document Scott Branden <scott.branden@broadcom.com> - 2016-10-12 20:40 +0200
Re: [PATCH 1/2] mmc: sdhci-iproc: Add brcm,sdhci-iproc compat string in bindings document Rob Herring <robh@kernel.org> - 2016-10-18 15:20 +0200
Re: [PATCH 1/2] mmc: sdhci-iproc: Add brcm,sdhci-iproc compat string in bindings document Scott Branden <scott.branden@broadcom.com> - 2016-10-18 22:10 +0200
Re: [PATCH 0/2] mmc: sdhci-iproc: Add byte register access support Ulf Hansson <ulf.hansson@linaro.org> - 2016-10-17 15:50 +0200
| From | Scott Branden <scott.branden@broadcom.com> |
|---|---|
| Date | 2016-10-12 20:40 +0200 |
| Subject | [PATCH 0/2] mmc: sdhci-iproc: Add byte register access support |
| Message-ID | <srwBz-8aY-1@gated-at.bofh.it> |
Add brcm,sdhci-iproc compat string and code for support of newer versions of
sdhci-iproc controller that allow byte-wise register accesses.
Scott Branden (2):
mmc: sdhci-iproc: Add brcm,sdhci-iproc compat string in bindings
document
mmc: sdhci-iproc: support standard byte register accesses
.../devicetree/bindings/mmc/brcm,sdhci-iproc.txt | 1 +
drivers/mmc/host/sdhci-iproc.c | 35 ++++++++++++++++++++--
2 files changed, 34 insertions(+), 2 deletions(-)
--
2.5.0
[toc] | [next] | [standalone]
| From | Scott Branden <scott.branden@broadcom.com> |
|---|---|
| Date | 2016-10-12 20:40 +0200 |
| Subject | [PATCH 2/2] mmc: sdhci-iproc: support standard byte register accesses |
| Message-ID | <srwBA-8aY-31@gated-at.bofh.it> |
| In reply to | #1499868 |
Add bytewise register accesses support for newer versions of IPROC
SDHCI controllers.
Previous sdhci-iproc versions of SDIO controllers
(such as Raspberry Pi and Cygnus) only allowed for 32-bit register
accesses.
Signed-off-by: Srinath Mannam <srinath.mannam@broadcom.com>
Signed-off-by: Scott Branden <scott.branden@broadcom.com>
---
drivers/mmc/host/sdhci-iproc.c | 35 +++++++++++++++++++++++++++++++++--
1 file changed, 33 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-iproc.c
index 7262466..d7046d6 100644
--- a/drivers/mmc/host/sdhci-iproc.c
+++ b/drivers/mmc/host/sdhci-iproc.c
@@ -143,6 +143,14 @@ static void sdhci_iproc_writeb(struct sdhci_host *host, u8 val, int reg)
}
static const struct sdhci_ops sdhci_iproc_ops = {
+ .set_clock = sdhci_set_clock,
+ .get_max_clock = sdhci_pltfm_clk_get_max_clock,
+ .set_bus_width = sdhci_set_bus_width,
+ .reset = sdhci_reset,
+ .set_uhs_signaling = sdhci_set_uhs_signaling,
+};
+
+static const struct sdhci_ops sdhci_iproc_32only_ops = {
.read_l = sdhci_iproc_readl,
.read_w = sdhci_iproc_readw,
.read_b = sdhci_iproc_readb,
@@ -156,6 +164,28 @@ static const struct sdhci_ops sdhci_iproc_ops = {
.set_uhs_signaling = sdhci_set_uhs_signaling,
};
+static const struct sdhci_pltfm_data sdhci_iproc_cygnus_pltfm_data = {
+ .quirks = SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK,
+ .quirks2 = SDHCI_QUIRK2_ACMD23_BROKEN,
+ .ops = &sdhci_iproc_32only_ops,
+};
+
+static const struct sdhci_iproc_data iproc_cygnus_data = {
+ .pdata = &sdhci_iproc_cygnus_pltfm_data,
+ .caps = ((0x1 << SDHCI_MAX_BLOCK_SHIFT)
+ & SDHCI_MAX_BLOCK_MASK) |
+ SDHCI_CAN_VDD_330 |
+ SDHCI_CAN_VDD_180 |
+ SDHCI_CAN_DO_SUSPEND |
+ SDHCI_CAN_DO_HISPD |
+ SDHCI_CAN_DO_ADMA2 |
+ SDHCI_CAN_DO_SDMA,
+ .caps1 = SDHCI_DRIVER_TYPE_C |
+ SDHCI_DRIVER_TYPE_D |
+ SDHCI_SUPPORT_DDR50,
+ .mmc_caps = MMC_CAP_1_8V_DDR,
+};
+
static const struct sdhci_pltfm_data sdhci_iproc_pltfm_data = {
.quirks = SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK,
.quirks2 = SDHCI_QUIRK2_ACMD23_BROKEN,
@@ -182,7 +212,7 @@ static const struct sdhci_pltfm_data sdhci_bcm2835_pltfm_data = {
.quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION |
SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK |
SDHCI_QUIRK_MISSING_CAPS,
- .ops = &sdhci_iproc_ops,
+ .ops = &sdhci_iproc_32only_ops,
};
static const struct sdhci_iproc_data bcm2835_data = {
@@ -194,7 +224,8 @@ static const struct sdhci_iproc_data bcm2835_data = {
static const struct of_device_id sdhci_iproc_of_match[] = {
{ .compatible = "brcm,bcm2835-sdhci", .data = &bcm2835_data },
- { .compatible = "brcm,sdhci-iproc-cygnus", .data = &iproc_data },
+ { .compatible = "brcm,sdhci-iproc-cygnus", .data = &iproc_cygnus_data},
+ { .compatible = "brcm,sdhci-iproc", .data = &iproc_data },
{ }
};
MODULE_DEVICE_TABLE(of, sdhci_iproc_of_match);
--
2.5.0
[toc] | [prev] | [next] | [standalone]
| From | Adrian Hunter <adrian.hunter@intel.com> |
|---|---|
| Date | 2016-10-17 08:50 +0200 |
| Subject | Re: [PATCH 2/2] mmc: sdhci-iproc: support standard byte register accesses |
| Message-ID | <st9Ue-8o0-9@gated-at.bofh.it> |
| In reply to | #1499876 |
On 12/10/16 21:35, Scott Branden wrote: > Add bytewise register accesses support for newer versions of IPROC > SDHCI controllers. > Previous sdhci-iproc versions of SDIO controllers > (such as Raspberry Pi and Cygnus) only allowed for 32-bit register > accesses. > > Signed-off-by: Srinath Mannam <srinath.mannam@broadcom.com> > Signed-off-by: Scott Branden <scott.branden@broadcom.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com>
[toc] | [prev] | [next] | [standalone]
| From | Scott Branden <scott.branden@broadcom.com> |
|---|---|
| Date | 2016-10-12 20:40 +0200 |
| Subject | [PATCH 1/2] mmc: sdhci-iproc: Add brcm,sdhci-iproc compat string in bindings document |
| Message-ID | <srwBA-8aY-35@gated-at.bofh.it> |
| In reply to | #1499868 |
Adds brcm,sdhci-iproc compat string to DT bindings document for the iProc SDHCI driver. Signed-off-by: Anup Patel <anup.patel@broadcom.com> Signed-off-by: Scott Branden <scott.branden@broadcom.com> --- Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt b/Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt index be56d2b..aa58b94 100644 --- a/Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt +++ b/Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt @@ -7,6 +7,7 @@ Required properties: - compatible : Should be one of the following "brcm,bcm2835-sdhci" "brcm,sdhci-iproc-cygnus" + "brcm,sdhci-iproc" - clocks : The clock feeding the SDHCI controller. -- 2.5.0
[toc] | [prev] | [next] | [standalone]
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Date | 2016-10-18 15:20 +0200 |
| Subject | Re: [PATCH 1/2] mmc: sdhci-iproc: Add brcm,sdhci-iproc compat string in bindings document |
| Message-ID | <stCtb-294-9@gated-at.bofh.it> |
| In reply to | #1499878 |
On Wed, Oct 12, 2016 at 11:35:51AM -0700, Scott Branden wrote: > Adds brcm,sdhci-iproc compat string to DT bindings document for > the iProc SDHCI driver. > > Signed-off-by: Anup Patel <anup.patel@broadcom.com> > Signed-off-by: Scott Branden <scott.branden@broadcom.com> > --- > Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt b/Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt > index be56d2b..aa58b94 100644 > --- a/Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt > +++ b/Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt > @@ -7,6 +7,7 @@ Required properties: > - compatible : Should be one of the following > "brcm,bcm2835-sdhci" > "brcm,sdhci-iproc-cygnus" > + "brcm,sdhci-iproc" Seems kind of generic. SoC specific compatible strings please.
[toc] | [prev] | [next] | [standalone]
| From | Scott Branden <scott.branden@broadcom.com> |
|---|---|
| Date | 2016-10-18 22:10 +0200 |
| Subject | Re: [PATCH 1/2] mmc: sdhci-iproc: Add brcm,sdhci-iproc compat string in bindings document |
| Message-ID | <stIRX-6NW-7@gated-at.bofh.it> |
| In reply to | #1502983 |
Hi Rob, On 16-10-18 06:16 AM, Rob Herring wrote: > On Wed, Oct 12, 2016 at 11:35:51AM -0700, Scott Branden wrote: >> Adds brcm,sdhci-iproc compat string to DT bindings document for >> the iProc SDHCI driver. >> >> Signed-off-by: Anup Patel <anup.patel@broadcom.com> >> Signed-off-by: Scott Branden <scott.branden@broadcom.com> >> --- >> Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt b/Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt >> index be56d2b..aa58b94 100644 >> --- a/Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt >> +++ b/Documentation/devicetree/bindings/mmc/brcm,sdhci-iproc.txt >> @@ -7,6 +7,7 @@ Required properties: >> - compatible : Should be one of the following >> "brcm,bcm2835-sdhci" >> "brcm,sdhci-iproc-cygnus" >> + "brcm,sdhci-iproc" > > Seems kind of generic. SoC specific compatible strings please. > The compatibility string is generic on purpose as it is not intended to be SoC specific but work on all new iproc SoCs that have the proper fixes in place for this block (unlike bcm2835 and cygnus class devices which can only do 32-bit accesses). I could call it brcm,sdhci-iproc-v2 if that is better or leave it as is. Please let me know your preferences. Regards, Scott
[toc] | [prev] | [next] | [standalone]
| From | Ulf Hansson <ulf.hansson@linaro.org> |
|---|---|
| Date | 2016-10-17 15:50 +0200 |
| Message-ID | <stgsG-47u-13@gated-at.bofh.it> |
| In reply to | #1499868 |
On 12 October 2016 at 20:35, Scott Branden <scott.branden@broadcom.com> wrote: > Add brcm,sdhci-iproc compat string and code for support of newer versions of > sdhci-iproc controller that allow byte-wise register accesses. > > Scott Branden (2): > mmc: sdhci-iproc: Add brcm,sdhci-iproc compat string in bindings > document > mmc: sdhci-iproc: support standard byte register accesses > > .../devicetree/bindings/mmc/brcm,sdhci-iproc.txt | 1 + > drivers/mmc/host/sdhci-iproc.c | 35 ++++++++++++++++++++-- > 2 files changed, 34 insertions(+), 2 deletions(-) > > -- > 2.5.0 > Thanks, applied for next! Kind regards Uffe
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web