add charger logo api in fb
authorzyw <zyw@rock-chips.com>
Mon, 30 May 2011 02:39:53 +0000 (10:39 +0800)
committerzyw <zyw@rock-chips.com>
Mon, 30 May 2011 02:39:53 +0000 (10:39 +0800)
drivers/video/fbmem.c
drivers/video/rk29_fb.c

index 27e40d34c209a907f148735edcf0613fdadc5e53..5be877edd6c31eddcb436dec2dd44e03b11b90f8 100755 (executable)
@@ -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;
index 05b61fc6028459b2ce4e62bce5a18f2421b3e017..36d32eae3a6a9a73ba17afd9b4b40d9ebb05a9bf 100755 (executable)
@@ -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)