aspeed-pwm-tacho.c (762b1e88801357770889d013c5d20fe110d1f456) | aspeed-pwm-tacho.c (54b943e69691329805349440b157b36e34051a57) |
---|---|
1/* 2 * Copyright (c) 2016 Google, Inc 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 or later as 6 * published by the Free Software Foundation. 7 */ 8 9#include <linux/clk.h> | 1/* 2 * Copyright (c) 2016 Google, Inc 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 or later as 6 * published by the Free Software Foundation. 7 */ 8 9#include <linux/clk.h> |
10#include <linux/delay.h> |
|
10#include <linux/errno.h> 11#include <linux/gpio/consumer.h> | 11#include <linux/errno.h> 12#include <linux/gpio/consumer.h> |
12#include <linux/delay.h> | |
13#include <linux/hwmon.h> 14#include <linux/hwmon-sysfs.h> 15#include <linux/io.h> 16#include <linux/kernel.h> 17#include <linux/module.h> | 13#include <linux/hwmon.h> 14#include <linux/hwmon-sysfs.h> 15#include <linux/io.h> 16#include <linux/kernel.h> 17#include <linux/module.h> |
18#include <linux/of_platform.h> | |
19#include <linux/of_device.h> | 18#include <linux/of_device.h> |
19#include <linux/of_platform.h> |
|
20#include <linux/platform_device.h> | 20#include <linux/platform_device.h> |
21#include <linux/sysfs.h> | |
22#include <linux/regmap.h> | 21#include <linux/regmap.h> |
22#include <linux/sysfs.h> |
|
23#include <linux/thermal.h> 24 25/* ASPEED PWM & FAN Tach Register Definition */ 26#define ASPEED_PTCR_CTRL 0x00 27#define ASPEED_PTCR_CLK_CTRL 0x04 28#define ASPEED_PTCR_DUTY0_CTRL 0x08 29#define ASPEED_PTCR_DUTY1_CTRL 0x0c 30#define ASPEED_PTCR_TYPEM_CTRL 0x10 --- 952 unchanged lines hidden --- | 23#include <linux/thermal.h> 24 25/* ASPEED PWM & FAN Tach Register Definition */ 26#define ASPEED_PTCR_CTRL 0x00 27#define ASPEED_PTCR_CLK_CTRL 0x04 28#define ASPEED_PTCR_DUTY0_CTRL 0x08 29#define ASPEED_PTCR_DUTY1_CTRL 0x0c 30#define ASPEED_PTCR_TYPEM_CTRL 0x10 --- 952 unchanged lines hidden --- |