Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44768
b: refs/heads/master
c: 6a7255e
h: refs/heads/master
v: v3
  • Loading branch information
Sean Young authored and Greg Kroah-Hartman committed Dec 20, 2006
1 parent 2cfdb89 commit 6f076c8
Show file tree
Hide file tree
Showing 184 changed files with 855 additions and 1,973 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5576d187a0eef3bb3c47500eaab33fb5485bc352
refs/heads/master: 6a7255e1df3cf8f89c2c0c6eeea866c6bb17cfb9
19 changes: 8 additions & 11 deletions trunk/Documentation/powerpc/booting-without-of.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1703,32 +1703,29 @@ platforms are moved over to use the flattened-device-tree model.
Required properties:

- device_type : has to be "rom"
- compatible : Should specify what this flash device is compatible with.
Currently, this is most likely to be "direct-mapped" (which
corresponds to the MTD physmap mapping driver).
- reg : Offset and length of the register set (or memory mapping) for
- compatible : Should specify what this ROM device is compatible with
(i.e. "onenand"). Currently, this is most likely to be "direct-mapped"
(which corresponds to the MTD physmap mapping driver).
- regs : Offset and length of the register set (or memory mapping) for
the device.
- bank-width : Width of the flash data bus in bytes. Required
for the NOR flashes (compatible == "direct-mapped" and others) ONLY.

Recommended properties :

- bank-width : Width of the flash data bus in bytes. Required
for the NOR flashes (compatible == "direct-mapped" and others) ONLY.
- partitions : Several pairs of 32-bit values where the first value is
partition's offset from the start of the device and the second one is
partition size in bytes with LSB used to signify a read only
partition (so, the parition size should always be an even number).
partititon (so, the parition size should always be an even number).
- partition-names : The list of concatenated zero terminated strings
representing the partition names.
- probe-type : The type of probe which should be done for the chip
(JEDEC vs CFI actually). Valid ONLY for NOR flashes.

Example:

flash@ff000000 {
device_type = "rom";
compatible = "direct-mapped";
probe-type = "CFI";
reg = <ff000000 01000000>;
regs = <ff000000 01000000>;
bank-width = <4>;
partitions = <00000000 00f80000
00f80000 00080001>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@
<informalexample>
<programlisting>
<![CDATA[
struct mychip *chip = card->private_data;
struct mychip *chip = (struct mychip *)card->private_data;
]]>
</programlisting>
</informalexample>
Expand Down Expand Up @@ -1095,7 +1095,7 @@

/* release the irq */
if (chip->irq >= 0)
free_irq(chip->irq, chip);
free_irq(chip->irq, (void *)chip);
/* release the i/o ports & memory */
pci_release_regions(chip->pci);
/* disable the PCI entry */
Expand Down Expand Up @@ -1148,7 +1148,7 @@
}
chip->port = pci_resource_start(pci, 0);
if (request_irq(pci->irq, snd_mychip_interrupt,
IRQF_SHARED, "My Chip", chip)) {
IRQF_DISABLED|IRQF_SHARED, "My Chip", chip)) {
printk(KERN_ERR "cannot grab irq %d\n", pci->irq);
snd_mychip_free(chip);
return -EBUSY;
Expand Down Expand Up @@ -1387,7 +1387,7 @@
<programlisting>
<![CDATA[
if (chip->irq >= 0)
free_irq(chip->irq, chip);
free_irq(chip->irq, (void *)chip);
]]>
</programlisting>
</informalexample>
Expand Down
Loading

0 comments on commit 6f076c8

Please sign in to comment.