db8500_thermal.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * db8500_thermal.h - DB8500 Thermal Management Implementation
  3. *
  4. * Copyright (C) 2012 ST-Ericsson
  5. * Copyright (C) 2012 Linaro Ltd.
  6. *
  7. * Author: Hongbo Zhang <hongbo.zhang@linaro.com>
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. */
  19. #ifndef _DB8500_THERMAL_H_
  20. #define _DB8500_THERMAL_H_
  21. #include <linux/thermal.h>
  22. #define COOLING_DEV_MAX 8
  23. struct db8500_trip_point {
  24. unsigned long temp;
  25. enum thermal_trip_type type;
  26. char cdev_name[COOLING_DEV_MAX][THERMAL_NAME_LENGTH];
  27. };
  28. struct db8500_thsens_platform_data {
  29. struct db8500_trip_point trip_points[THERMAL_MAX_TRIPS];
  30. int num_trips;
  31. };
  32. #endif /* _DB8500_THERMAL_H_ */