Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 816
b: refs/heads/master
c: a493820
h: refs/heads/master
v: v3
  • Loading branch information
Sascha Hauer authored and Russell King committed May 3, 2005
1 parent 6956eba commit 078fbec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eca02b0c1dc1da374216128157747d8ed994e5ef
refs/heads/master: a493820df65909d344824499937c939150559ace
16 changes: 16 additions & 0 deletions trunk/arch/arm/mach-imx/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <asm/arch/imxfb.h>
#include <asm/hardware.h>

#include <asm/mach/map.h>
Expand Down Expand Up @@ -228,6 +229,14 @@ static struct platform_device imx_uart2_device = {
.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[] = {
[0] = {
.start = 0x00205000,
Expand All @@ -241,9 +250,16 @@ static struct resource imxfb_resources[] = {
},
};

static u64 fb_dma_mask = ~(u64)0;

static struct platform_device imxfb_device = {
.name = "imx-fb",
.id = 0,
.dev = {
.platform_data = &imx_fb_info,
.dma_mask = &fb_dma_mask,
.coherent_dma_mask = 0xffffffff,
},
.num_resources = ARRAY_SIZE(imxfb_resources),
.resource = imxfb_resources,
};
Expand Down

0 comments on commit 078fbec

Please sign in to comment.