@@ -76,6 +76,7 @@ clocks and IDs.
usb0_phy 62
usb1_phy 63
enet_out 64
+ rtc_32k 65
Examples:
@@ -47,6 +47,11 @@
#address-cells = <1>;
#size-cells = <0>;
+ xtal-32k {
+ compatible = "fsl,mxs-xtal-32k", "fixed-clock";
+ clock-frequency = <0>;
+ };
+
xtal-24m {
compatible = "fsl,mxs-xtal-24m", "fixed-clock";
clock-frequency = <24000000>;
@@ -144,7 +144,7 @@ enum imx28_clk {
clk32k_div, rtc, lradc, spdif_div, clk32k, pwm, uart, ssp0,
ssp1, ssp2, ssp3, gpmi, spdif, emi, saif0, saif1, lcdif, etm,
fec, can0, can1, usb0, usb1, usb0_phy, usb1_phy, enet_out,
- clk_max
+ rtc_32k, clk_max
};
static struct clk *clks[clk_max];
@@ -178,6 +178,8 @@ int __init mx28_clocks_init(void)
if (of_device_is_compatible(np_tmp, "fsl,mxs-xtal-24m"))
clks[ref_xtal] = mxs_clk_fixed("ref_xtal", rate);
+ else if (of_device_is_compatible(np_tmp, "fsl,mxs-xtal-32k"))
+ clks[rtc_32k] = mxs_clk_fixed("rtc_32k", rate);
}
/* if not set, use default frequency */