diff options
author | Tom Rini <trini@konsulko.com> | 2021-04-11 14:11:05 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-04-11 14:11:05 -0400 |
commit | 3b676a1662ac6b54d1e97ea40a0c41ee0925ffe3 (patch) | |
tree | d793c47b6ee68f30fb1426d526ac66f15b7cb636 /board/gdsys/common/fanctrl.c | |
parent | c6a4ee2aaee541c12d290dd25561e771396817cc (diff) | |
parent | d3cfc474b764fc9d8fca6dc1dfe56f42e564f0f5 (diff) |
Merge branch '2021-04-11-remove-non-migrated-boards'
- Remove a large number of boards that have not migrated to DM_MMC, for
which the migration deadline with 2 years ago at v2019.04.
Diffstat (limited to 'board/gdsys/common/fanctrl.c')
-rw-r--r-- | board/gdsys/common/fanctrl.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/board/gdsys/common/fanctrl.c b/board/gdsys/common/fanctrl.c deleted file mode 100644 index 27c875cbec..0000000000 --- a/board/gdsys/common/fanctrl.c +++ /dev/null @@ -1,35 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * (C) Copyright 2015 - * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc - */ - -#ifdef CONFIG_GDSYS_LEGACY_DRIVERS - -#include <common.h> -#include <i2c.h> - -enum { - FAN_CONFIG = 0x03, - FAN_TACHLIM_LSB = 0x48, - FAN_TACHLIM_MSB = 0x49, - FAN_PWM_FREQ = 0x4D, -}; - -void init_fan_controller(u8 addr) -{ - int val; - - /* set PWM Frequency to 2.5% resolution */ - i2c_reg_write(addr, FAN_PWM_FREQ, 20); - - /* set Tachometer Limit */ - i2c_reg_write(addr, FAN_TACHLIM_LSB, 0x10); - i2c_reg_write(addr, FAN_TACHLIM_MSB, 0x0a); - - /* enable Tach input */ - val = i2c_reg_read(addr, FAN_CONFIG) | 0x04; - i2c_reg_write(addr, FAN_CONFIG, val); -} - -#endif /* CONFIG_GDSYS_LEGACY_DRIVERS */ |