-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 25304 b: refs/heads/master c: 0dc5e77 h: refs/heads/master v: v3
- Loading branch information
Tony Lindgren
authored and
Russell King
committed
Apr 2, 2006
1 parent
85f8ee5
commit 4bcf10c
Showing
6 changed files
with
173 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 670c104ae8e7bcc28be0289a16dac2ddfb88b285 | ||
refs/heads/master: 0dc5e77c46c6b02e8286f17544d93d614c0cb892 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
#include <linux/config.h> | ||
#include <linux/module.h> | ||
#include <linux/kernel.h> | ||
#include <linux/init.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/bootmem.h> | ||
|
||
#include <asm/hardware.h> | ||
#include <asm/io.h> | ||
#include <asm/mach-types.h> | ||
#include <asm/mach/map.h> | ||
|
||
#include <asm/arch/board.h> | ||
#include <asm/arch/sram.h> | ||
#include <asm/arch/omapfb.h> | ||
|
||
#if defined(CONFIG_FB_OMAP) || defined(CONFIG_FB_OMAP_MODULE) | ||
|
||
static struct omapfb_platform_data omapfb_config; | ||
|
||
static u64 omap_fb_dma_mask = ~(u32)0; | ||
|
||
static struct platform_device omap_fb_device = { | ||
.name = "omapfb", | ||
.id = -1, | ||
.dev = { | ||
.dma_mask = &omap_fb_dma_mask, | ||
.coherent_dma_mask = ~(u32)0, | ||
.platform_data = &omapfb_config, | ||
}, | ||
.num_resources = 0, | ||
}; | ||
|
||
/* called from map_io */ | ||
void omapfb_reserve_mem(void) | ||
{ | ||
const struct omap_fbmem_config *fbmem_conf; | ||
|
||
omapfb_config.fbmem.fb_sram_start = omap_fb_sram_start; | ||
omapfb_config.fbmem.fb_sram_size = omap_fb_sram_size; | ||
|
||
fbmem_conf = omap_get_config(OMAP_TAG_FBMEM, struct omap_fbmem_config); | ||
|
||
if (fbmem_conf != NULL) { | ||
/* indicate that the bootloader already initialized the | ||
* fb device, so we'll skip that part in the fb driver | ||
*/ | ||
omapfb_config.fbmem.fb_sdram_start = fbmem_conf->fb_sdram_start; | ||
omapfb_config.fbmem.fb_sdram_size = fbmem_conf->fb_sdram_size; | ||
if (fbmem_conf->fb_sdram_size) { | ||
pr_info("Reserving %u bytes SDRAM for frame buffer\n", | ||
fbmem_conf->fb_sdram_size); | ||
reserve_bootmem(fbmem_conf->fb_sdram_start, | ||
fbmem_conf->fb_sdram_size); | ||
} | ||
} | ||
} | ||
|
||
static inline int omap_init_fb(void) | ||
{ | ||
const struct omap_lcd_config *conf; | ||
|
||
conf = omap_get_config(OMAP_TAG_LCD, struct omap_lcd_config); | ||
if (conf == NULL) | ||
return 0; | ||
|
||
omapfb_config.lcd = *conf; | ||
|
||
return platform_device_register(&omap_fb_device); | ||
} | ||
|
||
arch_initcall(omap_init_fb); | ||
|
||
#else | ||
|
||
void omapfb_reserve_mem(void) {} | ||
|
||
#endif | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef __LCD_LPH8923_H | ||
#define __LCD_LPH8923_H | ||
|
||
enum lcd_lph8923_test_num { | ||
LCD_LPH8923_TEST_RGB_LINES, | ||
}; | ||
|
||
enum lcd_lph8923_test_result { | ||
LCD_LPH8923_TEST_SUCCESS, | ||
LCD_LPH8923_TEST_INVALID, | ||
LCD_LPH8923_TEST_FAILED, | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters