Loading arch/arm/mach-pxa/irq.c +10 −1 Original line number Diff line number Diff line Loading @@ -25,6 +25,8 @@ #include "generic.h" #define MAX_INTERNAL_IRQS 128 #define IRQ_BIT(n) (((n) - PXA_IRQ(0)) & 0x1f) #define _ICMR(n) (*((((n) - PXA_IRQ(0)) & ~0x1f) ? &ICMR2 : &ICMR)) #define _ICLR(n) (*((((n) - PXA_IRQ(0)) & ~0x1f) ? &ICLR2 : &ICLR)) Loading Loading @@ -122,6 +124,8 @@ void __init pxa_init_irq(int irq_nr, set_wake_t fn) { int irq, i; BUG_ON(irq_nr > MAX_INTERNAL_IRQS); pxa_internal_irq_nr = irq_nr; for (irq = PXA_IRQ(0); irq < PXA_IRQ(irq_nr); irq += 32) { Loading Loading @@ -149,7 +153,8 @@ void __init pxa_init_irq(int irq_nr, set_wake_t fn) } #ifdef CONFIG_PM static unsigned long saved_icmr[2]; static unsigned long saved_icmr[MAX_INTERNAL_IRQS/32]; static unsigned long saved_ipr[MAX_INTERNAL_IRQS]; static int pxa_irq_suspend(struct sys_device *dev, pm_message_t state) { Loading @@ -159,6 +164,8 @@ static int pxa_irq_suspend(struct sys_device *dev, pm_message_t state) saved_icmr[i] = _ICMR(irq); _ICMR(irq) = 0; } for (i = 0; i < pxa_internal_irq_nr; i++) saved_ipr[i] = IPR(i); return 0; } Loading @@ -171,6 +178,8 @@ static int pxa_irq_resume(struct sys_device *dev) _ICMR(irq) = saved_icmr[i]; _ICLR(irq) = 0; } for (i = 0; i < pxa_internal_irq_nr; i++) IPR(i) = saved_ipr[i]; ICCR = 1; return 0; Loading arch/arm/mach-pxa/palmtc.c +4 −4 Original line number Diff line number Diff line Loading @@ -292,10 +292,10 @@ const static unsigned int palmtc_keypad_col_gpios[] = { static struct matrix_keypad_platform_data palmtc_keypad_platform_data = { .keymap_data = &palmtc_keymap_data, .col_gpios = palmtc_keypad_row_gpios, .num_col_gpios = 12, .row_gpios = palmtc_keypad_col_gpios, .num_row_gpios = 4, .row_gpios = palmtc_keypad_row_gpios, .num_row_gpios = ARRAY_SIZE(palmtc_keypad_row_gpios), .col_gpios = palmtc_keypad_col_gpios, .num_col_gpios = ARRAY_SIZE(palmtc_keypad_col_gpios), .active_low = 1, .debounce_ms = 20, Loading arch/arm/mach-pxa/spitz.c +23 −16 Original line number Diff line number Diff line Loading @@ -779,11 +779,34 @@ static void __init common_init(void) pxa_set_i2c_info(NULL); } #if defined(CONFIG_MACH_AKITA) || defined(CONFIG_MACH_BORZOI) static struct nand_bbt_descr sharpsl_akita_bbt = { .options = 0, .offs = 4, .len = 1, .pattern = scan_ff_pattern }; static struct nand_ecclayout akita_oobinfo = { .eccbytes = 24, .eccpos = { 0x5, 0x1, 0x2, 0x3, 0x6, 0x7, 0x15, 0x11, 0x12, 0x13, 0x16, 0x17, 0x25, 0x21, 0x22, 0x23, 0x26, 0x27, 0x35, 0x31, 0x32, 0x33, 0x36, 0x37}, .oobfree = {{0x08, 0x09}} }; #endif #if defined(CONFIG_MACH_SPITZ) || defined(CONFIG_MACH_BORZOI) static void __init spitz_init(void) { spitz_ficp_platform_data.gpio_pwdown = SPITZ_GPIO_IR_ON; if (machine_is_borzoi()) { sharpsl_nand_platform_data.badblock_pattern = &sharpsl_akita_bbt; sharpsl_nand_platform_data.ecc_layout = &akita_oobinfo; } platform_scoop_config = &spitz_pcmcia_config; common_init(); Loading @@ -808,22 +831,6 @@ static struct i2c_board_info akita_i2c_board_info[] = { }, }; static struct nand_bbt_descr sharpsl_akita_bbt = { .options = 0, .offs = 4, .len = 1, .pattern = scan_ff_pattern }; static struct nand_ecclayout akita_oobinfo = { .eccbytes = 24, .eccpos = { 0x5, 0x1, 0x2, 0x3, 0x6, 0x7, 0x15, 0x11, 0x12, 0x13, 0x16, 0x17, 0x25, 0x21, 0x22, 0x23, 0x26, 0x27, 0x35, 0x31, 0x32, 0x33, 0x36, 0x37}, .oobfree = {{0x08, 0x09}} }; static void __init akita_init(void) { spitz_ficp_platform_data.gpio_pwdown = AKITA_GPIO_IR_ON; Loading Loading
arch/arm/mach-pxa/irq.c +10 −1 Original line number Diff line number Diff line Loading @@ -25,6 +25,8 @@ #include "generic.h" #define MAX_INTERNAL_IRQS 128 #define IRQ_BIT(n) (((n) - PXA_IRQ(0)) & 0x1f) #define _ICMR(n) (*((((n) - PXA_IRQ(0)) & ~0x1f) ? &ICMR2 : &ICMR)) #define _ICLR(n) (*((((n) - PXA_IRQ(0)) & ~0x1f) ? &ICLR2 : &ICLR)) Loading Loading @@ -122,6 +124,8 @@ void __init pxa_init_irq(int irq_nr, set_wake_t fn) { int irq, i; BUG_ON(irq_nr > MAX_INTERNAL_IRQS); pxa_internal_irq_nr = irq_nr; for (irq = PXA_IRQ(0); irq < PXA_IRQ(irq_nr); irq += 32) { Loading Loading @@ -149,7 +153,8 @@ void __init pxa_init_irq(int irq_nr, set_wake_t fn) } #ifdef CONFIG_PM static unsigned long saved_icmr[2]; static unsigned long saved_icmr[MAX_INTERNAL_IRQS/32]; static unsigned long saved_ipr[MAX_INTERNAL_IRQS]; static int pxa_irq_suspend(struct sys_device *dev, pm_message_t state) { Loading @@ -159,6 +164,8 @@ static int pxa_irq_suspend(struct sys_device *dev, pm_message_t state) saved_icmr[i] = _ICMR(irq); _ICMR(irq) = 0; } for (i = 0; i < pxa_internal_irq_nr; i++) saved_ipr[i] = IPR(i); return 0; } Loading @@ -171,6 +178,8 @@ static int pxa_irq_resume(struct sys_device *dev) _ICMR(irq) = saved_icmr[i]; _ICLR(irq) = 0; } for (i = 0; i < pxa_internal_irq_nr; i++) IPR(i) = saved_ipr[i]; ICCR = 1; return 0; Loading
arch/arm/mach-pxa/palmtc.c +4 −4 Original line number Diff line number Diff line Loading @@ -292,10 +292,10 @@ const static unsigned int palmtc_keypad_col_gpios[] = { static struct matrix_keypad_platform_data palmtc_keypad_platform_data = { .keymap_data = &palmtc_keymap_data, .col_gpios = palmtc_keypad_row_gpios, .num_col_gpios = 12, .row_gpios = palmtc_keypad_col_gpios, .num_row_gpios = 4, .row_gpios = palmtc_keypad_row_gpios, .num_row_gpios = ARRAY_SIZE(palmtc_keypad_row_gpios), .col_gpios = palmtc_keypad_col_gpios, .num_col_gpios = ARRAY_SIZE(palmtc_keypad_col_gpios), .active_low = 1, .debounce_ms = 20, Loading
arch/arm/mach-pxa/spitz.c +23 −16 Original line number Diff line number Diff line Loading @@ -779,11 +779,34 @@ static void __init common_init(void) pxa_set_i2c_info(NULL); } #if defined(CONFIG_MACH_AKITA) || defined(CONFIG_MACH_BORZOI) static struct nand_bbt_descr sharpsl_akita_bbt = { .options = 0, .offs = 4, .len = 1, .pattern = scan_ff_pattern }; static struct nand_ecclayout akita_oobinfo = { .eccbytes = 24, .eccpos = { 0x5, 0x1, 0x2, 0x3, 0x6, 0x7, 0x15, 0x11, 0x12, 0x13, 0x16, 0x17, 0x25, 0x21, 0x22, 0x23, 0x26, 0x27, 0x35, 0x31, 0x32, 0x33, 0x36, 0x37}, .oobfree = {{0x08, 0x09}} }; #endif #if defined(CONFIG_MACH_SPITZ) || defined(CONFIG_MACH_BORZOI) static void __init spitz_init(void) { spitz_ficp_platform_data.gpio_pwdown = SPITZ_GPIO_IR_ON; if (machine_is_borzoi()) { sharpsl_nand_platform_data.badblock_pattern = &sharpsl_akita_bbt; sharpsl_nand_platform_data.ecc_layout = &akita_oobinfo; } platform_scoop_config = &spitz_pcmcia_config; common_init(); Loading @@ -808,22 +831,6 @@ static struct i2c_board_info akita_i2c_board_info[] = { }, }; static struct nand_bbt_descr sharpsl_akita_bbt = { .options = 0, .offs = 4, .len = 1, .pattern = scan_ff_pattern }; static struct nand_ecclayout akita_oobinfo = { .eccbytes = 24, .eccpos = { 0x5, 0x1, 0x2, 0x3, 0x6, 0x7, 0x15, 0x11, 0x12, 0x13, 0x16, 0x17, 0x25, 0x21, 0x22, 0x23, 0x26, 0x27, 0x35, 0x31, 0x32, 0x33, 0x36, 0x37}, .oobfree = {{0x08, 0x09}} }; static void __init akita_init(void) { spitz_ficp_platform_data.gpio_pwdown = AKITA_GPIO_IR_ON; Loading