summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Warren <swarren@wwwdotorg.org>2012-12-24 21:58:56 -0700
committerStephen Warren <swarren@wwwdotorg.org>2013-01-14 21:47:08 -0700
commit5186bf287aa4393b78c36f548d9b06001046b65e (patch)
treec197bfd3a11c9671465a9c0cec9d0ca6de11c390
parent6520700fdb2cc07ed86e893a2e88c491e04d6b75 (diff)
downloadtalos-op-linux-5186bf287aa4393b78c36f548d9b06001046b65e.tar.gz
talos-op-linux-5186bf287aa4393b78c36f548d9b06001046b65e.zip
ARM: bcm2835: add SDHCI node to DT
Add the SDHCI device node to the SoC DT file. Add a dummy fixed-clock to satisfy the SDHCI driver's clock lookup; eventually this should be replaced by a real clock implementation. Add board specific properties to the Raspberry Pi board file. Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
-rw-r--r--arch/arm/boot/dts/bcm2835-rpi-b.dts5
-rw-r--r--arch/arm/boot/dts/bcm2835.dtsi14
2 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/bcm2835-rpi-b.dts b/arch/arm/boot/dts/bcm2835-rpi-b.dts
index 6ff26f99cacd..0544ef860623 100644
--- a/arch/arm/boot/dts/bcm2835-rpi-b.dts
+++ b/arch/arm/boot/dts/bcm2835-rpi-b.dts
@@ -24,3 +24,8 @@
brcm,function = <7>; /* alt3 */
};
};
+
+&sdhci {
+ status = "okay";
+ bus-width = <4>;
+};
diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi
index 8917550fd1bb..1d7e4f5c0b1e 100644
--- a/arch/arm/boot/dts/bcm2835.dtsi
+++ b/arch/arm/boot/dts/bcm2835.dtsi
@@ -63,5 +63,19 @@
interrupt-controller;
#interrupt-cells = <2>;
};
+
+ sdhci: sdhci {
+ compatible = "brcm,bcm2835-sdhci";
+ reg = <0x7e300000 0x100>;
+ interrupts = <2 30>;
+ clocks = <&clk_mmc>;
+ status = "disabled";
+ };
+ };
+
+ clk_mmc: clock {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <100000000>;
};
};
OpenPOWER on IntegriCloud