-
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.
- Loading branch information
Linus Torvalds
committed
Jul 24, 2008
1 parent
e5ff066
commit 97e4add
Showing
3,229 changed files
with
231,979 additions
and
142,129 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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: 7ae93f51d7fa8b9130d47e0b7d17979a165c5bc3 | ||
refs/heads/master: 4378dcca8578b0fd0fba883a3354ad4820d4f85f |
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,20 @@ | ||
What: /sys/dev | ||
Date: April 2008 | ||
KernelVersion: 2.6.26 | ||
Contact: Dan Williams <dan.j.williams@intel.com> | ||
Description: The /sys/dev tree provides a method to look up the sysfs | ||
path for a device using the information returned from | ||
stat(2). There are two directories, 'block' and 'char', | ||
beneath /sys/dev containing symbolic links with names of | ||
the form "<major>:<minor>". These links point to the | ||
corresponding sysfs path for the given device. | ||
|
||
Example: | ||
$ readlink /sys/dev/block/8:32 | ||
../../block/sdc | ||
|
||
Entries in /sys/dev/char and /sys/dev/block will be | ||
dynamically created and destroyed as devices enter and | ||
leave the system. | ||
|
||
Users: mdadm <linux-raid@vger.kernel.org> |
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,24 @@ | ||
What: /sys/devices/system/memory | ||
Date: June 2008 | ||
Contact: Badari Pulavarty <pbadari@us.ibm.com> | ||
Description: | ||
The /sys/devices/system/memory contains a snapshot of the | ||
internal state of the kernel memory blocks. Files could be | ||
added or removed dynamically to represent hot-add/remove | ||
operations. | ||
|
||
Users: hotplug memory add/remove tools | ||
https://w3.opensource.ibm.com/projects/powerpc-utils/ | ||
|
||
What: /sys/devices/system/memory/memoryX/removable | ||
Date: June 2008 | ||
Contact: Badari Pulavarty <pbadari@us.ibm.com> | ||
Description: | ||
The file /sys/devices/system/memory/memoryX/removable | ||
indicates whether this memory block is removable or not. | ||
This is useful for a user-level agent to determine | ||
identify removable sections of the memory before attempting | ||
potentially expensive hot-remove memory operation | ||
|
||
Users: hotplug memory remove tools | ||
https://w3.opensource.ibm.com/projects/powerpc-utils/ |
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,6 @@ | ||
What: /sys/kernel/mm | ||
Date: July 2008 | ||
Contact: Nishanth Aravamudan <nacc@us.ibm.com>, VM maintainers | ||
Description: | ||
/sys/kernel/mm/ should contain any and all VM | ||
related information in /sys/kernel/. |
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,15 @@ | ||
What: /sys/kernel/mm/hugepages/ | ||
Date: June 2008 | ||
Contact: Nishanth Aravamudan <nacc@us.ibm.com>, hugetlb maintainers | ||
Description: | ||
/sys/kernel/mm/hugepages/ contains a number of subdirectories | ||
of the form hugepages-<size>kB, where <size> is the page size | ||
of the hugepages supported by the kernel/CPU combination. | ||
|
||
Under these directories are a number of files: | ||
nr_hugepages | ||
nr_overcommit_hugepages | ||
free_hugepages | ||
surplus_hugepages | ||
resv_hugepages | ||
See Documentation/vm/hugetlbpage.txt for details. |
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,131 @@ | ||
SH7760/SH7763 integrated LCDC Framebuffer driver | ||
================================================ | ||
|
||
0. Overwiew | ||
----------- | ||
The SH7760/SH7763 have an integrated LCD Display controller (LCDC) which | ||
supports (in theory) resolutions ranging from 1x1 to 1024x1024, | ||
with color depths ranging from 1 to 16 bits, on STN, DSTN and TFT Panels. | ||
|
||
Caveats: | ||
* Framebuffer memory must be a large chunk allocated at the top | ||
of Area3 (HW requirement). Because of this requirement you should NOT | ||
make the driver a module since at runtime it may become impossible to | ||
get a large enough contiguous chunk of memory. | ||
|
||
* The driver does not support changing resolution while loaded | ||
(displays aren't hotpluggable anyway) | ||
|
||
* Heavy flickering may be observed | ||
a) if you're using 15/16bit color modes at >= 640x480 px resolutions, | ||
b) during PCMCIA (or any other slow bus) activity. | ||
|
||
* Rotation works only 90degress clockwise, and only if horizontal | ||
resolution is <= 320 pixels. | ||
|
||
files: drivers/video/sh7760fb.c | ||
include/asm-sh/sh7760fb.h | ||
Documentation/fb/sh7760fb.txt | ||
|
||
1. Platform setup | ||
----------------- | ||
SH7760: | ||
Video data is fetched via the DMABRG DMA engine, so you have to | ||
configure the SH DMAC for DMABRG mode (write 0x94808080 to the | ||
DMARSRA register somewhere at boot). | ||
|
||
PFC registers PCCR and PCDR must be set to peripheral mode. | ||
(write zeros to both). | ||
|
||
The driver does NOT do the above for you since board setup is, well, job | ||
of the board setup code. | ||
|
||
2. Panel definitions | ||
-------------------- | ||
The LCDC must explicitly be told about the type of LCD panel | ||
attached. Data must be wrapped in a "struct sh7760fb_platdata" and | ||
passed to the driver as platform_data. | ||
|
||
Suggest you take a closer look at the SH7760 Manual, Section 30. | ||
(http://documentation.renesas.com/eng/products/mpumcu/e602291_sh7760.pdf) | ||
|
||
The following code illustrates what needs to be done to | ||
get the framebuffer working on a 640x480 TFT: | ||
|
||
====================== cut here ====================================== | ||
|
||
#include <linux/fb.h> | ||
#include <asm/sh7760fb.h> | ||
|
||
/* | ||
* NEC NL6440bc26-01 640x480 TFT | ||
* dotclock 25175 kHz | ||
* Xres 640 Yres 480 | ||
* Htotal 800 Vtotal 525 | ||
* HsynStart 656 VsynStart 490 | ||
* HsynLenn 30 VsynLenn 2 | ||
* | ||
* The linux framebuffer layer does not use the syncstart/synclen | ||
* values but right/left/upper/lower margin values. The comments | ||
* for the x_margin explain how to calculate those from given | ||
* panel sync timings. | ||
*/ | ||
static struct fb_videomode nl6448bc26 = { | ||
.name = "NL6448BC26", | ||
.refresh = 60, | ||
.xres = 640, | ||
.yres = 480, | ||
.pixclock = 39683, /* in picoseconds! */ | ||
.hsync_len = 30, | ||
.vsync_len = 2, | ||
.left_margin = 114, /* HTOT - (HSYNSLEN + HSYNSTART) */ | ||
.right_margin = 16, /* HSYNSTART - XRES */ | ||
.upper_margin = 33, /* VTOT - (VSYNLEN + VSYNSTART) */ | ||
.lower_margin = 10, /* VSYNSTART - YRES */ | ||
.sync = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, | ||
.vmode = FB_VMODE_NONINTERLACED, | ||
.flag = 0, | ||
}; | ||
|
||
static struct sh7760fb_platdata sh7760fb_nl6448 = { | ||
.def_mode = &nl6448bc26, | ||
.ldmtr = LDMTR_TFT_COLOR_16, /* 16bit TFT panel */ | ||
.lddfr = LDDFR_8BPP, /* we want 8bit output */ | ||
.ldpmmr = 0x0070, | ||
.ldpspr = 0x0500, | ||
.ldaclnr = 0, | ||
.ldickr = LDICKR_CLKSRC(LCDC_CLKSRC_EXTERNAL) | | ||
LDICKR_CLKDIV(1), | ||
.rotate = 0, | ||
.novsync = 1, | ||
.blank = NULL, | ||
}; | ||
|
||
/* SH7760: | ||
* 0xFE300800: 256 * 4byte xRGB palette ram | ||
* 0xFE300C00: 42 bytes ctrl registers | ||
*/ | ||
static struct resource sh7760_lcdc_res[] = { | ||
[0] = { | ||
.start = 0xFE300800, | ||
.end = 0xFE300CFF, | ||
.flags = IORESOURCE_MEM, | ||
}, | ||
[1] = { | ||
.start = 65, | ||
.end = 65, | ||
.flags = IORESOURCE_IRQ, | ||
}, | ||
}; | ||
|
||
static struct platform_device sh7760_lcdc_dev = { | ||
.dev = { | ||
.platform_data = &sh7760fb_nl6448, | ||
}, | ||
.name = "sh7760-lcdc", | ||
.id = -1, | ||
.resource = sh7760_lcdc_res, | ||
.num_resources = ARRAY_SIZE(sh7760_lcdc_res), | ||
}; | ||
|
||
====================== cut here ====================================== |
Oops, something went wrong.