add charger logo api in fb

This commit is contained in:
zyw
2011-05-30 10:39:53 +08:00
parent 8ab8c89c0b
commit 9384ea326f
2 changed files with 9 additions and 1 deletions

View File

@@ -329,6 +329,12 @@ static struct logo_data {
const struct linux_logo *logo;
} fb_logo __read_mostly;
void show_charge_logo(struct linux_logo *logo)
{
fb_logo.logo = logo;
return;
}
static void fb_rotate_logo_ud(const u8 *in, u8 *out, u32 width, u32 height)
{
u32 size = width * height, i;

View File

@@ -2393,7 +2393,7 @@ static struct suspend_info suspend_info = {
.early_suspend.level = EARLY_SUSPEND_LEVEL_DISABLE_FB,
};
#endif
struct fb_info *g_inf = NULL; //add cym@rk 20101027 for charger logo
static int __init rk29fb_probe (struct platform_device *pdev)
{
struct rk29fb_inf *inf = NULL;
@@ -2525,6 +2525,8 @@ static int __init rk29fb_probe (struct platform_device *pdev)
if (ret < 0)
goto release_cmap;
g_inf = inf->fb0; //add cym@rk 20101027
/* alloc win1 buf */
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "win1 buf");
if (res == NULL)