Skip to content

Commit

Permalink
ARM: bcm2835: add SDHCI node to DT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Warren committed Jan 15, 2013
1 parent 6520700 commit 5186bf2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/bcm2835-rpi-b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@
brcm,function = <7>; /* alt3 */
};
};

&sdhci {
status = "okay";
bus-width = <4>;
};
14 changes: 14 additions & 0 deletions arch/arm/boot/dts/bcm2835.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
};
};

0 comments on commit 5186bf2

Please sign in to comment.