[PATCH] ARM: 2661/1: imxfb include
Patch from Sascha Hauer This patch adds the missing include files for the i.MX framebuffer driver. Signed-off-by: Sascha Hauer Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
committed by
Russell King
parent
eca02b0c1d
commit
a493820df6
@@ -26,6 +26,7 @@
|
|||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
|
#include <asm/arch/imxfb.h>
|
||||||
#include <asm/hardware.h>
|
#include <asm/hardware.h>
|
||||||
|
|
||||||
#include <asm/mach/map.h>
|
#include <asm/mach/map.h>
|
||||||
@@ -228,6 +229,14 @@ static struct platform_device imx_uart2_device = {
|
|||||||
.resource = imx_uart2_resources,
|
.resource = imx_uart2_resources,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct imxfb_mach_info imx_fb_info;
|
||||||
|
|
||||||
|
void __init set_imx_fb_info(struct imxfb_mach_info *hard_imx_fb_info)
|
||||||
|
{
|
||||||
|
memcpy(&imx_fb_info,hard_imx_fb_info,sizeof(struct imxfb_mach_info));
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(set_imx_fb_info);
|
||||||
|
|
||||||
static struct resource imxfb_resources[] = {
|
static struct resource imxfb_resources[] = {
|
||||||
[0] = {
|
[0] = {
|
||||||
.start = 0x00205000,
|
.start = 0x00205000,
|
||||||
@@ -241,9 +250,16 @@ static struct resource imxfb_resources[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static u64 fb_dma_mask = ~(u64)0;
|
||||||
|
|
||||||
static struct platform_device imxfb_device = {
|
static struct platform_device imxfb_device = {
|
||||||
.name = "imx-fb",
|
.name = "imx-fb",
|
||||||
.id = 0,
|
.id = 0,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &imx_fb_info,
|
||||||
|
.dma_mask = &fb_dma_mask,
|
||||||
|
.coherent_dma_mask = 0xffffffff,
|
||||||
|
},
|
||||||
.num_resources = ARRAY_SIZE(imxfb_resources),
|
.num_resources = ARRAY_SIZE(imxfb_resources),
|
||||||
.resource = imxfb_resources,
|
.resource = imxfb_resources,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user