exynos_tmu.c (e3c55d406bd8df1a878546002c93db90c42be10c) exynos_tmu.c (14ddfaecc8ef462b24c96cf37dad7914fea09358)
1/*
2 * exynos_tmu.c - Samsung EXYNOS TMU (Thermal Management Unit)
3 *
4 * Copyright (C) 2011 Samsung Electronics
5 * Donggeun Kim <dg77.kim@samsung.com>
6 * Amit Daniel Kachhap <amit.kachhap@linaro.org>
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 474 unchanged lines hidden (view full) ---

483
484static const struct of_device_id exynos_tmu_match[] = {
485 {
486 .compatible = "samsung,exynos4210-tmu",
487 .data = (void *)EXYNOS4210_TMU_DRV_DATA,
488 },
489 {
490 .compatible = "samsung,exynos4412-tmu",
1/*
2 * exynos_tmu.c - Samsung EXYNOS TMU (Thermal Management Unit)
3 *
4 * Copyright (C) 2011 Samsung Electronics
5 * Donggeun Kim <dg77.kim@samsung.com>
6 * Amit Daniel Kachhap <amit.kachhap@linaro.org>
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 474 unchanged lines hidden (view full) ---

483
484static const struct of_device_id exynos_tmu_match[] = {
485 {
486 .compatible = "samsung,exynos4210-tmu",
487 .data = (void *)EXYNOS4210_TMU_DRV_DATA,
488 },
489 {
490 .compatible = "samsung,exynos4412-tmu",
491 .data = (void *)EXYNOS5250_TMU_DRV_DATA,
491 .data = (void *)EXYNOS4412_TMU_DRV_DATA,
492 },
493 {
494 .compatible = "samsung,exynos5250-tmu",
495 .data = (void *)EXYNOS5250_TMU_DRV_DATA,
496 },
497 {
498 .compatible = "samsung,exynos5440-tmu",
499 .data = (void *)EXYNOS5440_TMU_DRV_DATA,

--- 124 unchanged lines hidden (view full) ---

624 dev_err(&pdev->dev, "Failed to get clock\n");
625 return PTR_ERR(data->clk);
626 }
627
628 ret = clk_prepare(data->clk);
629 if (ret)
630 return ret;
631
492 },
493 {
494 .compatible = "samsung,exynos5250-tmu",
495 .data = (void *)EXYNOS5250_TMU_DRV_DATA,
496 },
497 {
498 .compatible = "samsung,exynos5440-tmu",
499 .data = (void *)EXYNOS5440_TMU_DRV_DATA,

--- 124 unchanged lines hidden (view full) ---

624 dev_err(&pdev->dev, "Failed to get clock\n");
625 return PTR_ERR(data->clk);
626 }
627
628 ret = clk_prepare(data->clk);
629 if (ret)
630 return ret;
631
632 if (pdata->type == SOC_ARCH_EXYNOS ||
633 pdata->type == SOC_ARCH_EXYNOS4210 ||
634 pdata->type == SOC_ARCH_EXYNOS5440)
632 if (pdata->type == SOC_ARCH_EXYNOS4210 ||
633 pdata->type == SOC_ARCH_EXYNOS4412 ||
634 pdata->type == SOC_ARCH_EXYNOS5250 ||
635 pdata->type == SOC_ARCH_EXYNOS5440)
635 data->soc = pdata->type;
636 else {
637 ret = -EINVAL;
638 dev_err(&pdev->dev, "Platform not supported\n");
639 goto err_clk;
640 }
641
642 ret = exynos_tmu_initialize(pdev);

--- 120 unchanged lines hidden ---
636 data->soc = pdata->type;
637 else {
638 ret = -EINVAL;
639 dev_err(&pdev->dev, "Platform not supported\n");
640 goto err_clk;
641 }
642
643 ret = exynos_tmu_initialize(pdev);

--- 120 unchanged lines hidden ---