Commit 0c157024 authored by Russell King's avatar Russell King Committed by Russell King

Merge branch 'for-rmk' of git://git.pengutronix.de/git/imx/linux-2.6

parents 64724ef8 25971dfe
...@@ -454,6 +454,7 @@ config ARCH_MXC ...@@ -454,6 +454,7 @@ config ARCH_MXC
select ARCH_MTD_XIP select ARCH_MTD_XIP
select GENERIC_GPIO select GENERIC_GPIO
select ARCH_REQUIRE_GPIOLIB select ARCH_REQUIRE_GPIOLIB
select HAVE_CLK
help help
Support for Freescale MXC/iMX-based family of processors Support for Freescale MXC/iMX-based family of processors
......
This diff is collapsed.
...@@ -197,7 +197,7 @@ CONFIG_MXC_PWM=y ...@@ -197,7 +197,7 @@ CONFIG_MXC_PWM=y
# #
CONFIG_CPU_32=y CONFIG_CPU_32=y
CONFIG_CPU_V6=y CONFIG_CPU_V6=y
CONFIG_CPU_32v6K=y # CONFIG_CPU_32v6K is not set
CONFIG_CPU_32v6=y CONFIG_CPU_32v6=y
CONFIG_CPU_ABRT_EV6=y CONFIG_CPU_ABRT_EV6=y
CONFIG_CPU_PABRT_NOIFAR=y CONFIG_CPU_PABRT_NOIFAR=y
......
...@@ -693,12 +693,15 @@ int imx_dma_request(int channel, const char *name) ...@@ -693,12 +693,15 @@ int imx_dma_request(int channel, const char *name)
local_irq_restore(flags); local_irq_restore(flags);
return -EBUSY; return -EBUSY;
} }
memset(imxdma, 0, sizeof(imxdma));
imxdma->name = name;
local_irq_restore(flags); /* request_irq() can block */
#ifdef CONFIG_ARCH_MX2 #ifdef CONFIG_ARCH_MX2
ret = request_irq(MXC_INT_DMACH0 + channel, dma_irq_handler, 0, "DMA", ret = request_irq(MXC_INT_DMACH0 + channel, dma_irq_handler, 0, "DMA",
NULL); NULL);
if (ret) { if (ret) {
local_irq_restore(flags); imxdma->name = NULL;
printk(KERN_CRIT "Can't register IRQ %d for DMA channel %d\n", printk(KERN_CRIT "Can't register IRQ %d for DMA channel %d\n",
MXC_INT_DMACH0 + channel, channel); MXC_INT_DMACH0 + channel, channel);
return ret; return ret;
...@@ -708,13 +711,6 @@ int imx_dma_request(int channel, const char *name) ...@@ -708,13 +711,6 @@ int imx_dma_request(int channel, const char *name)
imxdma->watchdog.data = channel; imxdma->watchdog.data = channel;
#endif #endif
imxdma->name = name;
imxdma->irq_handler = NULL;
imxdma->err_handler = NULL;
imxdma->data = NULL;
imxdma->sg = NULL;
local_irq_restore(flags);
return ret; return ret;
} }
EXPORT_SYMBOL(imx_dma_request); EXPORT_SYMBOL(imx_dma_request);
...@@ -737,10 +733,7 @@ void imx_dma_free(int channel) ...@@ -737,10 +733,7 @@ void imx_dma_free(int channel)
local_irq_save(flags); local_irq_save(flags);
/* Disable interrupts */ /* Disable interrupts */
__raw_writel(__raw_readl(DMA_BASE + DMA_DIMR) | (1 << channel), imx_dma_disable(channel);
DMA_BASE + DMA_DIMR);
__raw_writel(__raw_readl(DMA_BASE + DMA_CCR(channel)) & ~CCR_CEN,
DMA_BASE + DMA_CCR(channel));
imxdma->name = NULL; imxdma->name = NULL;
#ifdef CONFIG_ARCH_MX2 #ifdef CONFIG_ARCH_MX2
......
...@@ -124,7 +124,7 @@ static void mx3_gpio_irq_handler(u32 irq, struct irq_desc *desc) ...@@ -124,7 +124,7 @@ static void mx3_gpio_irq_handler(u32 irq, struct irq_desc *desc)
irq_stat = __raw_readl(port->base + GPIO_ISR) & irq_stat = __raw_readl(port->base + GPIO_ISR) &
__raw_readl(port->base + GPIO_IMR); __raw_readl(port->base + GPIO_IMR);
BUG_ON(!irq_stat);
mxc_gpio_irq_handler(port, irq_stat); mxc_gpio_irq_handler(port, irq_stat);
} }
#endif #endif
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
/* /*
* Base address of PBC controller, CS4 * Base address of PBC controller, CS4
*/ */
#define PBC_BASE_ADDRESS 0xEB000000 #define PBC_BASE_ADDRESS 0xf4300000
#define PBC_REG_ADDR(offset) (void __force __iomem *) \ #define PBC_REG_ADDR(offset) (void __force __iomem *) \
(PBC_BASE_ADDRESS + (offset)) (PBC_BASE_ADDRESS + (offset))
......
...@@ -1152,11 +1152,11 @@ static struct fb_ops mx3fb_ops = { ...@@ -1152,11 +1152,11 @@ static struct fb_ops mx3fb_ops = {
*/ */
static int mx3fb_suspend(struct platform_device *pdev, pm_message_t state) static int mx3fb_suspend(struct platform_device *pdev, pm_message_t state)
{ {
struct mx3fb_data *drv_data = platform_get_drvdata(pdev); struct mx3fb_data *mx3fb = platform_get_drvdata(pdev);
struct mx3fb_info *mx3_fbi = drv_data->fbi->par; struct mx3fb_info *mx3_fbi = mx3fb->fbi->par;
acquire_console_sem(); acquire_console_sem();
fb_set_suspend(drv_data->fbi, 1); fb_set_suspend(mx3fb->fbi, 1);
release_console_sem(); release_console_sem();
if (mx3_fbi->blank == FB_BLANK_UNBLANK) { if (mx3_fbi->blank == FB_BLANK_UNBLANK) {
...@@ -1172,16 +1172,16 @@ static int mx3fb_suspend(struct platform_device *pdev, pm_message_t state) ...@@ -1172,16 +1172,16 @@ static int mx3fb_suspend(struct platform_device *pdev, pm_message_t state)
*/ */
static int mx3fb_resume(struct platform_device *pdev) static int mx3fb_resume(struct platform_device *pdev)
{ {
struct mx3fb_data *drv_data = platform_get_drvdata(pdev); struct mx3fb_data *mx3fb = platform_get_drvdata(pdev);
struct mx3fb_info *mx3_fbi = drv_data->fbi->par; struct mx3fb_info *mx3_fbi = mx3fb->fbi->par;
if (mx3_fbi->blank == FB_BLANK_UNBLANK) { if (mx3_fbi->blank == FB_BLANK_UNBLANK) {
sdc_enable_channel(mx3_fbi); sdc_enable_channel(mx3_fbi);
sdc_set_brightness(mx3fb, drv_data->backlight_level); sdc_set_brightness(mx3fb, mx3fb->backlight_level);
} }
acquire_console_sem(); acquire_console_sem();
fb_set_suspend(drv_data->fbi, 0); fb_set_suspend(mx3fb->fbi, 0);
release_console_sem(); release_console_sem();
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment