From 9384ea326fbcaf1f28dd007df828c5cbdd108453 Mon Sep 17 00:00:00 2001 From: zyw Date: Mon, 30 May 2011 10:39:53 +0800 Subject: [PATCH] add charger logo api in fb --- drivers/video/fbmem.c | 6 ++++++ drivers/video/rk29_fb.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index 27e40d34c209..5be877edd6c3 100755 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c @@ -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; diff --git a/drivers/video/rk29_fb.c b/drivers/video/rk29_fb.c index 05b61fc60284..36d32eae3a6a 100755 --- a/drivers/video/rk29_fb.c +++ b/drivers/video/rk29_fb.c @@ -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) -- 2.34.1