summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPurna Chandra Mandal <purna.mandal@microchip.com>2016-01-28 15:30:19 +0530
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2016-02-01 22:14:02 +0100
commitc76eb72c43ac3ef4518dac4bee653b769d95e63e (patch)
tree804e46d9d782e7d4298d71337d413f437429d80f /arch
parent102142c9e01f1b40b02db5239710bf37f4a17293 (diff)
downloadu-boot-imx-c76eb72c43ac3ef4518dac4bee653b769d95e63e.zip
u-boot-imx-c76eb72c43ac3ef4518dac4bee653b769d95e63e.tar.gz
u-boot-imx-c76eb72c43ac3ef4518dac4bee653b769d95e63e.tar.bz2
board: add SDHCI support for PIC32MZDASK board.
Enable MMC, SDHCI, FAT_FS support for PIC32MZ[DA] StarterKit. Also add custom scripts, rules to boot Linux from microSD card. Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/dts/pic32mzda.dtsi11
-rw-r--r--arch/mips/dts/pic32mzda_sk.dts7
2 files changed, 18 insertions, 0 deletions
diff --git a/arch/mips/dts/pic32mzda.dtsi b/arch/mips/dts/pic32mzda.dtsi
index c67cfa9..f1894ec 100644
--- a/arch/mips/dts/pic32mzda.dtsi
+++ b/arch/mips/dts/pic32mzda.dtsi
@@ -150,4 +150,15 @@
#gpio-cells = <2>;
};
};
+
+ sdhci: sdhci@1f8ec000 {
+ compatible = "microchip,pic32mzda-sdhci";
+ reg = <0x1f8ec000 0x100>;
+ interrupts = <191 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clock REF4CLK>, <&clock PB5CLK>;
+ clock-names = "base_clk", "sys_clk";
+ clock-freq-min-max = <25000000>,<25000000>;
+ bus-width = <4>;
+ status = "disabled";
+ };
};
diff --git a/arch/mips/dts/pic32mzda_sk.dts b/arch/mips/dts/pic32mzda_sk.dts
index 99e7f64..f886a0f 100644
--- a/arch/mips/dts/pic32mzda_sk.dts
+++ b/arch/mips/dts/pic32mzda_sk.dts
@@ -23,6 +23,9 @@
};
&clock {
+ microchip,refo2-frequency = <50000000>;
+ microchip,refo4-frequency = <25000000>;
+ microchip,refo5-frequency = <40000000>;
status = "okay";
u-boot,dm-pre-reloc;
};
@@ -36,3 +39,7 @@
status = "okay";
u-boot,dm-pre-reloc;
};
+
+&sdhci {
+ status = "okay";
+}; \ No newline at end of file