details of u-boot reading support for efusA9 emmc

  • I'm trying to add reading support for emmc on efusA9 to u-boot from V3.0


    The diff below to fsimx6.c board file seems to work as it enables reading a file from an emmc partition,
    but I'm quite puzzled about the details.

    • The devicetree patch explicitly mentions vmmc-supply, allthough there doesn't seem to be an equivalent in the board file for adding this.
    • Is a bus width of 8 needed or desirable for just reading or is this only for additional stuff?
      (WLAN or other RF modems (like mentioned in the board file comments))
    • The pad configuration of the reset button in the device tree is 0x1B071, a value,
      that isn't completely explained by https://www.kosagi.com/w/index…ce_Tree_Naming_Convention
      What does this mean to achive and is it actually sufficient just to replace it with IOMUX_PADS(PAD_SD3_RST__SD3_RESET | MUX_PAD_CTRL(NO_PAD_CTRL)) in u-boot?
    • Does the reset pin need additional initialization?


  • The devicetree patch explicitly mentions vmmc-supply, allthough there doesn't seem to be an equivalent in the board file for adding this.


    The VMMC supply is a non-switchable supply. So it is not necessary to switch it on, it is always on.


    Quote

    Is a bus width of 8 needed or desirable for just reading or is this only for additional stuff?


    The higher buswidth can be used for higher access speed. However I would try with 4 bits first and only when this is fully working, switch to 8 bits.


    Quote

    The pad configuration of the reset button in the device tree is 0x1B071, a value,
    that isn't completely explained by kosagi.com/w/index.php?title=D…ce_Tree_Naming_Convention


    Why is this not explained? All bits are fully described in the list there.


    Quote

    What does this mean to achive and is it actually sufficient just to replace it with IOMUX_PADS(PAD_SD3_RST__SD3_RESET | MUX_PAD_CTRL(NO_PAD_CTRL)) in u-boot?


    This value is the pin configuration, i.e. whether the pin uses a pull-up resistor, the speed requirements, the drive strength, and so on. If you just give NO_PAD_CTRL, then these settings are set to 0, which is usually not what you want. So no, using NO_PAD_CTRL is not sufficient. If you do not want to give the hex value, all necessary defines are available in arch/arm/inlcude/asm/imx-common/iomux-v3.h


    Quote

    Does the reset pin need additional initialization?


    It should be configured as in Linux. The rest is done by the SDHC controller.


    Your F&S Support Team

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.