-
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: 284467 b: refs/heads/master c: 57e6a7d h: refs/heads/master i: 284465: 4a3fb31 284463: f86ae76 v: v3
- Loading branch information
Linus Torvalds
committed
Jan 13, 2012
1 parent
485e589
commit 72508ba
Showing
1,169 changed files
with
56,008 additions
and
25,946 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: 66ad863b410efb7f537719006f9ac52400c1a5c5 | ||
refs/heads/master: 57e6a7dde8cfca9ac1d6702cf9104d22bc11ba90 |
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
5 changes: 5 additions & 0 deletions
5
trunk/Documentation/devicetree/bindings/power_supply/olpc_battery.txt
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,5 @@ | ||
OLPC battery | ||
~~~~~~~~~~~~ | ||
|
||
Required properties: | ||
- compatible : "olpc,xo1-battery" |
23 changes: 23 additions & 0 deletions
23
trunk/Documentation/devicetree/bindings/power_supply/sbs_sbs-battery.txt
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,23 @@ | ||
SBS sbs-battery | ||
~~~~~~~~~~ | ||
|
||
Required properties : | ||
- compatible : "sbs,sbs-battery" | ||
|
||
Optional properties : | ||
- sbs,i2c-retry-count : The number of times to retry i2c transactions on i2c | ||
IO failure. | ||
- sbs,poll-retry-count : The number of times to try looking for new status | ||
after an external change notification. | ||
- sbs,battery-detect-gpios : The gpio which signals battery detection and | ||
a flag specifying its polarity. | ||
|
||
Example: | ||
|
||
bq20z75@b { | ||
compatible = "sbs,sbs-battery"; | ||
reg = < 0xb >; | ||
sbs,i2c-retry-count = <2>; | ||
sbs,poll-retry-count = <10>; | ||
sbs,battery-detect-gpios = <&gpio-controller 122 1>; | ||
} |
71 changes: 71 additions & 0 deletions
71
trunk/Documentation/devicetree/bindings/sound/tegra-audio-wm8903.txt
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 @@ | ||
NVIDIA Tegra audio complex | ||
|
||
Required properties: | ||
- compatible : "nvidia,tegra-audio-wm8903" | ||
- nvidia,model : The user-visible name of this sound complex. | ||
- nvidia,audio-routing : A list of the connections between audio components. | ||
Each entry is a pair of strings, the first being the connection's sink, | ||
the second being the connection's source. Valid names for sources and | ||
sinks are the WM8903's pins, and the jacks on the board: | ||
|
||
WM8903 pins: | ||
|
||
* IN1L | ||
* IN1R | ||
* IN2L | ||
* IN2R | ||
* IN3L | ||
* IN3R | ||
* DMICDAT | ||
* HPOUTL | ||
* HPOUTR | ||
* LINEOUTL | ||
* LINEOUTR | ||
* LOP | ||
* LON | ||
* ROP | ||
* RON | ||
* MICBIAS | ||
|
||
Board connectors: | ||
|
||
* Headphone Jack | ||
* Int Spk | ||
* Mic Jack | ||
|
||
- nvidia,i2s-controller : The phandle of the Tegra I2S1 controller | ||
- nvidia,audio-codec : The phandle of the WM8903 audio codec | ||
|
||
Optional properties: | ||
- nvidia,spkr-en-gpios : The GPIO that enables the speakers | ||
- nvidia,hp-mute-gpios : The GPIO that mutes the headphones | ||
- nvidia,hp-det-gpios : The GPIO that detect headphones are plugged in | ||
- nvidia,int-mic-en-gpios : The GPIO that enables the internal microphone | ||
- nvidia,ext-mic-en-gpios : The GPIO that enables the external microphone | ||
|
||
Example: | ||
|
||
sound { | ||
compatible = "nvidia,tegra-audio-wm8903-harmony", | ||
"nvidia,tegra-audio-wm8903" | ||
nvidia,model = "tegra-wm8903-harmony"; | ||
|
||
nvidia,audio-routing = | ||
"Headphone Jack", "HPOUTR", | ||
"Headphone Jack", "HPOUTL", | ||
"Int Spk", "ROP", | ||
"Int Spk", "RON", | ||
"Int Spk", "LOP", | ||
"Int Spk", "LON", | ||
"Mic Jack", "MICBIAS", | ||
"IN1L", "Mic Jack"; | ||
|
||
nvidia,i2s-controller = <&i2s1>; | ||
nvidia,audio-codec = <&wm8903>; | ||
|
||
nvidia,spkr-en-gpios = <&codec 2 0>; | ||
nvidia,hp-det-gpios = <&gpio 178 0>; /* gpio PW2 */ | ||
nvidia,int-mic-en-gpios = <&gpio 184 0>; /*gpio PX0 */ | ||
nvidia,ext-mic-en-gpios = <&gpio 185 0>; /* gpio PX1 */ | ||
}; | ||
|
12 changes: 12 additions & 0 deletions
12
trunk/Documentation/devicetree/bindings/sound/tegra20-das.txt
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,12 @@ | ||
NVIDIA Tegra 20 DAS (Digital Audio Switch) controller | ||
|
||
Required properties: | ||
- compatible : "nvidia,tegra20-das" | ||
- reg : Should contain DAS registers location and length | ||
|
||
Example: | ||
|
||
das@70000c00 { | ||
compatible = "nvidia,tegra20-das"; | ||
reg = <0x70000c00 0x80>; | ||
}; |
17 changes: 17 additions & 0 deletions
17
trunk/Documentation/devicetree/bindings/sound/tegra20-i2s.txt
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,17 @@ | ||
NVIDIA Tegra 20 I2S controller | ||
|
||
Required properties: | ||
- compatible : "nvidia,tegra20-i2s" | ||
- reg : Should contain I2S registers location and length | ||
- interrupts : Should contain I2S interrupt | ||
- nvidia,dma-request-selector : The Tegra DMA controller's phandle and | ||
request selector for this I2S controller | ||
|
||
Example: | ||
|
||
i2s@70002800 { | ||
compatible = "nvidia,tegra20-i2s"; | ||
reg = <0x70002800 0x200>; | ||
interrupts = < 45 >; | ||
nvidia,dma-request-selector = < &apbdma 2 >; | ||
}; |
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,50 @@ | ||
WM8903 audio CODEC | ||
|
||
This device supports I2C only. | ||
|
||
Required properties: | ||
|
||
- compatible : "wlf,wm8903" | ||
|
||
- reg : the I2C address of the device. | ||
|
||
- gpio-controller : Indicates this device is a GPIO controller. | ||
|
||
- #gpio-cells : Should be two. The first cell is the pin number and the | ||
second cell is used to specify optional parameters (currently unused). | ||
|
||
Optional properties: | ||
|
||
- interrupts : The interrupt line the codec is connected to. | ||
|
||
- micdet-cfg : Default register value for R6 (Mic Bias). If absent, the | ||
default is 0. | ||
|
||
- micdet-delay : The debounce delay for microphone detection in mS. If | ||
absent, the default is 100. | ||
|
||
- gpio-cfg : A list of GPIO configuration register values. The list must | ||
be 5 entries long. If absent, no configuration of these registers is | ||
performed. If any entry has the value 0xffffffff, that GPIO's | ||
configuration will not be modified. | ||
|
||
Example: | ||
|
||
codec: wm8903@1a { | ||
compatible = "wlf,wm8903"; | ||
reg = <0x1a>; | ||
interrupts = < 347 >; | ||
|
||
gpio-controller; | ||
#gpio-cells = <2>; | ||
|
||
micdet-cfg = <0>; | ||
micdet-delay = <100>; | ||
gpio-cfg = < | ||
0x0600 /* DMIC_LR, output */ | ||
0x0680 /* DMIC_DAT, input */ | ||
0x0000 /* GPIO, output, low */ | ||
0x0200 /* Interrupt, output */ | ||
0x01a0 /* BCLK, input, active high */ | ||
>; | ||
}; |
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,18 @@ | ||
WM1811/WM8994/WM8958 audio CODEC | ||
|
||
These devices support both I2C and SPI (configured with pin strapping | ||
on the board). | ||
|
||
Required properties: | ||
|
||
- compatible : "wlf,wm1811", "wlf,wm8994", "wlf,wm8958" | ||
|
||
- reg : the I2C address of the device for I2C, the chip select | ||
number for SPI. | ||
|
||
Example: | ||
|
||
codec: wm8994@1a { | ||
compatible = "wlf,wm8994"; | ||
reg = <0x1a>; | ||
}; |
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,96 @@ | ||
Digital Signature Verification API | ||
|
||
CONTENTS | ||
|
||
1. Introduction | ||
2. API | ||
3. User-space utilities | ||
|
||
|
||
1. Introduction | ||
|
||
Digital signature verification API provides a method to verify digital signature. | ||
Currently digital signatures are used by the IMA/EVM integrity protection subsystem. | ||
|
||
Digital signature verification is implemented using cut-down kernel port of | ||
GnuPG multi-precision integers (MPI) library. The kernel port provides | ||
memory allocation errors handling, has been refactored according to kernel | ||
coding style, and checkpatch.pl reported errors and warnings have been fixed. | ||
|
||
Public key and signature consist of header and MPIs. | ||
|
||
struct pubkey_hdr { | ||
uint8_t version; /* key format version */ | ||
time_t timestamp; /* key made, always 0 for now */ | ||
uint8_t algo; | ||
uint8_t nmpi; | ||
char mpi[0]; | ||
} __packed; | ||
|
||
struct signature_hdr { | ||
uint8_t version; /* signature format version */ | ||
time_t timestamp; /* signature made */ | ||
uint8_t algo; | ||
uint8_t hash; | ||
uint8_t keyid[8]; | ||
uint8_t nmpi; | ||
char mpi[0]; | ||
} __packed; | ||
|
||
keyid equals to SHA1[12-19] over the total key content. | ||
Signature header is used as an input to generate a signature. | ||
Such approach insures that key or signature header could not be changed. | ||
It protects timestamp from been changed and can be used for rollback | ||
protection. | ||
|
||
2. API | ||
|
||
API currently includes only 1 function: | ||
|
||
digsig_verify() - digital signature verification with public key | ||
|
||
|
||
/** | ||
* digsig_verify() - digital signature verification with public key | ||
* @keyring: keyring to search key in | ||
* @sig: digital signature | ||
* @sigen: length of the signature | ||
* @data: data | ||
* @datalen: length of the data | ||
* @return: 0 on success, -EINVAL otherwise | ||
* | ||
* Verifies data integrity against digital signature. | ||
* Currently only RSA is supported. | ||
* Normally hash of the content is used as a data for this function. | ||
* | ||
*/ | ||
int digsig_verify(struct key *keyring, const char *sig, int siglen, | ||
const char *data, int datalen); | ||
|
||
3. User-space utilities | ||
|
||
The signing and key management utilities evm-utils provide functionality | ||
to generate signatures, to load keys into the kernel keyring. | ||
Keys can be in PEM or converted to the kernel format. | ||
When the key is added to the kernel keyring, the keyid defines the name | ||
of the key: 5D2B05FC633EE3E8 in the example bellow. | ||
|
||
Here is example output of the keyctl utility. | ||
|
||
$ keyctl show | ||
Session Keyring | ||
-3 --alswrv 0 0 keyring: _ses | ||
603976250 --alswrv 0 -1 \_ keyring: _uid.0 | ||
817777377 --alswrv 0 0 \_ user: kmk | ||
891974900 --alswrv 0 0 \_ encrypted: evm-key | ||
170323636 --alswrv 0 0 \_ keyring: _module | ||
548221616 --alswrv 0 0 \_ keyring: _ima | ||
128198054 --alswrv 0 0 \_ keyring: _evm | ||
|
||
$ keyctl list 128198054 | ||
1 key in keyring: | ||
620789745: --alswrv 0 0 user: 5D2B05FC633EE3E8 | ||
|
||
|
||
Dmitry Kasatkin | ||
06.10.2011 |
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.