Skip to content
  • Cédric Le Goater's avatar
    f31e8f13
    aspeed/sdhci: Fix reset sequence · f31e8f13
    Cédric Le Goater authored
    
    
    BIT(0) of the ASPEED_SDHCI_INFO register is set by SW and polled until
    the bit is cleared by HW.
    
    Use the number of supported slots to define the default value of this
    register (The AST2600 eMMC Controller only has one). Fix the reset
    sequence by clearing automatically the RESET bit.
    
    Cc: Eddie James <eajames@linux.ibm.com>
    Fixes: 2bea128c ("hw/sd/aspeed_sdhci: New device")
    Reviewed-by: default avatarJoel Stanley <joel@jms.id.au>
    Message-Id: <20200819100956.2216690-9-clg@kaod.org>
    Signed-off-by: default avatarCédric Le Goater <clg@kaod.org>
    f31e8f13
    aspeed/sdhci: Fix reset sequence
    Cédric Le Goater authored
    
    
    BIT(0) of the ASPEED_SDHCI_INFO register is set by SW and polled until
    the bit is cleared by HW.
    
    Use the number of supported slots to define the default value of this
    register (The AST2600 eMMC Controller only has one). Fix the reset
    sequence by clearing automatically the RESET bit.
    
    Cc: Eddie James <eajames@linux.ibm.com>
    Fixes: 2bea128c ("hw/sd/aspeed_sdhci: New device")
    Reviewed-by: default avatarJoel Stanley <joel@jms.id.au>
    Message-Id: <20200819100956.2216690-9-clg@kaod.org>
    Signed-off-by: default avatarCédric Le Goater <clg@kaod.org>
Loading