01 Jun, 2017

1 commit

  • These support the flat device tree. We want to use the dev_read_..()
    prefix for functions that support both flat tree and live tree. So rename
    the existing functions to avoid confusion.

    In the end we will have:

    1. dev_read_addr...() - works on devices, supports flat/live tree
    2. devfdt_get_addr...() - current functions, flat tree only
    3. of_get_address() etc. - new functions, live tree only

    All drivers will be written to use 1. That function will in turn call
    either 2 or 3 depending on whether the flat or live tree is in use.

    Note this involves changing some dead code - the imx_lpi2c.c file.

    Signed-off-by: Simon Glass

    Simon Glass
     

10 May, 2017

1 commit


14 Apr, 2017

1 commit

  • The linux kernel driver for this module does not use a delay when
    writing to the SDHCI_BUFFER register. This patch mimics that behavior
    in order to speed up the mmc writes on the Raspberry Pi.

    Signed-off-by: Alex Deymo
    Reviewed-by: Simon Glass

    Jocelyn Bohr
     

23 Jan, 2017

1 commit


10 Oct, 2016

2 commits


27 Mar, 2016

1 commit


26 Jun, 2015

1 commit

  • Patch 33fe2fb8df01647f97a7bce96a1c7781a7f6d253 titled
    "mmc: bcm283x: Remove get_timer_us() from mmc driver"
    incorrectly replaced ad-hoc get_timer_us() function
    with a plain get_timer(). The get_timer() operates in
    mSec units instead of uSec though, which caused very
    slow operation of the driver.

    Restore the original behavior of the driver, but avoid
    get_timer_us() and use timer_get_us() instead. The later
    is part of the standard API.

    Signed-off-by: Marek Vasut
    Cc: Jakub Kiciński
    Cc: Stephen Warren
    Tested-by: Jakub Kicinski

    Marek Vasut
     

05 May, 2015

2 commits


28 Mar, 2015

1 commit


26 Oct, 2014

1 commit


01 Aug, 2014

1 commit


04 Apr, 2013

1 commit

  • Apparently, CONFIG_SYS_HZ must be 1000. Change this, and fix the timer
    driver to conform to this.

    Have the timer implementation export a custom API get_timer_us() for use
    by the BCM2835 MMC API, which needs us resolution for a HW workaround.

    Signed-off-by: Stephen Warren

    Stephen Warren
     

20 Mar, 2013

1 commit

  • This adds a simple driver for the BCM2835's SD controller.

    Workarounds are implemented for:
    * Register writes can't be too close to each-other in time, or they will
    be lost.
    * Register accesses must all be 32-bit, so implement custom accessors.

    This code was extracted from:
    git://github.com/gonzoua/u-boot-pi.git master
    which was created by Oleksandr Tymoshenko.

    Portions of the code there were obviously based on the Linux kernel at:
    git://github.com/raspberrypi/linux.git rpi-3.6.y
    commit f5b930b "Main bcm2708 linux port" signed-off-by Dom Cobley.

    swarren changed the following for upstream:
    * Removed hack udelay()s in bcm2835_sdhci_raw_writel(); setting
    SDHCI_QUIRK_WAIT_SEND_CMD appears to solve the issues.
    * Remove register logging from read*/write* functions.
    * Sort out confusion with min/max_freq values passed to add_sdhci().
    * Use more descriptive variable names and calculations in IO accessors.
    * Simplified and commented twoticks_delay calculation.
    * checkpatch fixes.

    Cc: Andy Fleming
    Signed-off-by: Oleksandr Tymoshenko
    Signed-off-by: Stephen Warren
    Acked-by: Andy Fleming

    Stephen Warren