From: Anton Vorontsov <hidden> Date: 2009-02-05 19:04:05
On Thu, Jan 22, 2009 at 01:15:01PM -0600, Kumar Gala wrote:
On Jan 21, 2009, at 8:00 PM, Anton Vorontsov wrote:
quoted
This patch adds a new driver: sdhci-of. The driver is similar to
the sdhci-pci, it contains common probe code, and controller-specific
ops and quirks.
So far there are only Freescale eSDHC ops and quirks.
Signed-off-by: Anton Vorontsov <redacted>
---
drivers/mmc/host/Kconfig | 10 ++
drivers/mmc/host/Makefile | 1 +
drivers/mmc/host/sdhci-of.c | 274 ++++++++++++++++++++++++++++++++++
+++++++++
3 files changed, 285 insertions(+), 0 deletions(-)
create mode 100644 drivers/mmc/host/sdhci-of.c
Still griping about lack of OF binding docs for this.
Here they're.
I'm assuming that MPC8536 is the first chip in 85xx family with eSDHC.
Thanks,
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
From: Anton Vorontsov <hidden> Date: 2009-02-05 19:04:54
- sdhc node renamed to sdhci ("sdhc" name is confusing since SDHC is
used to name Secure Digital High Capacity cards, while SDHCI is an
interface).
- Get rid of "fsl,esdhc" compatible entry, it's replaced by the
"fsl,<chip>-esdhc" scheme;
- Get rid of `model' property.
Signed-off-by: Anton Vorontsov <redacted>
---
arch/powerpc/boot/dts/mpc8377_mds.dts | 7 ++++---
arch/powerpc/boot/dts/mpc8378_mds.dts | 7 ++++---
arch/powerpc/boot/dts/mpc8379_mds.dts | 7 ++++---
3 files changed, 12 insertions(+), 9 deletions(-)
@@ -313,12 +313,13 @@fsl,descriptor-types-mask=<0x3ab0ebf>;};-sdhc@2e000{-model="eSDHC";-compatible="fsl,esdhc";+sdhci@2e000{+compatible="fsl,mpc8377-esdhc","fsl,mpc8379-esdhc";reg=<0x2e0000x1000>;interrupts=<420x8>;interrupt-parent=<&ipic>;+/* Filled in by U-Boot */+clock-frequency=<0>;};sata@18000{
@@ -313,12 +313,13 @@fsl,descriptor-types-mask=<0x3ab0ebf>;};-sdhc@2e000{-model="eSDHC";-compatible="fsl,esdhc";+sdhci@2e000{+compatible="fsl,mpc8378-esdhc","fsl,mpc8379-esdhc";reg=<0x2e0000x1000>;interrupts=<420x8>;interrupt-parent=<&ipic>;+/* Filled in by U-Boot */+clock-frequency=<0>;};/* IPIC
@@ -310,12 +310,13 @@fsl,descriptor-types-mask=<0x3ab0ebf>;};-sdhc@2e000{-model="eSDHC";-compatible="fsl,esdhc";+sdhci@2e000{+compatible="fsl,mpc8379-esdhc";reg=<0x2e0000x1000>;interrupts=<420x8>;interrupt-parent=<&ipic>;+/* Filled in by U-Boot */+clock-frequency=<0>;};sata@18000{
From: Anton Vorontsov <hidden> Date: 2009-02-05 19:05:01
Simply add appropriate sdhci nodes.
Note that U-Boot should configure pin multiplexing for eSDHC prior
to Linux could use it. U-Boot should also fill-in the clock-frequency
property (eSDHC clock depends on board-specific SCCR[ESDHCCM] bits).
Signed-off-by: Anton Vorontsov <redacted>
---
arch/powerpc/boot/dts/mpc8377_rdb.dts | 9 +++++++++
arch/powerpc/boot/dts/mpc8378_rdb.dts | 9 +++++++++
arch/powerpc/boot/dts/mpc8379_rdb.dts | 9 +++++++++
3 files changed, 27 insertions(+), 0 deletions(-)
@@ -291,6 +291,15 @@fsl,descriptor-types-mask=<0x3ab0ebf>;};+sdhci@2e000{+compatible="fsl,mpc8377-esdhc","fsl,mpc8379-esdhc";+reg=<0x2e0000x1000>;+interrupts=<420x8>;+interrupt-parent=<&ipic>;+/* Filled in by U-Boot */+clock-frequency=<0>;+};+sata@18000{compatible="fsl,mpc8377-sata","fsl,pq-sata";reg=<0x180000x1000>;
@@ -289,6 +289,15 @@fsl,descriptor-types-mask=<0x3ab0ebf>;};+sdhci@2e000{+compatible="fsl,mpc8378-esdhc","fsl,mpc8379-esdhc";+reg=<0x2e0000x1000>;+interrupts=<420x8>;+interrupt-parent=<&ipic>;+/* Filled in by U-Boot */+clock-frequency=<0>;+};+/* IPIC*interruptscell=<intr#,sense>*sensevaluesmatchlinuxIORESOURCE_IRQ_*defines:
@@ -288,6 +288,15 @@fsl,descriptor-types-mask=<0x3ab0ebf>;};+sdhci@2e000{+compatible="fsl,mpc8379-esdhc";+reg=<0x2e0000x1000>;+interrupts=<420x8>;+interrupt-parent=<&ipic>;+/* Filled in by U-Boot */+clock-frequency=<0>;+};+sata@18000{compatible="fsl,mpc8379-sata","fsl,pq-sata";reg=<0x180000x1000>;
From: Kumar Gala <hidden> Date: 2009-02-06 02:53:02
On Feb 5, 2009, at 1:04 PM, Anton Vorontsov wrote:
On Thu, Jan 22, 2009 at 01:15:01PM -0600, Kumar Gala wrote:
quoted
On Jan 21, 2009, at 8:00 PM, Anton Vorontsov wrote:
quoted
This patch adds a new driver: sdhci-of. The driver is similar to
the sdhci-pci, it contains common probe code, and controller-
specific
ops and quirks.
So far there are only Freescale eSDHC ops and quirks.
Signed-off-by: Anton Vorontsov <redacted>
---
drivers/mmc/host/Kconfig | 10 ++
drivers/mmc/host/Makefile | 1 +
drivers/mmc/host/sdhci-of.c | 274 ++++++++++++++++++++++++++++++++
++
+++++++++
3 files changed, 285 insertions(+), 0 deletions(-)
create mode 100644 drivers/mmc/host/sdhci-of.c
Still griping about lack of OF binding docs for this.
Here they're.
I'm assuming that MPC8536 is the first chip in 85xx family with eSDHC.
thanks. MPC8536 is the first. Do we need a u-boot patch for clock-
frequency on 85xx?
- k
From: Anton Vorontsov <hidden> Date: 2009-02-06 15:37:44
On Thu, Feb 05, 2009 at 08:52:56PM -0600, Kumar Gala wrote:
On Feb 5, 2009, at 1:04 PM, Anton Vorontsov wrote:
quoted
On Thu, Jan 22, 2009 at 01:15:01PM -0600, Kumar Gala wrote:
quoted
On Jan 21, 2009, at 8:00 PM, Anton Vorontsov wrote:
quoted
This patch adds a new driver: sdhci-of. The driver is similar to
the sdhci-pci, it contains common probe code, and controller-
specific
ops and quirks.
So far there are only Freescale eSDHC ops and quirks.
Signed-off-by: Anton Vorontsov <redacted>
---
drivers/mmc/host/Kconfig | 10 ++
drivers/mmc/host/Makefile | 1 +
drivers/mmc/host/sdhci-of.c | 274 ++++++++++++++++++++++++++++++++
++
+++++++++
3 files changed, 285 insertions(+), 0 deletions(-)
create mode 100644 drivers/mmc/host/sdhci-of.c
Still griping about lack of OF binding docs for this.
Here they're.
I'm assuming that MPC8536 is the first chip in 85xx family with eSDHC.
thanks. MPC8536 is the first. Do we need a u-boot patch for clock-
frequency on 85xx?
Yes, I'll prepare U-Boot patches soon (on top of Andy Fleming's
eSDHC work):
http://www.mail-archive.com/u-boot@lists.denx.de/msg04183.html
W/o the U-Boot patches SDHCI driver will just fail to probe
(gracefully, saying that the controller doesn't specify sdclk).
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
From: Kumar Gala <hidden> Date: 2009-02-06 16:49:59
On Feb 5, 2009, at 1:04 PM, Anton Vorontsov wrote:
- sdhc node renamed to sdhci ("sdhc" name is confusing since SDHC is
used to name Secure Digital High Capacity cards, while SDHCI is an
interface).
- Get rid of "fsl,esdhc" compatible entry, it's replaced by the
"fsl,<chip>-esdhc" scheme;
- Get rid of `model' property.
Signed-off-by: Anton Vorontsov <redacted>
---
arch/powerpc/boot/dts/mpc8377_mds.dts | 7 ++++---
arch/powerpc/boot/dts/mpc8378_mds.dts | 7 ++++---
arch/powerpc/boot/dts/mpc8379_mds.dts | 7 ++++---
3 files changed, 12 insertions(+), 9 deletions(-)
From: Kumar Gala <hidden> Date: 2009-02-06 16:50:08
On Feb 5, 2009, at 1:04 PM, Anton Vorontsov wrote:
Simply add appropriate sdhci nodes.
Note that U-Boot should configure pin multiplexing for eSDHC prior
to Linux could use it. U-Boot should also fill-in the clock-frequency
property (eSDHC clock depends on board-specific SCCR[ESDHCCM] bits).
Signed-off-by: Anton Vorontsov <redacted>
---
arch/powerpc/boot/dts/mpc8377_rdb.dts | 9 +++++++++
arch/powerpc/boot/dts/mpc8378_rdb.dts | 9 +++++++++
arch/powerpc/boot/dts/mpc8379_rdb.dts | 9 +++++++++
3 files changed, 27 insertions(+), 0 deletions(-)