From 10bab38231ed7983003c1d7d653a782f37c6c06b Mon Sep 17 00:00:00 2001 From: Seth Forshee Date: Wed, 23 Jan 2013 15:43:04 -0600 Subject: [PATCH] efifb: Add quirk for iMac 12,1 The kernel doesn't seem to be getting the data about the GOP framebuffer for some reason, so add a quirk to get it working. Signed-off-by: Seth Forshee --- drivers/video/efifb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c index 50fe668..fff9646 100644 --- a/drivers/video/efifb.c +++ b/drivers/video/efifb.c @@ -46,6 +46,7 @@ enum { M_I24_8_1, /* 24-Inch iMac, 8,1th gen */ M_I24_10_1, /* 24-Inch iMac, 10,1th gen */ M_I27_11_1, /* 27-Inch iMac, 11,1th gen */ + M_I21_12_1, /* 21.5-Inch iMac, 12,1th gen */ M_MINI, /* Mac Mini */ M_MINI_3_1, /* Mac Mini, 3,1th gen */ M_MINI_4_1, /* Mac Mini, 4,1th gen */ @@ -94,6 +95,7 @@ static struct efifb_dmi_info { [M_I24_8_1] = { "imac8", 0xc0060000, 2048 * 4, 1920, 1200, OVERRIDE_NONE }, [M_I24_10_1] = { "imac10", 0xc0010000, 2048 * 4, 1920, 1080, OVERRIDE_NONE }, [M_I27_11_1] = { "imac11", 0xc0010000, 2560 * 4, 2560, 1440, OVERRIDE_NONE }, + [M_I21_12_1] = { "imac12", 0x90010000, 1920 * 4, 1920, 1080, OVERRIDE_NONE }, [M_MINI]= { "mini", 0x80000000, 2048 * 4, 1024, 768, OVERRIDE_NONE }, [M_MINI_3_1] = { "mini31", 0x40010000, 1024 * 4, 1024, 768, OVERRIDE_NONE }, [M_MINI_4_1] = { "mini41", 0xc0010000, 2048 * 4, 1920, 1200, OVERRIDE_NONE }, @@ -139,6 +141,7 @@ static const struct dmi_system_id dmi_system_table[] __initconst = { EFIFB_DMI_SYSTEM_ID("Apple Inc.", "iMac8,1", M_I24_8_1), EFIFB_DMI_SYSTEM_ID("Apple Inc.", "iMac10,1", M_I24_10_1), EFIFB_DMI_SYSTEM_ID("Apple Inc.", "iMac11,1", M_I27_11_1), + EFIFB_DMI_SYSTEM_ID("Apple Inc.", "iMac12,1", M_I21_12_1), EFIFB_DMI_SYSTEM_ID("Apple Computer, Inc.", "Macmini1,1", M_MINI), EFIFB_DMI_SYSTEM_ID("Apple Inc.", "Macmini3,1", M_MINI_3_1), EFIFB_DMI_SYSTEM_ID("Apple Inc.", "Macmini4,1", M_MINI_4_1), -- 1.7.9.5