]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: board: cm-fx6: fix mmc for old revisions of utilite
authorChristopher Spinrath <christopher.spinrath@rwth-aachen.de>
Thu, 16 Jun 2016 12:02:56 +0000 (14:02 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Jul 2016 15:58:48 +0000 (17:58 +0200)
Old revisions of Utilite (based on cm-fx6) do not have a dedicated
card detect pin. But the card is removable by the user and card
detection can be realized with polling (e.g. supported by Linux).

Add the broken-cd property to the mmc device tree instead of the
non-removable property to make card detection possible if polling
is supported.

Signed-off-by: Christopher Spinrath <christopher.spinrath@rwth-aachen.de>
Acked-by: Nikita Kiryanov <nikita@compulab.co.il>
board/compulab/cm_fx6/cm_fx6.c

index a21e7b00e1f0f24d2d7de9b1957cf66724df1841..712057a6c5c3ee9d0cd8cf215e42061713f7b6f4 100644 (file)
@@ -610,7 +610,7 @@ int ft_board_setup(void *blob, bd_t *bd)
                fdt_shrink_to_minimum(blob); /* Make room for new properties */
                nodeoffset = fdt_path_offset(blob, USDHC3_PATH);
                fdt_delprop(blob, nodeoffset, "cd-gpios");
-               fdt_find_and_setprop(blob, USDHC3_PATH, "non-removable",
+               fdt_find_and_setprop(blob, USDHC3_PATH, "broken-cd",
                                     NULL, 0, 1);
                fdt_find_and_setprop(blob, USDHC3_PATH, "keep-power-in-suspend",
                                     NULL, 0, 1);