diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-16 14:53:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-16 14:53:32 -0400 |
commit | d19d5efd8c8840aa4f38a6dfbfe500d8cc27de46 (patch) | |
tree | 2e2f4f57de790c7de2ccd6d1afbec8695b2c7a46 /drivers/video/fbdev | |
parent | 34c9a0ffc75ad25b6a60f61e27c4a4b1189b8085 (diff) | |
parent | 2fe0753d49402aee325cc39c476b46fd51a8afec (diff) |
Merge tag 'powerpc-4.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux
Pull powerpc updates from Michael Ellerman:
- Numerous minor fixes, cleanups etc.
- More EEH work from Gavin to remove its dependency on device_nodes.
- Memory hotplug implemented entirely in the kernel from Nathan
Fontenot.
- Removal of redundant CONFIG_PPC_OF by Kevin Hao.
- Rewrite of VPHN parsing logic & tests from Greg Kurz.
- A fix from Nish Aravamudan to reduce memory usage by clamping
nodes_possible_map.
- Support for pstore on powernv from Hari Bathini.
- Removal of old powerpc specific byte swap routines by David Gibson.
- Fix from Vasant Hegde to prevent the flash driver telling you it was
flashing your firmware when it wasn't.
- Patch from Ben Herrenschmidt to add an OPAL heartbeat driver.
- Fix for an oops causing get/put_cpu_var() imbalance in perf by Jan
Stancek.
- Some fixes for migration from Tyrel Datwyler.
- A new syscall to switch the cpu endian by Michael Ellerman.
- Large series from Wei Yang to implement SRIOV, reviewed and acked by
Bjorn.
- A fix for the OPAL sensor driver from Cédric Le Goater.
- Fixes to get STRICT_MM_TYPECHECKS building again by Michael Ellerman.
- Large series from Daniel Axtens to make our PCI hooks per PHB rather
than per machine.
- Small patch from Sam Bobroff to explicitly abort non-suspended
transactions on syscalls, plus a test to exercise it.
- Numerous reworks and fixes for the 24x7 PMU from Sukadev Bhattiprolu.
- Small patch to enable the hard lockup detector from Anton Blanchard.
- Fix from Dave Olson for missing L2 cache information on some CPUs.
- Some fixes from Michael Ellerman to get Cell machines booting again.
- Freescale updates from Scott: Highlights include BMan device tree
nodes, an MSI erratum workaround, a couple minor performance
improvements, config updates, and misc fixes/cleanup.
* tag 'powerpc-4.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux: (196 commits)
powerpc/powermac: Fix build error seen with powermac smp builds
powerpc/pseries: Fix compile of memory hotplug without CONFIG_MEMORY_HOTREMOVE
powerpc: Remove PPC32 code from pseries specific find_and_init_phbs()
powerpc/cell: Fix iommu breakage caused by controller_ops change
powerpc/eeh: Fix crash in eeh_add_device_early() on Cell
powerpc/perf: Cap 64bit userspace backtraces to PERF_MAX_STACK_DEPTH
powerpc/perf/hv-24x7: Fail 24x7 initcall if create_events_from_catalog() fails
powerpc/pseries: Correct memory hotplug locking
powerpc: Fix missing L2 cache size in /sys/devices/system/cpu
powerpc: Add ppc64 hard lockup detector support
oprofile: Disable oprofile NMI timer on ppc64
powerpc/perf/hv-24x7: Add missing put_cpu_var()
powerpc/perf/hv-24x7: Break up single_24x7_request
powerpc/perf/hv-24x7: Define update_event_count()
powerpc/perf/hv-24x7: Whitespace cleanup
powerpc/perf/hv-24x7: Define add_event_to_24x7_request()
powerpc/perf/hv-24x7: Rename hv_24x7_event_update
powerpc/perf/hv-24x7: Move debug prints to separate function
powerpc/perf/hv-24x7: Drop event_24x7_request()
powerpc/perf/hv-24x7: Use pr_devel() to log message
...
Conflicts:
tools/testing/selftests/powerpc/Makefile
tools/testing/selftests/powerpc/tm/Makefile
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r-- | drivers/video/fbdev/Kconfig | 4 | ||||
-rw-r--r-- | drivers/video/fbdev/aty/aty128fb.c | 4 | ||||
-rw-r--r-- | drivers/video/fbdev/aty/radeon_base.c | 24 | ||||
-rw-r--r-- | drivers/video/fbdev/aty/radeon_monitor.c | 20 | ||||
-rw-r--r-- | drivers/video/fbdev/aty/radeon_pm.c | 16 | ||||
-rw-r--r-- | drivers/video/fbdev/aty/radeonfb.h | 4 | ||||
-rw-r--r-- | drivers/video/fbdev/controlfb.c | 2 | ||||
-rw-r--r-- | drivers/video/fbdev/core/fbmon.c | 4 | ||||
-rw-r--r-- | drivers/video/fbdev/imsttfb.c | 6 | ||||
-rw-r--r-- | drivers/video/fbdev/nvidia/Makefile | 3 | ||||
-rw-r--r-- | drivers/video/fbdev/nvidia/nv_of.c | 3 | ||||
-rw-r--r-- | drivers/video/fbdev/nvidia/nv_proto.h | 8 | ||||
-rw-r--r-- | drivers/video/fbdev/nvidia/nvidia.c | 4 | ||||
-rw-r--r-- | drivers/video/fbdev/platinumfb.c | 2 | ||||
-rw-r--r-- | drivers/video/fbdev/riva/fbdev.c | 17 |
15 files changed, 47 insertions, 74 deletions
diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig index b3dd417b4719..109462303087 100644 --- a/drivers/video/fbdev/Kconfig +++ b/drivers/video/fbdev/Kconfig | |||
@@ -479,7 +479,7 @@ config FB_ATARI | |||
479 | 479 | ||
480 | config FB_OF | 480 | config FB_OF |
481 | bool "Open Firmware frame buffer device support" | 481 | bool "Open Firmware frame buffer device support" |
482 | depends on (FB = y) && (PPC64 || PPC_OF) && (!PPC_PSERIES || PCI) | 482 | depends on (FB = y) && PPC && (!PPC_PSERIES || PCI) |
483 | select FB_CFB_FILLRECT | 483 | select FB_CFB_FILLRECT |
484 | select FB_CFB_COPYAREA | 484 | select FB_CFB_COPYAREA |
485 | select FB_CFB_IMAGEBLIT | 485 | select FB_CFB_IMAGEBLIT |
@@ -1333,7 +1333,7 @@ config FB_RADEON | |||
1333 | select FB_CFB_FILLRECT | 1333 | select FB_CFB_FILLRECT |
1334 | select FB_CFB_COPYAREA | 1334 | select FB_CFB_COPYAREA |
1335 | select FB_CFB_IMAGEBLIT | 1335 | select FB_CFB_IMAGEBLIT |
1336 | select FB_MACMODES if PPC_OF | 1336 | select FB_MACMODES if PPC |
1337 | help | 1337 | help |
1338 | Choose this option if you want to use an ATI Radeon graphics card as | 1338 | Choose this option if you want to use an ATI Radeon graphics card as |
1339 | a framebuffer device. There are both PCI and AGP versions. You | 1339 | a framebuffer device. There are both PCI and AGP versions. You |
diff --git a/drivers/video/fbdev/aty/aty128fb.c b/drivers/video/fbdev/aty/aty128fb.c index aedf2fbf9bf6..0156954bf340 100644 --- a/drivers/video/fbdev/aty/aty128fb.c +++ b/drivers/video/fbdev/aty/aty128fb.c | |||
@@ -965,7 +965,7 @@ static void __iomem *aty128_find_mem_vbios(struct aty128fb_par *par) | |||
965 | /* fill in known card constants if pll_block is not available */ | 965 | /* fill in known card constants if pll_block is not available */ |
966 | static void aty128_timings(struct aty128fb_par *par) | 966 | static void aty128_timings(struct aty128fb_par *par) |
967 | { | 967 | { |
968 | #ifdef CONFIG_PPC_OF | 968 | #ifdef CONFIG_PPC |
969 | /* instead of a table lookup, assume OF has properly | 969 | /* instead of a table lookup, assume OF has properly |
970 | * setup the PLL registers and use their values | 970 | * setup the PLL registers and use their values |
971 | * to set the XCLK values and reference divider values */ | 971 | * to set the XCLK values and reference divider values */ |
@@ -979,7 +979,7 @@ static void aty128_timings(struct aty128fb_par *par) | |||
979 | if (!par->constants.ref_clk) | 979 | if (!par->constants.ref_clk) |
980 | par->constants.ref_clk = 2950; | 980 | par->constants.ref_clk = 2950; |
981 | 981 | ||
982 | #ifdef CONFIG_PPC_OF | 982 | #ifdef CONFIG_PPC |
983 | x_mpll_ref_fb_div = aty_ld_pll(X_MPLL_REF_FB_DIV); | 983 | x_mpll_ref_fb_div = aty_ld_pll(X_MPLL_REF_FB_DIV); |
984 | xclk_cntl = aty_ld_pll(XCLK_CNTL) & 0x7; | 984 | xclk_cntl = aty_ld_pll(XCLK_CNTL) & 0x7; |
985 | Nx = (x_mpll_ref_fb_div & 0x00ff00) >> 8; | 985 | Nx = (x_mpll_ref_fb_div & 0x00ff00) >> 8; |
diff --git a/drivers/video/fbdev/aty/radeon_base.c b/drivers/video/fbdev/aty/radeon_base.c index 26d80a4486fb..01237c8fcdc6 100644 --- a/drivers/video/fbdev/aty/radeon_base.c +++ b/drivers/video/fbdev/aty/radeon_base.c | |||
@@ -74,7 +74,7 @@ | |||
74 | #include <asm/io.h> | 74 | #include <asm/io.h> |
75 | #include <linux/uaccess.h> | 75 | #include <linux/uaccess.h> |
76 | 76 | ||
77 | #ifdef CONFIG_PPC_OF | 77 | #ifdef CONFIG_PPC |
78 | 78 | ||
79 | #include <asm/pci-bridge.h> | 79 | #include <asm/pci-bridge.h> |
80 | #include "../macmodes.h" | 80 | #include "../macmodes.h" |
@@ -83,7 +83,7 @@ | |||
83 | #include <asm/btext.h> | 83 | #include <asm/btext.h> |
84 | #endif | 84 | #endif |
85 | 85 | ||
86 | #endif /* CONFIG_PPC_OF */ | 86 | #endif /* CONFIG_PPC */ |
87 | 87 | ||
88 | #ifdef CONFIG_MTRR | 88 | #ifdef CONFIG_MTRR |
89 | #include <asm/mtrr.h> | 89 | #include <asm/mtrr.h> |
@@ -418,7 +418,7 @@ static int radeon_find_mem_vbios(struct radeonfb_info *rinfo) | |||
418 | } | 418 | } |
419 | #endif | 419 | #endif |
420 | 420 | ||
421 | #if defined(CONFIG_PPC_OF) || defined(CONFIG_SPARC) | 421 | #if defined(CONFIG_PPC) || defined(CONFIG_SPARC) |
422 | /* | 422 | /* |
423 | * Read XTAL (ref clock), SCLK and MCLK from Open Firmware device | 423 | * Read XTAL (ref clock), SCLK and MCLK from Open Firmware device |
424 | * tree. Hopefully, ATI OF driver is kind enough to fill these | 424 | * tree. Hopefully, ATI OF driver is kind enough to fill these |
@@ -448,7 +448,7 @@ static int radeon_read_xtal_OF(struct radeonfb_info *rinfo) | |||
448 | 448 | ||
449 | return 0; | 449 | return 0; |
450 | } | 450 | } |
451 | #endif /* CONFIG_PPC_OF || CONFIG_SPARC */ | 451 | #endif /* CONFIG_PPC || CONFIG_SPARC */ |
452 | 452 | ||
453 | /* | 453 | /* |
454 | * Read PLL infos from chip registers | 454 | * Read PLL infos from chip registers |
@@ -653,7 +653,7 @@ static void radeon_get_pllinfo(struct radeonfb_info *rinfo) | |||
653 | rinfo->pll.ref_div = INPLL(PPLL_REF_DIV) & PPLL_REF_DIV_MASK; | 653 | rinfo->pll.ref_div = INPLL(PPLL_REF_DIV) & PPLL_REF_DIV_MASK; |
654 | 654 | ||
655 | 655 | ||
656 | #if defined(CONFIG_PPC_OF) || defined(CONFIG_SPARC) | 656 | #if defined(CONFIG_PPC) || defined(CONFIG_SPARC) |
657 | /* | 657 | /* |
658 | * Retrieve PLL infos from Open Firmware first | 658 | * Retrieve PLL infos from Open Firmware first |
659 | */ | 659 | */ |
@@ -661,7 +661,7 @@ static void radeon_get_pllinfo(struct radeonfb_info *rinfo) | |||
661 | printk(KERN_INFO "radeonfb: Retrieved PLL infos from Open Firmware\n"); | 661 | printk(KERN_INFO "radeonfb: Retrieved PLL infos from Open Firmware\n"); |
662 | goto found; | 662 | goto found; |
663 | } | 663 | } |
664 | #endif /* CONFIG_PPC_OF || CONFIG_SPARC */ | 664 | #endif /* CONFIG_PPC || CONFIG_SPARC */ |
665 | 665 | ||
666 | /* | 666 | /* |
667 | * Check out if we have an X86 which gave us some PLL informations | 667 | * Check out if we have an X86 which gave us some PLL informations |
@@ -1910,7 +1910,7 @@ static int radeon_set_fbinfo(struct radeonfb_info *rinfo) | |||
1910 | * I put the card's memory at 0 in card space and AGP at some random high | 1910 | * I put the card's memory at 0 in card space and AGP at some random high |
1911 | * local (0xe0000000 for now) that will be changed by XFree/DRI anyway | 1911 | * local (0xe0000000 for now) that will be changed by XFree/DRI anyway |
1912 | */ | 1912 | */ |
1913 | #ifdef CONFIG_PPC_OF | 1913 | #ifdef CONFIG_PPC |
1914 | #undef SET_MC_FB_FROM_APERTURE | 1914 | #undef SET_MC_FB_FROM_APERTURE |
1915 | static void fixup_memory_mappings(struct radeonfb_info *rinfo) | 1915 | static void fixup_memory_mappings(struct radeonfb_info *rinfo) |
1916 | { | 1916 | { |
@@ -1984,7 +1984,7 @@ static void fixup_memory_mappings(struct radeonfb_info *rinfo) | |||
1984 | ((aper_base + aper_size - 1) & 0xffff0000) | (aper_base >> 16), | 1984 | ((aper_base + aper_size - 1) & 0xffff0000) | (aper_base >> 16), |
1985 | 0xffff0000 | (agp_base >> 16)); | 1985 | 0xffff0000 | (agp_base >> 16)); |
1986 | } | 1986 | } |
1987 | #endif /* CONFIG_PPC_OF */ | 1987 | #endif /* CONFIG_PPC */ |
1988 | 1988 | ||
1989 | 1989 | ||
1990 | static void radeon_identify_vram(struct radeonfb_info *rinfo) | 1990 | static void radeon_identify_vram(struct radeonfb_info *rinfo) |
@@ -2236,7 +2236,7 @@ static int radeonfb_pci_register(struct pci_dev *pdev, | |||
2236 | rinfo->family == CHIP_FAMILY_RS200) | 2236 | rinfo->family == CHIP_FAMILY_RS200) |
2237 | rinfo->errata |= CHIP_ERRATA_PLL_DELAY; | 2237 | rinfo->errata |= CHIP_ERRATA_PLL_DELAY; |
2238 | 2238 | ||
2239 | #if defined(CONFIG_PPC_OF) || defined(CONFIG_SPARC) | 2239 | #if defined(CONFIG_PPC) || defined(CONFIG_SPARC) |
2240 | /* On PPC, we obtain the OF device-node pointer to the firmware | 2240 | /* On PPC, we obtain the OF device-node pointer to the firmware |
2241 | * data for this chip | 2241 | * data for this chip |
2242 | */ | 2242 | */ |
@@ -2245,14 +2245,14 @@ static int radeonfb_pci_register(struct pci_dev *pdev, | |||
2245 | printk(KERN_WARNING "radeonfb (%s): Cannot match card to OF node !\n", | 2245 | printk(KERN_WARNING "radeonfb (%s): Cannot match card to OF node !\n", |
2246 | pci_name(rinfo->pdev)); | 2246 | pci_name(rinfo->pdev)); |
2247 | 2247 | ||
2248 | #endif /* CONFIG_PPC_OF || CONFIG_SPARC */ | 2248 | #endif /* CONFIG_PPC || CONFIG_SPARC */ |
2249 | #ifdef CONFIG_PPC_OF | 2249 | #ifdef CONFIG_PPC |
2250 | /* On PPC, the firmware sets up a memory mapping that tends | 2250 | /* On PPC, the firmware sets up a memory mapping that tends |
2251 | * to cause lockups when enabling the engine. We reconfigure | 2251 | * to cause lockups when enabling the engine. We reconfigure |
2252 | * the card internal memory mappings properly | 2252 | * the card internal memory mappings properly |
2253 | */ | 2253 | */ |
2254 | fixup_memory_mappings(rinfo); | 2254 | fixup_memory_mappings(rinfo); |
2255 | #endif /* CONFIG_PPC_OF */ | 2255 | #endif /* CONFIG_PPC */ |
2256 | 2256 | ||
2257 | /* Get VRAM size and type */ | 2257 | /* Get VRAM size and type */ |
2258 | radeon_identify_vram(rinfo); | 2258 | radeon_identify_vram(rinfo); |
diff --git a/drivers/video/fbdev/aty/radeon_monitor.c b/drivers/video/fbdev/aty/radeon_monitor.c index bc078d50d8f1..f1ce229de78d 100644 --- a/drivers/video/fbdev/aty/radeon_monitor.c +++ b/drivers/video/fbdev/aty/radeon_monitor.c | |||
@@ -55,7 +55,7 @@ static char *radeon_get_mon_name(int type) | |||
55 | } | 55 | } |
56 | 56 | ||
57 | 57 | ||
58 | #if defined(CONFIG_PPC_OF) || defined(CONFIG_SPARC) | 58 | #if defined(CONFIG_PPC) || defined(CONFIG_SPARC) |
59 | /* | 59 | /* |
60 | * Try to find monitor informations & EDID data out of the Open Firmware | 60 | * Try to find monitor informations & EDID data out of the Open Firmware |
61 | * device-tree. This also contains some "hacks" to work around a few machine | 61 | * device-tree. This also contains some "hacks" to work around a few machine |
@@ -160,7 +160,7 @@ static int radeon_probe_OF_head(struct radeonfb_info *rinfo, int head_no, | |||
160 | } | 160 | } |
161 | return MT_NONE; | 161 | return MT_NONE; |
162 | } | 162 | } |
163 | #endif /* CONFIG_PPC_OF || CONFIG_SPARC */ | 163 | #endif /* CONFIG_PPC || CONFIG_SPARC */ |
164 | 164 | ||
165 | 165 | ||
166 | static int radeon_get_panel_info_BIOS(struct radeonfb_info *rinfo) | 166 | static int radeon_get_panel_info_BIOS(struct radeonfb_info *rinfo) |
@@ -499,11 +499,11 @@ void radeon_probe_screens(struct radeonfb_info *rinfo, | |||
499 | * Old single head cards | 499 | * Old single head cards |
500 | */ | 500 | */ |
501 | if (!rinfo->has_CRTC2) { | 501 | if (!rinfo->has_CRTC2) { |
502 | #if defined(CONFIG_PPC_OF) || defined(CONFIG_SPARC) | 502 | #if defined(CONFIG_PPC) || defined(CONFIG_SPARC) |
503 | if (rinfo->mon1_type == MT_NONE) | 503 | if (rinfo->mon1_type == MT_NONE) |
504 | rinfo->mon1_type = radeon_probe_OF_head(rinfo, 0, | 504 | rinfo->mon1_type = radeon_probe_OF_head(rinfo, 0, |
505 | &rinfo->mon1_EDID); | 505 | &rinfo->mon1_EDID); |
506 | #endif /* CONFIG_PPC_OF || CONFIG_SPARC */ | 506 | #endif /* CONFIG_PPC || CONFIG_SPARC */ |
507 | #ifdef CONFIG_FB_RADEON_I2C | 507 | #ifdef CONFIG_FB_RADEON_I2C |
508 | if (rinfo->mon1_type == MT_NONE) | 508 | if (rinfo->mon1_type == MT_NONE) |
509 | rinfo->mon1_type = | 509 | rinfo->mon1_type = |
@@ -548,11 +548,11 @@ void radeon_probe_screens(struct radeonfb_info *rinfo, | |||
548 | /* | 548 | /* |
549 | * Probe primary head (DVI or laptop internal panel) | 549 | * Probe primary head (DVI or laptop internal panel) |
550 | */ | 550 | */ |
551 | #if defined(CONFIG_PPC_OF) || defined(CONFIG_SPARC) | 551 | #if defined(CONFIG_PPC) || defined(CONFIG_SPARC) |
552 | if (rinfo->mon1_type == MT_NONE) | 552 | if (rinfo->mon1_type == MT_NONE) |
553 | rinfo->mon1_type = radeon_probe_OF_head(rinfo, 0, | 553 | rinfo->mon1_type = radeon_probe_OF_head(rinfo, 0, |
554 | &rinfo->mon1_EDID); | 554 | &rinfo->mon1_EDID); |
555 | #endif /* CONFIG_PPC_OF || CONFIG_SPARC */ | 555 | #endif /* CONFIG_PPC || CONFIG_SPARC */ |
556 | #ifdef CONFIG_FB_RADEON_I2C | 556 | #ifdef CONFIG_FB_RADEON_I2C |
557 | if (rinfo->mon1_type == MT_NONE) | 557 | if (rinfo->mon1_type == MT_NONE) |
558 | rinfo->mon1_type = radeon_probe_i2c_connector(rinfo, ddc_dvi, | 558 | rinfo->mon1_type = radeon_probe_i2c_connector(rinfo, ddc_dvi, |
@@ -576,11 +576,11 @@ void radeon_probe_screens(struct radeonfb_info *rinfo, | |||
576 | /* | 576 | /* |
577 | * Probe secondary head (mostly VGA, can be DVI) | 577 | * Probe secondary head (mostly VGA, can be DVI) |
578 | */ | 578 | */ |
579 | #if defined(CONFIG_PPC_OF) || defined(CONFIG_SPARC) | 579 | #if defined(CONFIG_PPC) || defined(CONFIG_SPARC) |
580 | if (rinfo->mon2_type == MT_NONE) | 580 | if (rinfo->mon2_type == MT_NONE) |
581 | rinfo->mon2_type = radeon_probe_OF_head(rinfo, 1, | 581 | rinfo->mon2_type = radeon_probe_OF_head(rinfo, 1, |
582 | &rinfo->mon2_EDID); | 582 | &rinfo->mon2_EDID); |
583 | #endif /* CONFIG_PPC_OF || defined(CONFIG_SPARC) */ | 583 | #endif /* CONFIG_PPC || defined(CONFIG_SPARC) */ |
584 | #ifdef CONFIG_FB_RADEON_I2C | 584 | #ifdef CONFIG_FB_RADEON_I2C |
585 | if (rinfo->mon2_type == MT_NONE) | 585 | if (rinfo->mon2_type == MT_NONE) |
586 | rinfo->mon2_type = radeon_probe_i2c_connector(rinfo, ddc_vga, | 586 | rinfo->mon2_type = radeon_probe_i2c_connector(rinfo, ddc_vga, |
@@ -653,7 +653,7 @@ void radeon_probe_screens(struct radeonfb_info *rinfo, | |||
653 | */ | 653 | */ |
654 | static void radeon_fixup_panel_info(struct radeonfb_info *rinfo) | 654 | static void radeon_fixup_panel_info(struct radeonfb_info *rinfo) |
655 | { | 655 | { |
656 | #ifdef CONFIG_PPC_OF | 656 | #ifdef CONFIG_PPC |
657 | /* | 657 | /* |
658 | * LCD Flat panels should use fixed dividers, we enfore that on | 658 | * LCD Flat panels should use fixed dividers, we enfore that on |
659 | * PPC only for now... | 659 | * PPC only for now... |
@@ -676,7 +676,7 @@ static void radeon_fixup_panel_info(struct radeonfb_info *rinfo) | |||
676 | (rinfo->panel_info.post_divider << 16), | 676 | (rinfo->panel_info.post_divider << 16), |
677 | ppll_div_sel); | 677 | ppll_div_sel); |
678 | } | 678 | } |
679 | #endif /* CONFIG_PPC_OF */ | 679 | #endif /* CONFIG_PPC */ |
680 | } | 680 | } |
681 | 681 | ||
682 | 682 | ||
diff --git a/drivers/video/fbdev/aty/radeon_pm.c b/drivers/video/fbdev/aty/radeon_pm.c index 46a12f1a93c3..1417542738fc 100644 --- a/drivers/video/fbdev/aty/radeon_pm.c +++ b/drivers/video/fbdev/aty/radeon_pm.c | |||
@@ -523,7 +523,7 @@ static void radeon_pm_enable_dynamic_mode(struct radeonfb_info *rinfo) | |||
523 | OUTPLL(pllVCLK_ECP_CNTL, tmp); | 523 | OUTPLL(pllVCLK_ECP_CNTL, tmp); |
524 | 524 | ||
525 | /* X doesn't do that ... hrm, we do on mobility && Macs */ | 525 | /* X doesn't do that ... hrm, we do on mobility && Macs */ |
526 | #ifdef CONFIG_PPC_OF | 526 | #ifdef CONFIG_PPC |
527 | if (rinfo->is_mobility) { | 527 | if (rinfo->is_mobility) { |
528 | tmp = INPLL(pllMCLK_CNTL); | 528 | tmp = INPLL(pllMCLK_CNTL); |
529 | tmp &= ~(MCLK_CNTL__FORCE_MCLKA | | 529 | tmp &= ~(MCLK_CNTL__FORCE_MCLKA | |
@@ -541,7 +541,7 @@ static void radeon_pm_enable_dynamic_mode(struct radeonfb_info *rinfo) | |||
541 | OUTPLL(pllMCLK_MISC, tmp); | 541 | OUTPLL(pllMCLK_MISC, tmp); |
542 | radeon_msleep(15); | 542 | radeon_msleep(15); |
543 | } | 543 | } |
544 | #endif /* CONFIG_PPC_OF */ | 544 | #endif /* CONFIG_PPC */ |
545 | } | 545 | } |
546 | 546 | ||
547 | #ifdef CONFIG_PM | 547 | #ifdef CONFIG_PM |
@@ -1288,7 +1288,7 @@ static void radeon_pm_full_reset_sdram(struct radeonfb_info *rinfo) | |||
1288 | radeon_pm_enable_dll_m10(rinfo); | 1288 | radeon_pm_enable_dll_m10(rinfo); |
1289 | radeon_pm_yclk_mclk_sync_m10(rinfo); | 1289 | radeon_pm_yclk_mclk_sync_m10(rinfo); |
1290 | 1290 | ||
1291 | #ifdef CONFIG_PPC_OF | 1291 | #ifdef CONFIG_PPC |
1292 | if (rinfo->of_node != NULL) { | 1292 | if (rinfo->of_node != NULL) { |
1293 | int size; | 1293 | int size; |
1294 | 1294 | ||
@@ -1298,7 +1298,7 @@ static void radeon_pm_full_reset_sdram(struct radeonfb_info *rinfo) | |||
1298 | else | 1298 | else |
1299 | mrtable = default_mrtable; | 1299 | mrtable = default_mrtable; |
1300 | } | 1300 | } |
1301 | #endif /* CONFIG_PPC_OF */ | 1301 | #endif /* CONFIG_PPC */ |
1302 | 1302 | ||
1303 | /* Program the SDRAM */ | 1303 | /* Program the SDRAM */ |
1304 | sdram_mode_reg = mrtable[0]; | 1304 | sdram_mode_reg = mrtable[0]; |
@@ -1943,7 +1943,7 @@ static void radeon_reinitialize_M10(struct radeonfb_info *rinfo) | |||
1943 | } | 1943 | } |
1944 | #endif | 1944 | #endif |
1945 | 1945 | ||
1946 | #ifdef CONFIG_PPC_OF | 1946 | #ifdef CONFIG_PPC |
1947 | #ifdef CONFIG_PPC_PMAC | 1947 | #ifdef CONFIG_PPC_PMAC |
1948 | static void radeon_pm_m9p_reconfigure_mc(struct radeonfb_info *rinfo) | 1948 | static void radeon_pm_m9p_reconfigure_mc(struct radeonfb_info *rinfo) |
1949 | { | 1949 | { |
@@ -2512,7 +2512,7 @@ static void radeon_reinitialize_QW(struct radeonfb_info *rinfo) | |||
2512 | } | 2512 | } |
2513 | #endif /* 0 */ | 2513 | #endif /* 0 */ |
2514 | 2514 | ||
2515 | #endif /* CONFIG_PPC_OF */ | 2515 | #endif /* CONFIG_PPC */ |
2516 | 2516 | ||
2517 | static void radeonfb_whack_power_state(struct radeonfb_info *rinfo, pci_power_t state) | 2517 | static void radeonfb_whack_power_state(struct radeonfb_info *rinfo, pci_power_t state) |
2518 | { | 2518 | { |
@@ -2793,7 +2793,7 @@ int radeonfb_pci_resume(struct pci_dev *pdev) | |||
2793 | return rc; | 2793 | return rc; |
2794 | } | 2794 | } |
2795 | 2795 | ||
2796 | #ifdef CONFIG_PPC_OF__disabled | 2796 | #ifdef CONFIG_PPC__disabled |
2797 | static void radeonfb_early_resume(void *data) | 2797 | static void radeonfb_early_resume(void *data) |
2798 | { | 2798 | { |
2799 | struct radeonfb_info *rinfo = data; | 2799 | struct radeonfb_info *rinfo = data; |
@@ -2803,7 +2803,7 @@ static void radeonfb_early_resume(void *data) | |||
2803 | radeonfb_pci_resume(rinfo->pdev); | 2803 | radeonfb_pci_resume(rinfo->pdev); |
2804 | rinfo->no_schedule = 0; | 2804 | rinfo->no_schedule = 0; |
2805 | } | 2805 | } |
2806 | #endif /* CONFIG_PPC_OF */ | 2806 | #endif /* CONFIG_PPC */ |
2807 | 2807 | ||
2808 | #endif /* CONFIG_PM */ | 2808 | #endif /* CONFIG_PM */ |
2809 | 2809 | ||
diff --git a/drivers/video/fbdev/aty/radeonfb.h b/drivers/video/fbdev/aty/radeonfb.h index cb846044f57c..039def41c920 100644 --- a/drivers/video/fbdev/aty/radeonfb.h +++ b/drivers/video/fbdev/aty/radeonfb.h | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | #include <asm/io.h> | 21 | #include <asm/io.h> |
22 | 22 | ||
23 | #if defined(CONFIG_PPC_OF) || defined(CONFIG_SPARC) | 23 | #if defined(CONFIG_PPC) || defined(CONFIG_SPARC) |
24 | #include <asm/prom.h> | 24 | #include <asm/prom.h> |
25 | #endif | 25 | #endif |
26 | 26 | ||
@@ -301,7 +301,7 @@ struct radeonfb_info { | |||
301 | unsigned long fb_local_base; | 301 | unsigned long fb_local_base; |
302 | 302 | ||
303 | struct pci_dev *pdev; | 303 | struct pci_dev *pdev; |
304 | #if defined(CONFIG_PPC_OF) || defined(CONFIG_SPARC) | 304 | #if defined(CONFIG_PPC) || defined(CONFIG_SPARC) |
305 | struct device_node *of_node; | 305 | struct device_node *of_node; |
306 | #endif | 306 | #endif |
307 | 307 | ||
diff --git a/drivers/video/fbdev/controlfb.c b/drivers/video/fbdev/controlfb.c index 080fdd2a70f3..8d14b29aafea 100644 --- a/drivers/video/fbdev/controlfb.c +++ b/drivers/video/fbdev/controlfb.c | |||
@@ -315,7 +315,7 @@ static int controlfb_blank(int blank_mode, struct fb_info *info) | |||
315 | container_of(info, struct fb_info_control, info); | 315 | container_of(info, struct fb_info_control, info); |
316 | unsigned ctrl; | 316 | unsigned ctrl; |
317 | 317 | ||
318 | ctrl = ld_le32(CNTRL_REG(p,ctrl)); | 318 | ctrl = le32_to_cpup(CNTRL_REG(p,ctrl)); |
319 | if (blank_mode > 0) | 319 | if (blank_mode > 0) |
320 | switch (blank_mode) { | 320 | switch (blank_mode) { |
321 | case FB_BLANK_VSYNC_SUSPEND: | 321 | case FB_BLANK_VSYNC_SUSPEND: |
diff --git a/drivers/video/fbdev/core/fbmon.c b/drivers/video/fbdev/core/fbmon.c index 868facdec638..01ef1b953390 100644 --- a/drivers/video/fbdev/core/fbmon.c +++ b/drivers/video/fbdev/core/fbmon.c | |||
@@ -33,10 +33,6 @@ | |||
33 | #include <video/edid.h> | 33 | #include <video/edid.h> |
34 | #include <video/of_videomode.h> | 34 | #include <video/of_videomode.h> |
35 | #include <video/videomode.h> | 35 | #include <video/videomode.h> |
36 | #ifdef CONFIG_PPC_OF | ||
37 | #include <asm/prom.h> | ||
38 | #include <asm/pci-bridge.h> | ||
39 | #endif | ||
40 | #include "../edid.h" | 36 | #include "../edid.h" |
41 | 37 | ||
42 | /* | 38 | /* |
diff --git a/drivers/video/fbdev/imsttfb.c b/drivers/video/fbdev/imsttfb.c index aae10ce74f14..9b167f7ef6c6 100644 --- a/drivers/video/fbdev/imsttfb.c +++ b/drivers/video/fbdev/imsttfb.c | |||
@@ -1470,15 +1470,13 @@ static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1470 | unsigned long addr, size; | 1470 | unsigned long addr, size; |
1471 | struct imstt_par *par; | 1471 | struct imstt_par *par; |
1472 | struct fb_info *info; | 1472 | struct fb_info *info; |
1473 | #ifdef CONFIG_PPC_OF | ||
1474 | struct device_node *dp; | 1473 | struct device_node *dp; |
1475 | 1474 | ||
1476 | dp = pci_device_to_OF_node(pdev); | 1475 | dp = pci_device_to_OF_node(pdev); |
1477 | if(dp) | 1476 | if(dp) |
1478 | printk(KERN_INFO "%s: OF name %s\n",__func__, dp->name); | 1477 | printk(KERN_INFO "%s: OF name %s\n",__func__, dp->name); |
1479 | else | 1478 | else if (IS_ENABLED(CONFIG_OF)) |
1480 | printk(KERN_ERR "imsttfb: no OF node for pci device\n"); | 1479 | printk(KERN_ERR "imsttfb: no OF node for pci device\n"); |
1481 | #endif /* CONFIG_PPC_OF */ | ||
1482 | 1480 | ||
1483 | info = framebuffer_alloc(sizeof(struct imstt_par), &pdev->dev); | 1481 | info = framebuffer_alloc(sizeof(struct imstt_par), &pdev->dev); |
1484 | 1482 | ||
@@ -1501,11 +1499,9 @@ static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1501 | switch (pdev->device) { | 1499 | switch (pdev->device) { |
1502 | case PCI_DEVICE_ID_IMS_TT128: /* IMS,tt128mbA */ | 1500 | case PCI_DEVICE_ID_IMS_TT128: /* IMS,tt128mbA */ |
1503 | par->ramdac = IBM; | 1501 | par->ramdac = IBM; |
1504 | #ifdef CONFIG_PPC_OF | ||
1505 | if (dp && ((strcmp(dp->name, "IMS,tt128mb8") == 0) || | 1502 | if (dp && ((strcmp(dp->name, "IMS,tt128mb8") == 0) || |
1506 | (strcmp(dp->name, "IMS,tt128mb8A") == 0))) | 1503 | (strcmp(dp->name, "IMS,tt128mb8A") == 0))) |
1507 | par->ramdac = TVP; | 1504 | par->ramdac = TVP; |
1508 | #endif /* CONFIG_PPC_OF */ | ||
1509 | break; | 1505 | break; |
1510 | case PCI_DEVICE_ID_IMS_TT3D: /* IMS,tt3d */ | 1506 | case PCI_DEVICE_ID_IMS_TT3D: /* IMS,tt3d */ |
1511 | par->ramdac = TVP; | 1507 | par->ramdac = TVP; |
diff --git a/drivers/video/fbdev/nvidia/Makefile b/drivers/video/fbdev/nvidia/Makefile index ca47432113e0..917d3eb05feb 100644 --- a/drivers/video/fbdev/nvidia/Makefile +++ b/drivers/video/fbdev/nvidia/Makefile | |||
@@ -5,9 +5,8 @@ | |||
5 | obj-$(CONFIG_FB_NVIDIA) += nvidiafb.o | 5 | obj-$(CONFIG_FB_NVIDIA) += nvidiafb.o |
6 | 6 | ||
7 | nvidiafb-y := nvidia.o nv_hw.o nv_setup.o \ | 7 | nvidiafb-y := nvidia.o nv_hw.o nv_setup.o \ |
8 | nv_accel.o | 8 | nv_accel.o nv_of.o |
9 | nvidiafb-$(CONFIG_FB_NVIDIA_I2C) += nv_i2c.o | 9 | nvidiafb-$(CONFIG_FB_NVIDIA_I2C) += nv_i2c.o |
10 | nvidiafb-$(CONFIG_FB_NVIDIA_BACKLIGHT) += nv_backlight.o | 10 | nvidiafb-$(CONFIG_FB_NVIDIA_BACKLIGHT) += nv_backlight.o |
11 | nvidiafb-$(CONFIG_PPC_OF) += nv_of.o | ||
12 | 11 | ||
13 | nvidiafb-objs := $(nvidiafb-y) | 12 | nvidiafb-objs := $(nvidiafb-y) |
diff --git a/drivers/video/fbdev/nvidia/nv_of.c b/drivers/video/fbdev/nvidia/nv_of.c index 3bc13df4b120..5f3e5179c25a 100644 --- a/drivers/video/fbdev/nvidia/nv_of.c +++ b/drivers/video/fbdev/nvidia/nv_of.c | |||
@@ -19,9 +19,6 @@ | |||
19 | 19 | ||
20 | #include <asm/io.h> | 20 | #include <asm/io.h> |
21 | 21 | ||
22 | #include <asm/prom.h> | ||
23 | #include <asm/pci-bridge.h> | ||
24 | |||
25 | #include "nv_type.h" | 22 | #include "nv_type.h" |
26 | #include "nv_local.h" | 23 | #include "nv_local.h" |
27 | #include "nv_proto.h" | 24 | #include "nv_proto.h" |
diff --git a/drivers/video/fbdev/nvidia/nv_proto.h b/drivers/video/fbdev/nvidia/nv_proto.h index ff5c410355ea..878a5ce02299 100644 --- a/drivers/video/fbdev/nvidia/nv_proto.h +++ b/drivers/video/fbdev/nvidia/nv_proto.h | |||
@@ -42,16 +42,8 @@ int nvidia_probe_i2c_connector(struct fb_info *info, int conn, | |||
42 | #define nvidia_probe_i2c_connector(p, c, edid) (-1) | 42 | #define nvidia_probe_i2c_connector(p, c, edid) (-1) |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | #ifdef CONFIG_PPC_OF | ||
46 | int nvidia_probe_of_connector(struct fb_info *info, int conn, | 45 | int nvidia_probe_of_connector(struct fb_info *info, int conn, |
47 | u8 ** out_edid); | 46 | u8 ** out_edid); |
48 | #else | ||
49 | static inline int nvidia_probe_of_connector(struct fb_info *info, int conn, | ||
50 | u8 ** out_edid) | ||
51 | { | ||
52 | return -1; | ||
53 | } | ||
54 | #endif | ||
55 | 47 | ||
56 | /* in nv_accel.c */ | 48 | /* in nv_accel.c */ |
57 | extern void NVResetGraphics(struct fb_info *info); | 49 | extern void NVResetGraphics(struct fb_info *info); |
diff --git a/drivers/video/fbdev/nvidia/nvidia.c b/drivers/video/fbdev/nvidia/nvidia.c index def041204676..4273c6ee8cf6 100644 --- a/drivers/video/fbdev/nvidia/nvidia.c +++ b/drivers/video/fbdev/nvidia/nvidia.c | |||
@@ -24,10 +24,6 @@ | |||
24 | #ifdef CONFIG_MTRR | 24 | #ifdef CONFIG_MTRR |
25 | #include <asm/mtrr.h> | 25 | #include <asm/mtrr.h> |
26 | #endif | 26 | #endif |
27 | #ifdef CONFIG_PPC_OF | ||
28 | #include <asm/prom.h> | ||
29 | #include <asm/pci-bridge.h> | ||
30 | #endif | ||
31 | #ifdef CONFIG_BOOTX_TEXT | 27 | #ifdef CONFIG_BOOTX_TEXT |
32 | #include <asm/btext.h> | 28 | #include <asm/btext.h> |
33 | #endif | 29 | #endif |
diff --git a/drivers/video/fbdev/platinumfb.c b/drivers/video/fbdev/platinumfb.c index 518d1fd38a81..377d3399a3ad 100644 --- a/drivers/video/fbdev/platinumfb.c +++ b/drivers/video/fbdev/platinumfb.c | |||
@@ -168,7 +168,7 @@ static int platinumfb_blank(int blank, struct fb_info *fb) | |||
168 | struct fb_info_platinum *info = (struct fb_info_platinum *) fb; | 168 | struct fb_info_platinum *info = (struct fb_info_platinum *) fb; |
169 | int ctrl; | 169 | int ctrl; |
170 | 170 | ||
171 | ctrl = ld_le32(&info->platinum_regs->ctrl.r) | 0x33; | 171 | ctrl = le32_to_cpup(&info->platinum_regs->ctrl.r) | 0x33; |
172 | if (blank) | 172 | if (blank) |
173 | --blank_mode; | 173 | --blank_mode; |
174 | if (blank & VESA_VSYNC_SUSPEND) | 174 | if (blank & VESA_VSYNC_SUSPEND) |
diff --git a/drivers/video/fbdev/riva/fbdev.c b/drivers/video/fbdev/riva/fbdev.c index be73727c7227..294a80908c8c 100644 --- a/drivers/video/fbdev/riva/fbdev.c +++ b/drivers/video/fbdev/riva/fbdev.c | |||
@@ -44,10 +44,6 @@ | |||
44 | #ifdef CONFIG_MTRR | 44 | #ifdef CONFIG_MTRR |
45 | #include <asm/mtrr.h> | 45 | #include <asm/mtrr.h> |
46 | #endif | 46 | #endif |
47 | #ifdef CONFIG_PPC_OF | ||
48 | #include <asm/prom.h> | ||
49 | #include <asm/pci-bridge.h> | ||
50 | #endif | ||
51 | #ifdef CONFIG_PMAC_BACKLIGHT | 47 | #ifdef CONFIG_PMAC_BACKLIGHT |
52 | #include <asm/machdep.h> | 48 | #include <asm/machdep.h> |
53 | #include <asm/backlight.h> | 49 | #include <asm/backlight.h> |
@@ -1735,7 +1731,6 @@ static int riva_set_fbinfo(struct fb_info *info) | |||
1735 | return (rivafb_check_var(&info->var, info)); | 1731 | return (rivafb_check_var(&info->var, info)); |
1736 | } | 1732 | } |
1737 | 1733 | ||
1738 | #ifdef CONFIG_PPC_OF | ||
1739 | static int riva_get_EDID_OF(struct fb_info *info, struct pci_dev *pd) | 1734 | static int riva_get_EDID_OF(struct fb_info *info, struct pci_dev *pd) |
1740 | { | 1735 | { |
1741 | struct riva_par *par = info->par; | 1736 | struct riva_par *par = info->par; |
@@ -1766,9 +1761,8 @@ static int riva_get_EDID_OF(struct fb_info *info, struct pci_dev *pd) | |||
1766 | NVTRACE_LEAVE(); | 1761 | NVTRACE_LEAVE(); |
1767 | return 0; | 1762 | return 0; |
1768 | } | 1763 | } |
1769 | #endif /* CONFIG_PPC_OF */ | ||
1770 | 1764 | ||
1771 | #if defined(CONFIG_FB_RIVA_I2C) && !defined(CONFIG_PPC_OF) | 1765 | #if defined(CONFIG_FB_RIVA_I2C) |
1772 | static int riva_get_EDID_i2c(struct fb_info *info) | 1766 | static int riva_get_EDID_i2c(struct fb_info *info) |
1773 | { | 1767 | { |
1774 | struct riva_par *par = info->par; | 1768 | struct riva_par *par = info->par; |
@@ -1828,10 +1822,13 @@ static void riva_update_default_var(struct fb_var_screeninfo *var, | |||
1828 | static void riva_get_EDID(struct fb_info *info, struct pci_dev *pdev) | 1822 | static void riva_get_EDID(struct fb_info *info, struct pci_dev *pdev) |
1829 | { | 1823 | { |
1830 | NVTRACE_ENTER(); | 1824 | NVTRACE_ENTER(); |
1831 | #ifdef CONFIG_PPC_OF | 1825 | if (riva_get_EDID_OF(info, pdev)) { |
1832 | if (!riva_get_EDID_OF(info, pdev)) | 1826 | NVTRACE_LEAVE(); |
1827 | return; | ||
1828 | } | ||
1829 | if (IS_ENABLED(CONFIG_OF)) | ||
1833 | printk(PFX "could not retrieve EDID from OF\n"); | 1830 | printk(PFX "could not retrieve EDID from OF\n"); |
1834 | #elif defined(CONFIG_FB_RIVA_I2C) | 1831 | #if defined(CONFIG_FB_RIVA_I2C) |
1835 | if (!riva_get_EDID_i2c(info)) | 1832 | if (!riva_get_EDID_i2c(info)) |
1836 | printk(PFX "could not retrieve EDID from DDC/I2C\n"); | 1833 | printk(PFX "could not retrieve EDID from DDC/I2C\n"); |
1837 | #endif | 1834 | #endif |