29 Aug, 2013

1 commit


15 Aug, 2013

1 commit


13 Aug, 2013

20 commits

  • TMU probe function now checks for a device tree defined regulator.
    For compatibility reasons it is allowed to probe driver even without
    this regulator defined.

    Acked-by: Jonghwa Lee
    Acked-by: Eduardo Valentin
    Signed-off-by: Lukasz Majewski
    Signed-off-by: Kyungmin Park
    Signed-off-by: Amit Daniel Kachhap
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This patch adds support for h/w mode calibration in the TMU controller.
    Soc's like 5440 support this features. The h/w bits needed for calibration
    setting are same as that of enum calibration_type.

    Acked-by: Jonghwa Lee
    Acked-by: Kukjin Kim
    Signed-off-by: Amit Daniel Kachhap
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This patch sets the second point trimming value according to the platform
    data if the register value is 0.

    Acked-by: Jonghwa Lee
    Acked-by: Kukjin Kim
    Acked-by: Eduardo Valentin
    Signed-off-by: Amit Daniel Kachhap
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This patch adds configuration data for exynos5440 soc. Also register
    definations for the controller are added.

    Acked-by: Jonghwa Lee
    Acked-by: Kukjin Kim
    Signed-off-by: Amit Daniel Kachhap
    Acked-by: Eduardo Valentin
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This patch modifies TMU controller to add changes needed to work with
    exynos5440 platform. This sensor registers 3 instance of the tmu controller
    with the thermal zone and hence reports 3 temperature output. This controller
    supports upto five trip points. For critical threshold the driver uses the
    core driver thermal framework for shutdown.

    Acked-by: Jonghwa Lee
    Acked-by: Kukjin Kim
    Signed-off-by: Jungseok Lee
    Signed-off-by: Amit Daniel Kachhap
    Acked-by: Eduardo Valentin
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This patch adds support to parse one more common set of TMU register. First
    set of register belongs to each instance of TMU and second set belongs to
    common TMU registers.

    Acked-by: Jonghwa Lee
    Acked-by: Kukjin Kim
    Acked-by: Eduardo Valentin
    Signed-off-by: Amit Daniel Kachhap
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This patch adds several features supported by TMU as bitfields.
    This features varies across different SOC type and comparing
    the features present in the TMU is more logical than comparing
    the soc itself.

    Acked-by: Kukjin Kim
    Acked-by: Jonghwa Lee
    Acked-by: Eduardo Valentin
    Signed-off-by: Amit Daniel Kachhap
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This patch adds support to handle multiple instances of the TMU controllers.
    This is done by removing the static structure to register with the core thermal
    and creating it dynamically for each instance of the TMU controller. The
    interrupt is made shared type to handle shared interrupts. Now since the ISR needs
    the core thermal framework to be registered so request_irq is moved after the core
    registration is done.
    Also the identifier of the TMU controller is extracted from device tree alias. This
    will be used for TMU specific initialisation.

    Acked-by: Kukjin Kim
    Acked-by: Jonghwa Lee
    Signed-off-by: Amit Daniel Kachhap
    Acked-by: Eduardo Valentin
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • Recently non DT support from Exynos platform is removed and hence
    removing non DT support from the driver also. This will help in easy
    maintainence.

    Acked-by: Jonghwa Lee
    Acked-by: Eduardo Valentin
    Signed-off-by: Amit Daniel Kachhap
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This code simplifies the zone handling to use the trip information passed
    by the TMU driver and not the hardcoded macros. This also helps in adding
    more zone support.

    Acked-by: Kukjin Kim
    Acked-by: Jonghwa Lee
    Signed-off-by: Amit Daniel Kachhap
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This patch renames member private_data to driver_data of the thermal
    zone registration structure as this item stores the driver related
    data and uses it to call the driver related callbacks.

    Acked-by: Kukjin Kim
    Acked-by: Jonghwa Lee
    Acked-by: Eduardo Valentin
    Signed-off-by: Amit Daniel Kachhap
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This code modifies the thermal driver to have multiple thermal zone
    support by replacing the global thermal zone variable with device data
    member of thermal_zone_device.

    Acked-by: Kukjin Kim
    Acked-by: Jonghwa Lee
    Acked-by: Eduardo Valentin
    Signed-off-by: Amit Daniel Kachhap
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This patch uses the TMU status register to know the generated interrupts
    and only clear them in the interrupt handler.

    Acked-by: Kukjin Kim
    Acked-by: Jonghwa Lee
    Acked-by: Eduardo Valentin
    Signed-off-by: Amit Daniel Kachhap
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • TMU urgently sends active-high signal (thermal trip) to PMU, and thermal
    tripping by hardware logic. Thermal tripping means that PMU cuts off the
    whole power of SoC by controlling external voltage regulator.

    Acked-by: Kukjin Kim
    Acked-by: Jonghwa Lee
    Acked-by: Eduardo Valentin
    Signed-off-by: Jonghwan Choi
    Signed-off-by: Amit Daniel Kachhap
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This patch migrates the TMU register definition/bitfields to data file. This
    is needed to support SoC's which use the same TMU controller but register
    validity, offsets or bitfield may slightly vary across SOC's.

    Acked-by: Kukjin Kim
    Acked-by: Jonghwa Lee
    Acked-by: Eduardo Valentin
    Signed-off-by: Amit Daniel Kachhap
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This patch adds entries min_efuse_value, max_efuse_value, default_temp_offset,
    trigger_type, cal_type, trim_first_point, trim_second_point, max_trigger_level
    trigger_enable in the TMU platform data structure. Also the driver is modified
    to use the data passed by these new platform memebers instead of the constant
    macros. All these changes helps in separating the SOC specific data part from
    the TMU driver.

    Acked-by: Kukjin Kim
    Acked-by: Jonghwa Lee
    Signed-off-by: Amit Daniel Kachhap
    Acked-by: Eduardo Valentin
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This patch adds some extra register bitfield definations and cleans
    up the code to prepare for moving register macros and definations inside
    the TMU data section. In this code cleanup the TMU enable bit is correctly used
    as bit0 and bit1 is taken care which is reserve bit.

    Acked-by: Kukjin Kim
    Acked-by: Jonghwa Lee
    Signed-off-by: Amit Daniel Kachhap
    Acked-by: Eduardo Valentin
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This code splits the exynos tmu driver code into SOC specific data parts.
    This will simplify adding new SOC specific data to the same TMU controller.

    Acked-by: Kukjin Kim
    Acked-by: Jonghwa Lee
    Acked-by: Eduardo Valentin
    Signed-off-by: Amit Daniel Kachhap
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This patch renames and moves include/linux/platform_data/exynos_thermal.h to
    drivers/thermal/samsung/exynos_tmu.h. This file movement is needed as exynos
    SOC's are not supporting non-DT based platforms and this file now just contains
    exynos tmu driver related definations.
    Also struct freq_clip_table is now moved to exynos_thermal_common.c as it fixes
    the compilation issue occuring because now this new tmu header file is included
    in tmu driver c file and not in the common thermal header file.

    Acked-by: Kukjin Kim
    Acked-by: Jonghwa Lee
    Acked-by: Eduardo Valentin
    Signed-off-by: Amit Daniel Kachhap
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap
     
  • This patch renames exynos_thermal.c to exynos_tmu.c. This change is needed as
    this file now just contains exynos tmu driver related codes and thermal zone
    or cpufreq cooling registration related changes are not there anymore.

    Acked-by: Kukjin Kim
    Acked-by: Jonghwa Lee
    Acked-by: Eduardo Valentin
    Signed-off-by: Amit Daniel Kachhap
    Signed-off-by: Eduardo Valentin

    Amit Daniel Kachhap