mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-15 07:43:07 +00:00
fc9d4b123d
So far there is no need for a clock driver in U-Boot because the previous boot stage leaves all the necessary clocks on. However, some drivers in U-Boot (e.g. arm_pl180_mmci) depend on having a clock driver to obtain the clock frequency. Setting up the clock drivers properly is a bit tricky on U8500, so for now add a simple fixed-clock for the eMMC that allows obtaining the clock frequency. This should be replaced eventually if some board actually requires enabling some of the clocks. Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
38 lines
654 B
Text
38 lines
654 B
Text
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "skeleton.dtsi"
|
|
#include "ste-dbx5x0.dtsi"
|
|
|
|
/ {
|
|
/* FIXME: Remove this when clk driver is implemented */
|
|
sdmmcclk: sdmmcclk {
|
|
compatible = "fixed-clock";
|
|
#clock-cells = <0>;
|
|
clock-frequency = <100000000>;
|
|
};
|
|
|
|
soc {
|
|
mtu@a03c6000 {
|
|
clock-frequency = <133000000>;
|
|
};
|
|
uart@80120000 {
|
|
clock = <38400000>;
|
|
};
|
|
uart@80121000 {
|
|
clock = <38400000>;
|
|
};
|
|
uart@80007000 {
|
|
clock = <38400000>;
|
|
};
|
|
mmc@80005000 {
|
|
clocks = <&sdmmcclk>;
|
|
};
|
|
};
|
|
|
|
reboot {
|
|
compatible = "syscon-reboot";
|
|
regmap = <&prcmu>;
|
|
offset = <0x228>; /* PRCM_APE_SOFTRST */
|
|
mask = <0x1>;
|
|
};
|
|
};
|