summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-05-15 22:35:04 +0000
committerian <ian@FreeBSD.org>2014-05-15 22:35:04 +0000
commitdbea31deb0f37bf5ff55e4cd39230b347deba1c1 (patch)
treecef68e1a6c248da2baa48f4d75039c40c41bf65d /sys/boot
parentedd0d85b77e836c83c4c913351ed136b5b963f9d (diff)
downloadFreeBSD-src-dbea31deb0f37bf5ff55e4cd39230b347deba1c1.zip
FreeBSD-src-dbea31deb0f37bf5ff55e4cd39230b347deba1c1.tar.gz
MFC r261938, r261939, r261940, r261944, r261945, r261946, r261947, r261956, r261957, r261983, r261094,
r261955, r261958, Add a driver to provide access to imx6 on-chip one-time-programmble data. Make it possible to access the ocotp registers before the ocotp device is attached, by establishing a temporary mapping of the registers when necessary. It turns out Freescale cleverly made the ocotp device compatible across several different families of SoCs, so move it to the freescale directory and prefix everything with fsl rather than imx6. Convert the imx6 sdhci "R1B fix" from a busy-loop in the interrupt handler to a callout. Increase the wait time for acquiring the SD bus from 10 to 250ms. If no compatible cards were found after probing the SD bus, say so. Add timeout logic to sdhci, separate from the timeouts done by the hardware. After a timeout, reset the controller using SDHCI_RESET_CMD|SDHCI_RESET_DATA rather than SDHCI_RESET_ALL; the latter turns off clocks and power, removing any possibility of recovering from the error. Add a helper routine to depth-search the device tree for a node with a matching 'compatible' property.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/fdt/dts/imx6.dtsi5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/boot/fdt/dts/imx6.dtsi b/sys/boot/fdt/dts/imx6.dtsi
index e46c55b..377a4af 100644
--- a/sys/boot/fdt/dts/imx6.dtsi
+++ b/sys/boot/fdt/dts/imx6.dtsi
@@ -337,6 +337,11 @@
bus-width = <0x4>;
status ="disabled";
};
+
+ ocotp0: ocotp@021bc000 {
+ compatible = "fsl,imx6q-ocotp";
+ reg = <0x021bc000 0x4000>;
+ }
};
};
};
OpenPOWER on IntegriCloud