-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 127328 b: refs/heads/master c: 7c7758f h: refs/heads/master v: v3
- Loading branch information
Linus Torvalds
committed
Jan 7, 2009
1 parent
63cc816
commit a4830ee
Showing
643 changed files
with
37,399 additions
and
11,133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 8a70da82edc50aa7a4b54864babf2d72538ba1bb | ||
refs/heads/master: 7c7758f99d39d529a64d4f60d22129bbf2f16d74 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
* File: Documentation/blackfin/bfin-gpio-note.txt | ||
* Based on: | ||
* Author: | ||
* | ||
* Created: $Id: bfin-gpio-note.txt 2008-11-24 16:42 grafyang $ | ||
* Description: This file contains the notes in developing/using bfin-gpio. | ||
* | ||
* | ||
* Rev: | ||
* | ||
* Modified: | ||
* Copyright 2004-2008 Analog Devices Inc. | ||
* | ||
* Bugs: Enter bugs at http://blackfin.uclinux.org/ | ||
* | ||
*/ | ||
|
||
|
||
1. Blackfin GPIO introduction | ||
|
||
There are many GPIO pins on Blackfin. Most of these pins are muxed to | ||
multi-functions. They can be configured as peripheral, or just as GPIO, | ||
configured to input with interrupt enabled, or output. | ||
|
||
For detailed information, please see "arch/blackfin/kernel/bfin_gpio.c", | ||
or the relevant HRM. | ||
|
||
|
||
2. Avoiding resource conflict | ||
|
||
Followed function groups are used to avoiding resource conflict, | ||
- Use the pin as peripheral, | ||
int peripheral_request(unsigned short per, const char *label); | ||
int peripheral_request_list(const unsigned short per[], const char *label); | ||
void peripheral_free(unsigned short per); | ||
void peripheral_free_list(const unsigned short per[]); | ||
- Use the pin as GPIO, | ||
int bfin_gpio_request(unsigned gpio, const char *label); | ||
void bfin_gpio_free(unsigned gpio); | ||
- Use the pin as GPIO interrupt, | ||
int bfin_gpio_irq_request(unsigned gpio, const char *label); | ||
void bfin_gpio_irq_free(unsigned gpio); | ||
|
||
The request functions will record the function state for a certain pin, | ||
the free functions will clear it's function state. | ||
Once a pin is requested, it can't be requested again before it is freed by | ||
previous caller, otherwise kernel will dump stacks, and the request | ||
function fail. | ||
These functions are wrapped by other functions, most of the users need not | ||
care. | ||
|
||
|
||
3. But there are some exceptions | ||
- Kernel permit the identical GPIO be requested both as GPIO and GPIO | ||
interrut. | ||
Some drivers, like gpio-keys, need this behavior. Kernel only print out | ||
warning messages like, | ||
bfin-gpio: GPIO 24 is already reserved by gpio-keys: BTN0, and you are | ||
configuring it as IRQ! | ||
|
||
Note: Consider the case that, if there are two drivers need the | ||
identical GPIO, one of them use it as GPIO, the other use it as | ||
GPIO interrupt. This will really cause resource conflict. So if | ||
there is any abnormal driver behavior, please check the bfin-gpio | ||
warning messages. | ||
|
||
- Kernel permit the identical GPIO be requested from the same driver twice. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
Kernel driver f71882fg | ||
====================== | ||
|
||
Supported chips: | ||
* Fintek F71882FG and F71883FG | ||
Prefix: 'f71882fg' | ||
Addresses scanned: none, address read from Super I/O config space | ||
Datasheet: Available from the Fintek website | ||
* Fintek F71862FG and F71863FG | ||
Prefix: 'f71862fg' | ||
Addresses scanned: none, address read from Super I/O config space | ||
Datasheet: Available from the Fintek website | ||
* Fintek F8000 | ||
Prefix: 'f8000' | ||
Addresses scanned: none, address read from Super I/O config space | ||
Datasheet: Not public | ||
|
||
Author: Hans de Goede <hdegoede@redhat.com> | ||
|
||
|
||
Description | ||
----------- | ||
|
||
Fintek F718xxFG/F8000 Super I/O chips include complete hardware monitoring | ||
capabilities. They can monitor up to 9 voltages (3 for the F8000), 4 fans and | ||
3 temperature sensors. | ||
|
||
These chips also have fan controlling features, using either DC or PWM, in | ||
three different modes (one manual, two automatic). | ||
|
||
The driver assumes that no more than one chip is present, which seems | ||
reasonable. | ||
|
||
|
||
Monitoring | ||
---------- | ||
|
||
The Voltage, Fan and Temperature Monitoring uses the standard sysfs | ||
interface as documented in sysfs-interface, without any exceptions. | ||
|
||
|
||
Fan Control | ||
----------- | ||
|
||
Both PWM (pulse-width modulation) and DC fan speed control methods are | ||
supported. The right one to use depends on external circuitry on the | ||
motherboard, so the driver assumes that the BIOS set the method | ||
properly. | ||
|
||
There are 2 modes to specify the speed of the fan, PWM duty cycle (or DC | ||
voltage) mode, where 0-100% duty cycle (0-100% of 12V) is specified. And RPM | ||
mode where the actual RPM of the fan (as measured) is controlled and the speed | ||
gets specified as 0-100% of the fan#_full_speed file. | ||
|
||
Since both modes work in a 0-100% (mapped to 0-255) scale, there isn't a | ||
whole lot of a difference when modifying fan control settings. The only | ||
important difference is that in RPM mode the 0-100% controls the fan speed | ||
between 0-100% of fan#_full_speed. It is assumed that if the BIOS programs | ||
RPM mode, it will also set fan#_full_speed properly, if it does not then | ||
fan control will not work properly, unless you set a sane fan#_full_speed | ||
value yourself. | ||
|
||
Switching between these modes requires re-initializing a whole bunch of | ||
registers, so the mode which the BIOS has set is kept. The mode is | ||
printed when loading the driver. | ||
|
||
Three different fan control modes are supported; the mode number is written | ||
to the pwm#_enable file. Note that not all modes are supported on all | ||
chips, and some modes may only be available in RPM / PWM mode on the F8000. | ||
Writing an unsupported mode will result in an invalid parameter error. | ||
|
||
* 1: Manual mode | ||
You ask for a specific PWM duty cycle / DC voltage or a specific % of | ||
fan#_full_speed by writing to the pwm# file. This mode is only | ||
available on the F8000 if the fan channel is in RPM mode. | ||
|
||
* 2: Normal auto mode | ||
You can define a number of temperature/fan speed trip points, which % the | ||
fan should run at at this temp and which temp a fan should follow using the | ||
standard sysfs interface. The number and type of trip points is chip | ||
depended, see which files are available in sysfs. | ||
Fan/PWM channel 3 of the F8000 is always in this mode! | ||
|
||
* 3: Thermostat mode (Only available on the F8000 when in duty cycle mode) | ||
The fan speed is regulated to keep the temp the fan is mapped to between | ||
temp#_auto_point2_temp and temp#_auto_point3_temp. | ||
|
||
Both of the automatic modes require that pwm1 corresponds to fan1, pwm2 to | ||
fan2 and pwm3 to fan3. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.