Skip to content

Commit ed31348

Browse files
committed
Merge master.kernel.org:/home/rmk/linux-2.6-arm
* master.kernel.org:/home/rmk/linux-2.6-arm: [ARM] 5330/1: mach-pxa: Fixup reset for systems using reboot=cold or other strings [ARM] pxa: fix incorrect PCMCIA PSKTSEL pin configuration for spitz [ARM] pxa: fix I2C controller device being registered twice on Akita pxafb: only initialize the smart panel thread when dealing with a smartpanel pxafb: introduce LCD_TYPE_MASK and use it.
2 parents 13d428a + 28105fd commit ed31348

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
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/reset.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,13 @@ void arch_reset(char mode)
9090
/* Jump into ROM at address 0 */
9191
cpu_reset(0);
9292
break;
93-
case 'h':
94-
do_hw_reset();
95-
break;
9693
case 'g':
9794
do_gpio_reset();
9895
break;
96+
case 'h':
97+
default:
98+
do_hw_reset();
99+
break;
99100
}
100101
}
101102

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)