23 Jan, 2013

1 commit

  • Convert all uses of devm_request_and_ioremap() to the newly introduced
    devm_ioremap_resource() which provides more consistent error handling.

    devm_ioremap_resource() provides its own error messages so all explicit
    error messages can be removed from the failure code paths.

    Signed-off-by: Thierry Reding
    Signed-off-by: Greg Kroah-Hartman

    Thierry Reding
     

04 Jan, 2013

1 commit

  • CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
    markings need to be removed.

    This change removes the use of __devinit, __devexit_p, and
    __devinitconst, from these drivers.

    Based on patches originally written by Bill Pemberton, but redone by me
    in order to handle some of the coding style issues better, by hand.

    Cc: Bill Pemberton
    Cc: Hiroshi DOYU
    Cc: Stephen Warren
    Cc: Axel Lin
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

27 Sep, 2012

2 commits


06 Sep, 2012

1 commit

  • Commit e6b42eb "memory: emif: add device tree support to emif driver"
    added drivers/memory/of_memory.c, which references tables defined in
    lib/jedec_ddr_data.c. of_memory.c is compiled when CONFIG_OF, whereas
    jedec_ddr_data.c is compiled when CONFIG_DDR. This breaks the build
    when CONFIG_OF is defined but not CONFIG_DDR:

    drivers/built-in.o: In function `of_get_ddr_timings':
    drivers/memory/of_memory.c:138: undefined reference to `lpddr2_jedec_timings'
    drivers/built-in.o: In function `of_get_min_tck':
    drivers/memory/of_memory.c:62: undefined reference to `lpddr2_jedec_min_tck'
    make: *** [vmlinux] Error 1

    To solve this, only compile of_memory.c when CONFIG_OF && CONFIG_DDR,
    otherwise, stub out the functions.

    Signed-off-by: Stephen Warren
    Signed-off-by: Greg Kroah-Hartman

    Stephen Warren
     

05 Sep, 2012

1 commit

  • Device tree support for the EMIF driver. LPDDR2 generic timings
    extraction from device is managed using couple of helper
    functions which can be used by other memory controller
    drivers.

    Reviewed-by: Benoit Cousson
    Reviewed-by: Grant Likely
    Tested-by: Lokesh Vutla
    Signed-off-by: Aneesh V
    Signed-off-by: Santosh Shilimkar
    Cc: Greg Kroah-Hartman
    Signed-off-by: Greg Kroah-Hartman

    Aneesh V
     

15 May, 2012

1 commit


14 May, 2012

1 commit


12 May, 2012

4 commits


11 May, 2012

2 commits


05 May, 2012

1 commit


03 May, 2012

4 commits

  • Add debug entries for:
    1. calculated registers per frequency
    2. last polled value of MR4(temperature level
    of LPDDR2 memory)

    Signed-off-by: Aneesh V
    Reviewed-by: Santosh Shilimkar
    Reviewed-by: Benoit Cousson
    [santosh.shilimkar@ti.com: Moved to drivers/memory from drivers/misc]
    Signed-off-by: Santosh Shilimkar
    Tested-by: Lokesh Vutla
    Signed-off-by: Greg Kroah-Hartman

    Aneesh V
     
  • Add settings that are not dependent on frequency
    or any other transient parameters. This includes
    - power managment control init
    - impedence calibration control
    - frequency independent phy configuration registers
    - initialization of temperature polling

    Signed-off-by: Aneesh V
    Reviewed-by: Santosh Shilimkar
    Reviewed-by: Benoit Cousson
    [santosh.shilimkar@ti.com: Moved to drivers/memory from drivers/misc]
    Signed-off-by: Santosh Shilimkar
    Tested-by: Lokesh Vutla
    Signed-off-by: Greg Kroah-Hartman

    Aneesh V
     
  • Add an ISR for EMIF that:
    1. reports details of access errors
    2. takes action on thermal events

    Also clear all interrupts on shut-down. Pending IRQs
    may casue problems during warm-reset.

    Temperature handling:
    EMIF can be configured to poll the temperature level
    of an LPDDR2 device from the MR4 mode register in the
    device. EMIF generates an interrupt whenever it identifies
    a temperature level change between two consecutive pollings.

    Some of the timing parameters need to be de-rated at high
    temperatures. The interrupt handler takes care of doing
    this and also takes care of going back to nominal settings
    when temperature falls back to nominal levels.

    Signed-off-by: Aneesh V
    Reviewed-by: Santosh Shilimkar
    Reviewed-by: Benoit Cousson
    [santosh.shilimkar@ti.com: Moved to drivers/memory from drivers/misc]
    Signed-off-by: Santosh Shilimkar
    Signed-off-by: Greg Kroah-Hartman

    Aneesh V
     
  • Change SDRAM timings and other settings as necessary
    on voltage and frequency changes. We calculate these
    register settings based on data from the device data
    sheet and inputs such a frequency, voltage state(stable
    or ramping), temperature level etc.

    TODO: frequency and voltage change handling needs to
    be integrated with clock framework and regulator
    framework respectively. This is not done today
    due to missing pieces in the kernel.

    Signed-off-by: Aneesh V
    Reviewed-by: Santosh Shilimkar
    Reviewed-by: Benoit Cousson
    [santosh.shilimkar@ti.com: Moved to drivers/memory from drivers/misc]
    Signed-off-by: Santosh Shilimkar
    Tested-by: Lokesh Vutla
    Signed-off-by: Greg Kroah-Hartman

    Aneesh V
     

02 May, 2012

2 commits

  • EMIF is an SDRAM controller used in various Texas Instruments
    SoCs. EMIF supports, based on its revision, one or more of
    LPDDR2/DDR2/DDR3 protocols.

    Add the basic infrastructure for EMIF driver that includes
    driver registration, probe, parsing of platform data etc.

    Signed-off-by: Aneesh V
    Reviewed-by: Santosh Shilimkar
    Reviewed-by: Benoit Cousson
    [santosh.shilimkar@ti.com: Moved to drivers/memory from drivers/misc]
    Signed-off-by: Santosh Shilimkar
    Tested-by: Lokesh Vutla
    Signed-off-by: Greg Kroah-Hartman

    Aneesh V
     
  • Add register offsets and bit field definitions
    for EMIF module in TI SoCs

    Signed-off-by: Aneesh V
    Reviewed-by: Santosh Shilimkar
    Reviewed-by: Benoit Cousson
    [santosh.shilimkar@ti.com: Moved to drivers/memory from drivers/misc]
    Signed-off-by: Santosh Shilimkar
    Tested-by: Lokesh Vutla
    Signed-off-by: Greg Kroah-Hartman

    Aneesh V