Skip to content

Commit 12a8ab1

Browse files
Russell KingRussell King
authored andcommitted
Merge branch 'for-rmk' of git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6
2 parents e14c8bf + faf2f0a commit 12a8ab1

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

arch/arm/mach-pxa/include/mach/pxafb.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#define LCD_CONN_TYPE(_x) ((_x) & 0x0f)
3434
#define LCD_CONN_WIDTH(_x) (((_x) >> 4) & 0x1f)
3535

36+
#define LCD_TYPE_MASK 0xf
3637
#define LCD_TYPE_UNKNOWN 0
3738
#define LCD_TYPE_MONO_STN 1
3839
#define LCD_TYPE_MONO_DSTN 2

arch/arm/mach-pxa/spitz.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
static unsigned long spitz_pin_config[] __initdata = {
6868
/* Chip Selects */
6969
GPIO78_nCS_2, /* SCOOP #2 */
70+
GPIO79_nCS_3, /* NAND */
7071
GPIO80_nCS_4, /* SCOOP #1 */
7172

7273
/* LCD - 16bpp Active TFT */
@@ -97,10 +98,10 @@ static unsigned long spitz_pin_config[] __initdata = {
9798
GPIO51_nPIOW,
9899
GPIO85_nPCE_1,
99100
GPIO54_nPCE_2,
100-
GPIO79_PSKTSEL,
101101
GPIO55_nPREG,
102102
GPIO56_nPWAIT,
103103
GPIO57_nIOIS16,
104+
GPIO104_PSKTSEL,
104105

105106
/* MMC */
106107
GPIO32_MMC_CLK,
@@ -686,7 +687,6 @@ static void __init akita_init(void)
686687
spitz_pcmcia_config.num_devs = 1;
687688
platform_scoop_config = &spitz_pcmcia_config;
688689

689-
pxa_set_i2c_info(NULL);
690690
i2c_register_board_info(0, ARRAY_AND_SIZE(akita_i2c_board_info));
691691

692692
common_init();

drivers/video/pxafb.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,9 @@ static int pxafb_smart_thread(void *arg)
804804

805805
static int pxafb_smart_init(struct pxafb_info *fbi)
806806
{
807+
if (!(fbi->lccr0 | LCCR0_LCDT))
808+
return 0;
809+
807810
fbi->smart_thread = kthread_run(pxafb_smart_thread, fbi,
808811
"lcd_refresh");
809812
if (IS_ERR(fbi->smart_thread)) {
@@ -1372,7 +1375,7 @@ static void pxafb_decode_mach_info(struct pxafb_info *fbi,
13721375
fbi->cmap_inverse = inf->cmap_inverse;
13731376
fbi->cmap_static = inf->cmap_static;
13741377

1375-
switch (lcd_conn & 0xf) {
1378+
switch (lcd_conn & LCD_TYPE_MASK) {
13761379
case LCD_TYPE_MONO_STN:
13771380
fbi->lccr0 = LCCR0_CMS;
13781381
break;

0 commit comments

Comments
 (0)