]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: mmc: rockchip_dw_mmc: fix ciu clock index
authorJohan Jonker <jbx6244@gmail.com>
Sat, 9 Apr 2022 16:55:08 +0000 (18:55 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 18 Apr 2022 03:25:13 +0000 (11:25 +0800)
commit9d75dafb1bee4cdc165c3c3ca246e9bc70690a7f
tree6caef2a43ca4ab7410170f9123da16a892df19e9
parent3930209526b32d9075ee9c01e87ee50201934313
rockchip: mmc: rockchip_dw_mmc: fix ciu clock index

The document rockchip-dw-mshc.yaml decribes a maximum of 4 clocks.
In the rockchip_dw_mmc driver the clock name in use was "fixed"
to "ciu" with index 1, but later reverted back to index 0.
The clock drivers can handle both, but the calling driver
should submit correct data as a standard practice.
Fix the "ciu" clock index by setting it back to 1.

  clock-names:
    minItems: 2
    items:
      - const: biu
      - const: ciu
      - const: ciu-drive
      - const: ciu-sample

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/mmc/rockchip_dw_mmc.c