rpms/kernel/devel linux-2.6-merge-efifb-imacfb.patch,1.2,1.3

Peter Jones (pjones) fedora-extras-commits at redhat.com
Fri Apr 11 18:29:19 UTC 2008


Author: pjones

Update of /cvs/extras/rpms/kernel/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30008

Modified Files:
	linux-2.6-merge-efifb-imacfb.patch 
Log Message:
Add MacBookAir1,1 support.


linux-2.6-merge-efifb-imacfb.patch:

Index: linux-2.6-merge-efifb-imacfb.patch
===================================================================
RCS file: /cvs/extras/rpms/kernel/devel/linux-2.6-merge-efifb-imacfb.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- linux-2.6-merge-efifb-imacfb.patch	1 Apr 2008 22:25:52 -0000	1.2
+++ linux-2.6-merge-efifb-imacfb.patch	11 Apr 2008 18:28:52 -0000	1.3
@@ -1,9 +1,9 @@
 
  Kconfig  |   15 --
  Makefile |    1 
- efifb.c  |  175 +++++++++++++++++++++++++++--
+ efifb.c  |  178 ++++++++++++++++++++++++++++-
  imacfb.c |  376 ---------------------------------------------------------------
- 4 files changed, 168 insertions(+), 399 deletions(-)
+ 4 files changed, 171 insertions(+), 399 deletions(-)
 
 diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
 index 1bd5fb3..474c375 100644
@@ -49,7 +49,7 @@
  obj-$(CONFIG_FB_VGA16)            += vga16fb.o
  obj-$(CONFIG_FB_OF)               += offb.o
 diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c
-index bd779ae..489f030 100644
+index bd779ae..d4b47d4 100644
 --- a/drivers/video/efifb.c
 +++ b/drivers/video/efifb.c
 @@ -12,6 +12,7 @@
@@ -60,7 +60,7 @@
  
  #include <video/vga.h>
  
-@@ -33,6 +34,89 @@ static struct fb_fix_screeninfo efifb_fix __initdata = {
+@@ -33,6 +34,92 @@ static struct fb_fix_screeninfo efifb_fix __initdata = {
  	.visual			= FB_VISUAL_TRUECOLOR,
  };
  
@@ -71,6 +71,7 @@
 +	M_I24,		/* 24-Inch iMac */
 +	M_MINI,		/* Mac Mini */
 +	M_MB,		/* MacBook */
++	M_MBA,		/* MacBook Air */
 +	M_MBP,		/* MacBook Pro */
 +	M_MBP_2,	/* MacBook Pro 2nd gen */
 +	M_MBP_SR,	/* MacBook Pro (Santa Rosa) */
@@ -90,6 +91,7 @@
 +	[M_I24] = { "i24", 0x80010000, 2048 * 4, 1920, 1200 }, /* guess */
 +	[M_MINI]= { "mini", 0x80000000, 2048 * 4, 1024, 768 },
 +	[M_MB] = { "macbook", 0x80000000, 2048 * 4, 1280, 800 },
++	[M_MBA] = { "mba", 0x80000000, 2048 * 4, 1280, 800 },
 +	[M_MBP] = { "mbp", 0x80010000, 1472 * 4, 1440, 900 },
 +	[M_MBP_2] = { "mbp2", 0, 0, 0, 0 }, /* placeholder */
 +	[M_MBP_SR] = { "mbp3", 0x80030000, 2048 * 4, 1440, 900 },
@@ -115,6 +117,7 @@
 +	EFIFB_DMI_SYSTEM_ID("Apple Inc.", "iMac7,1", M_I20_SR),
 +	EFIFB_DMI_SYSTEM_ID("Apple Computer, Inc.", "Macmini1,1", M_MINI),
 +	EFIFB_DMI_SYSTEM_ID("Apple Computer, Inc.", "MacBook1,1", M_MB),
++	EFIFB_DMI_SYSTEM_ID("Apple Inc.", "MacBookAir1,1", M_MBA),
 +	EFIFB_DMI_SYSTEM_ID("Apple Computer, Inc.", "MacBookPro1,1", M_MBP),
 +	EFIFB_DMI_SYSTEM_ID("Apple Computer, Inc.", "MacBookPro2,1", M_MBP_2),
 +	EFIFB_DMI_SYSTEM_ID("Apple Inc.", "MacBookPro2,1", M_MBP_2),
@@ -150,7 +153,7 @@
  static int efifb_setcolreg(unsigned regno, unsigned red, unsigned green,
  			   unsigned blue, unsigned transp,
  			   struct fb_info *info)
-@@ -67,6 +151,38 @@ static struct fb_ops efifb_ops = {
+@@ -67,6 +154,38 @@ static struct fb_ops efifb_ops = {
  	.fb_imageblit	= cfb_imageblit,
  };
  
@@ -189,7 +192,7 @@
  static int __init efifb_probe(struct platform_device *dev)
  {
  	struct fb_info *info;
-@@ -74,6 +190,26 @@ static int __init efifb_probe(struct platform_device *dev)
+@@ -74,6 +193,26 @@ static int __init efifb_probe(struct platform_device *dev)
  	unsigned int size_vmode;
  	unsigned int size_remap;
  	unsigned int size_total;
@@ -216,7 +219,7 @@
  
  	efifb_fix.smem_start = screen_info.lfb_base;
  	efifb_defined.bits_per_pixel = screen_info.lfb_depth;
-@@ -98,21 +234,25 @@ static int __init efifb_probe(struct platform_device *dev)
+@@ -98,21 +237,25 @@ static int __init efifb_probe(struct platform_device *dev)
  	 *                 option to simply use size_total as that
  	 *                 wastes plenty of kernel address space. */
  	size_remap  = size_vmode * 2;
@@ -245,7 +248,7 @@
  		err = -ENOMEM;
  		goto err_release_mem;
  	}
-@@ -125,7 +265,7 @@ static int __init efifb_probe(struct platform_device *dev)
+@@ -125,7 +268,7 @@ static int __init efifb_probe(struct platform_device *dev)
  				"0x%x @ 0x%lx\n",
  			efifb_fix.smem_len, efifb_fix.smem_start);
  		err = -EIO;
@@ -254,7 +257,7 @@
  	}
  
  	printk(KERN_INFO "efifb: framebuffer at 0x%lx, mapped to 0x%p, "
-@@ -178,25 +318,27 @@ static int __init efifb_probe(struct platform_device *dev)
+@@ -178,25 +321,27 @@ static int __init efifb_probe(struct platform_device *dev)
  	info->fix = efifb_fix;
  	info->flags = FBINFO_FLAG_DEFAULT;
  
@@ -288,7 +291,7 @@
  	return err;
  }
  
-@@ -214,9 +356,22 @@ static struct platform_device efifb_device = {
+@@ -214,9 +359,22 @@ static struct platform_device efifb_device = {
  static int __init efifb_init(void)
  {
  	int ret;




More information about the scm-commits mailing list