File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 33
33
#define LCD_CONN_TYPE (_x ) ((_x) & 0x0f)
34
34
#define LCD_CONN_WIDTH (_x ) (((_x) >> 4) & 0x1f)
35
35
36
+ #define LCD_TYPE_MASK 0xf
36
37
#define LCD_TYPE_UNKNOWN 0
37
38
#define LCD_TYPE_MONO_STN 1
38
39
#define LCD_TYPE_MONO_DSTN 2
Original file line number Diff line number Diff line change 67
67
static unsigned long spitz_pin_config [] __initdata = {
68
68
/* Chip Selects */
69
69
GPIO78_nCS_2 , /* SCOOP #2 */
70
+ GPIO79_nCS_3 , /* NAND */
70
71
GPIO80_nCS_4 , /* SCOOP #1 */
71
72
72
73
/* LCD - 16bpp Active TFT */
@@ -97,10 +98,10 @@ static unsigned long spitz_pin_config[] __initdata = {
97
98
GPIO51_nPIOW ,
98
99
GPIO85_nPCE_1 ,
99
100
GPIO54_nPCE_2 ,
100
- GPIO79_PSKTSEL ,
101
101
GPIO55_nPREG ,
102
102
GPIO56_nPWAIT ,
103
103
GPIO57_nIOIS16 ,
104
+ GPIO104_PSKTSEL ,
104
105
105
106
/* MMC */
106
107
GPIO32_MMC_CLK ,
@@ -686,7 +687,6 @@ static void __init akita_init(void)
686
687
spitz_pcmcia_config .num_devs = 1 ;
687
688
platform_scoop_config = & spitz_pcmcia_config ;
688
689
689
- pxa_set_i2c_info (NULL );
690
690
i2c_register_board_info (0 , ARRAY_AND_SIZE (akita_i2c_board_info ));
691
691
692
692
common_init ();
Original file line number Diff line number Diff line change @@ -804,6 +804,9 @@ static int pxafb_smart_thread(void *arg)
804
804
805
805
static int pxafb_smart_init (struct pxafb_info * fbi )
806
806
{
807
+ if (!(fbi -> lccr0 | LCCR0_LCDT ))
808
+ return 0 ;
809
+
807
810
fbi -> smart_thread = kthread_run (pxafb_smart_thread , fbi ,
808
811
"lcd_refresh" );
809
812
if (IS_ERR (fbi -> smart_thread )) {
@@ -1372,7 +1375,7 @@ static void pxafb_decode_mach_info(struct pxafb_info *fbi,
1372
1375
fbi -> cmap_inverse = inf -> cmap_inverse ;
1373
1376
fbi -> cmap_static = inf -> cmap_static ;
1374
1377
1375
- switch (lcd_conn & 0xf ) {
1378
+ switch (lcd_conn & LCD_TYPE_MASK ) {
1376
1379
case LCD_TYPE_MONO_STN :
1377
1380
fbi -> lccr0 = LCCR0_CMS ;
1378
1381
break ;
You can’t perform that action at this time.
0 commit comments