board: add SDHCI support for PIC32MZDASK board
PATCH v2 9/13 board: add SDHCI support for PIC32MZDASK board
Added custom environment variables and rules to locate and load files (from uSD card) in order to boot Linux.
Signed-off-by Purna Chandra Mandal <[email protected]>
---
Changes in v2: None
arch/mips/dts/pic32mzda.dtsi | 13 +++++++++ arch/mips/dts/pic32mzda_sk.dts | 7 +++++ configs/pic32mzdask_defconfig | 2 ++ include/configs/pic32mzdask.h | 61 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 83 insertions(+)
arch/mips/dts/pic32mzda.dtsi +13 -0
@@ -61,4 +61,17 @@ <0x1f801500 0x200>; /* out */ status = "disabled"; }; + + sdhci: sdhci at 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"; + bus-width = <4>; + cap-sd-highspeed; + clock-freq-min-max = <25000000>,<25000000>; + clock-irq-pins = <1>,<1>; + status = "disabled"; + }; };
arch/mips/dts/pic32mzda_sk.dts +7 -0
@@ -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"; +};
configs/pic32mzdask_defconfig +2 -0
@@ -19,3 +19,5 @@ CONFIG_CLK=y CONFIG_PINCTRL=y # CONFIG_PINCTRL_FULL is not set CONFIG_PIC32_PINCTRL=y +CONFIG_DM_MMC=y +CONFIG_PIC32_SDHCI=y
include/configs/pic32mzdask.h +61 -0
71 lines not on this page · raw message
Signature · 1 line
1.8.3.1