diff options
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/fb.c | 5 | ||||
-rw-r--r-- | arch/arm/plat-omap/gpio.c | 31 | ||||
-rw-r--r-- | arch/arm/plat-omap/mailbox.c | 2 |
3 files changed, 20 insertions, 18 deletions
diff --git a/arch/arm/plat-omap/fb.c b/arch/arm/plat-omap/fb.c index 7854f19b77cf..5d107520e6b9 100644 --- a/arch/arm/plat-omap/fb.c +++ b/arch/arm/plat-omap/fb.c | |||
@@ -23,6 +23,7 @@ | |||
23 | 23 | ||
24 | #include <linux/module.h> | 24 | #include <linux/module.h> |
25 | #include <linux/kernel.h> | 25 | #include <linux/kernel.h> |
26 | #include <linux/mm.h> | ||
26 | #include <linux/init.h> | 27 | #include <linux/init.h> |
27 | #include <linux/platform_device.h> | 28 | #include <linux/platform_device.h> |
28 | #include <linux/bootmem.h> | 29 | #include <linux/bootmem.h> |
@@ -182,7 +183,7 @@ void __init omapfb_reserve_sdram(void) | |||
182 | return; | 183 | return; |
183 | 184 | ||
184 | bdata = NODE_DATA(0)->bdata; | 185 | bdata = NODE_DATA(0)->bdata; |
185 | sdram_start = bdata->node_boot_start; | 186 | sdram_start = bdata->node_min_pfn << PAGE_SHIFT; |
186 | sdram_size = (bdata->node_low_pfn << PAGE_SHIFT) - sdram_start; | 187 | sdram_size = (bdata->node_low_pfn << PAGE_SHIFT) - sdram_start; |
187 | reserved = 0; | 188 | reserved = 0; |
188 | for (i = 0; ; i++) { | 189 | for (i = 0; ; i++) { |
@@ -340,5 +341,3 @@ unsigned long omapfb_reserve_sram(unsigned long sram_pstart, | |||
340 | 341 | ||
341 | 342 | ||
342 | #endif | 343 | #endif |
343 | |||
344 | |||
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 1903a3491ee9..63e094342ef6 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c | |||
@@ -517,13 +517,13 @@ static inline void set_24xx_gpio_triggering(struct gpio_bank *bank, int gpio, | |||
517 | u32 gpio_bit = 1 << gpio; | 517 | u32 gpio_bit = 1 << gpio; |
518 | 518 | ||
519 | MOD_REG_BIT(OMAP24XX_GPIO_LEVELDETECT0, gpio_bit, | 519 | MOD_REG_BIT(OMAP24XX_GPIO_LEVELDETECT0, gpio_bit, |
520 | trigger & __IRQT_LOWLVL); | 520 | trigger & IRQ_TYPE_LEVEL_LOW); |
521 | MOD_REG_BIT(OMAP24XX_GPIO_LEVELDETECT1, gpio_bit, | 521 | MOD_REG_BIT(OMAP24XX_GPIO_LEVELDETECT1, gpio_bit, |
522 | trigger & __IRQT_HIGHLVL); | 522 | trigger & IRQ_TYPE_LEVEL_HIGH); |
523 | MOD_REG_BIT(OMAP24XX_GPIO_RISINGDETECT, gpio_bit, | 523 | MOD_REG_BIT(OMAP24XX_GPIO_RISINGDETECT, gpio_bit, |
524 | trigger & __IRQT_RISEDGE); | 524 | trigger & IRQ_TYPE_EDGE_RISING); |
525 | MOD_REG_BIT(OMAP24XX_GPIO_FALLINGDETECT, gpio_bit, | 525 | MOD_REG_BIT(OMAP24XX_GPIO_FALLINGDETECT, gpio_bit, |
526 | trigger & __IRQT_FALEDGE); | 526 | trigger & IRQ_TYPE_EDGE_FALLING); |
527 | 527 | ||
528 | if (likely(!(bank->non_wakeup_gpios & gpio_bit))) { | 528 | if (likely(!(bank->non_wakeup_gpios & gpio_bit))) { |
529 | if (trigger != 0) | 529 | if (trigger != 0) |
@@ -555,9 +555,9 @@ static int _set_gpio_triggering(struct gpio_bank *bank, int gpio, int trigger) | |||
555 | case METHOD_MPUIO: | 555 | case METHOD_MPUIO: |
556 | reg += OMAP_MPUIO_GPIO_INT_EDGE; | 556 | reg += OMAP_MPUIO_GPIO_INT_EDGE; |
557 | l = __raw_readl(reg); | 557 | l = __raw_readl(reg); |
558 | if (trigger & __IRQT_RISEDGE) | 558 | if (trigger & IRQ_TYPE_EDGE_RISING) |
559 | l |= 1 << gpio; | 559 | l |= 1 << gpio; |
560 | else if (trigger & __IRQT_FALEDGE) | 560 | else if (trigger & IRQ_TYPE_EDGE_FALLING) |
561 | l &= ~(1 << gpio); | 561 | l &= ~(1 << gpio); |
562 | else | 562 | else |
563 | goto bad; | 563 | goto bad; |
@@ -567,9 +567,9 @@ static int _set_gpio_triggering(struct gpio_bank *bank, int gpio, int trigger) | |||
567 | case METHOD_GPIO_1510: | 567 | case METHOD_GPIO_1510: |
568 | reg += OMAP1510_GPIO_INT_CONTROL; | 568 | reg += OMAP1510_GPIO_INT_CONTROL; |
569 | l = __raw_readl(reg); | 569 | l = __raw_readl(reg); |
570 | if (trigger & __IRQT_RISEDGE) | 570 | if (trigger & IRQ_TYPE_EDGE_RISING) |
571 | l |= 1 << gpio; | 571 | l |= 1 << gpio; |
572 | else if (trigger & __IRQT_FALEDGE) | 572 | else if (trigger & IRQ_TYPE_EDGE_FALLING) |
573 | l &= ~(1 << gpio); | 573 | l &= ~(1 << gpio); |
574 | else | 574 | else |
575 | goto bad; | 575 | goto bad; |
@@ -584,9 +584,9 @@ static int _set_gpio_triggering(struct gpio_bank *bank, int gpio, int trigger) | |||
584 | gpio &= 0x07; | 584 | gpio &= 0x07; |
585 | l = __raw_readl(reg); | 585 | l = __raw_readl(reg); |
586 | l &= ~(3 << (gpio << 1)); | 586 | l &= ~(3 << (gpio << 1)); |
587 | if (trigger & __IRQT_RISEDGE) | 587 | if (trigger & IRQ_TYPE_EDGE_RISING) |
588 | l |= 2 << (gpio << 1); | 588 | l |= 2 << (gpio << 1); |
589 | if (trigger & __IRQT_FALEDGE) | 589 | if (trigger & IRQ_TYPE_EDGE_FALLING) |
590 | l |= 1 << (gpio << 1); | 590 | l |= 1 << (gpio << 1); |
591 | if (trigger) | 591 | if (trigger) |
592 | /* Enable wake-up during idle for dynamic tick */ | 592 | /* Enable wake-up during idle for dynamic tick */ |
@@ -599,9 +599,9 @@ static int _set_gpio_triggering(struct gpio_bank *bank, int gpio, int trigger) | |||
599 | case METHOD_GPIO_730: | 599 | case METHOD_GPIO_730: |
600 | reg += OMAP730_GPIO_INT_CONTROL; | 600 | reg += OMAP730_GPIO_INT_CONTROL; |
601 | l = __raw_readl(reg); | 601 | l = __raw_readl(reg); |
602 | if (trigger & __IRQT_RISEDGE) | 602 | if (trigger & IRQ_TYPE_EDGE_RISING) |
603 | l |= 1 << gpio; | 603 | l |= 1 << gpio; |
604 | else if (trigger & __IRQT_FALEDGE) | 604 | else if (trigger & IRQ_TYPE_EDGE_FALLING) |
605 | l &= ~(1 << gpio); | 605 | l &= ~(1 << gpio); |
606 | else | 606 | else |
607 | goto bad; | 607 | goto bad; |
@@ -887,7 +887,7 @@ static void _reset_gpio(struct gpio_bank *bank, int gpio) | |||
887 | _set_gpio_direction(bank, get_gpio_index(gpio), 1); | 887 | _set_gpio_direction(bank, get_gpio_index(gpio), 1); |
888 | _set_gpio_irqenable(bank, gpio, 0); | 888 | _set_gpio_irqenable(bank, gpio, 0); |
889 | _clear_gpio_irqstatus(bank, gpio); | 889 | _clear_gpio_irqstatus(bank, gpio); |
890 | _set_gpio_triggering(bank, get_gpio_index(gpio), IRQT_NOEDGE); | 890 | _set_gpio_triggering(bank, get_gpio_index(gpio), IRQ_TYPE_NONE); |
891 | } | 891 | } |
892 | 892 | ||
893 | /* Use disable_irq_wake() and enable_irq_wake() functions from drivers */ | 893 | /* Use disable_irq_wake() and enable_irq_wake() functions from drivers */ |
@@ -924,7 +924,7 @@ int omap_request_gpio(int gpio) | |||
924 | /* Set trigger to none. You need to enable the desired trigger with | 924 | /* Set trigger to none. You need to enable the desired trigger with |
925 | * request_irq() or set_irq_type(). | 925 | * request_irq() or set_irq_type(). |
926 | */ | 926 | */ |
927 | _set_gpio_triggering(bank, get_gpio_index(gpio), IRQT_NOEDGE); | 927 | _set_gpio_triggering(bank, get_gpio_index(gpio), IRQ_TYPE_NONE); |
928 | 928 | ||
929 | #ifdef CONFIG_ARCH_OMAP15XX | 929 | #ifdef CONFIG_ARCH_OMAP15XX |
930 | if (bank->method == METHOD_GPIO_1510) { | 930 | if (bank->method == METHOD_GPIO_1510) { |
@@ -1488,6 +1488,9 @@ static int __init _omap_gpio_init(void) | |||
1488 | bank->chip.set = gpio_set; | 1488 | bank->chip.set = gpio_set; |
1489 | if (bank_is_mpuio(bank)) { | 1489 | if (bank_is_mpuio(bank)) { |
1490 | bank->chip.label = "mpuio"; | 1490 | bank->chip.label = "mpuio"; |
1491 | #ifdef CONFIG_ARCH_OMAP1 | ||
1492 | bank->chip.dev = &omap_mpuio_device.dev; | ||
1493 | #endif | ||
1491 | bank->chip.base = OMAP_MPUIO(0); | 1494 | bank->chip.base = OMAP_MPUIO(0); |
1492 | } else { | 1495 | } else { |
1493 | bank->chip.label = "gpio"; | 1496 | bank->chip.label = "gpio"; |
diff --git a/arch/arm/plat-omap/mailbox.c b/arch/arm/plat-omap/mailbox.c index 6f33f58bca45..ff1413eae0b8 100644 --- a/arch/arm/plat-omap/mailbox.c +++ b/arch/arm/plat-omap/mailbox.c | |||
@@ -334,7 +334,7 @@ static int omap_mbox_init(struct omap_mbox *mbox) | |||
334 | } | 334 | } |
335 | 335 | ||
336 | mbox->dev.class = &omap_mbox_class; | 336 | mbox->dev.class = &omap_mbox_class; |
337 | strlcpy(mbox->dev.bus_id, mbox->name, KOBJ_NAME_LEN); | 337 | dev_set_name(&mbox->dev, "%s", mbox->name); |
338 | dev_set_drvdata(&mbox->dev, mbox); | 338 | dev_set_drvdata(&mbox->dev, mbox); |
339 | 339 | ||
340 | ret = device_register(&mbox->dev); | 340 | ret = device_register(&mbox->dev); |