mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
ARM: SoC cleanups for v4.3
A large cleanup branch this release, with a healthy 10k negative line delta.
Most of this is removal of legacy (non-DT) support of shmobile
platforms. There is also removal of two non-DT platforms on OMAP,
and the plat-samsung directory is cleaned out by moving most of the
previously shared-location-but-not-actually-shared files from there to
the appropriate mach directories instead.
There are other sets of changes in here as well:
- Rob Herring removed use of set_irq_flags under all platforms and
moved to genirq alternatives
- A series of timer API conversions to set-state interface
- ep93xx, nomadik and ux500 cleanups from Linus Walleij
- __init annotation fixes from Nicolas Pitre
+ a bunch of other changes that all add up to a nice set of cleanups
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAABAgAGBQJV16zRAAoJEIwa5zzehBx30OYQAIM2TaHWxDzcK0jOfrPEOyU0
jhnT3B2/FbIpYbt3UwcDOqJacHzA/syU4UjplCcWWhKYtTucXQIjOxi0BgRq5V3X
EFrgEbQMLXshhMGquBd4Nl6XhpRrlZcnnY4iFPGf7pR5jQfwQhZCiHEOXCLe4qlz
m9GorKjEmiSk2ID/PFpyOUx20XiiqkU2MOCsNqNiGwFfmQfpVo0vXtKgxlL6d6q+
9mrWFFTqgiOBMAU/X1j18U9jpFT6NOe8JcXp3F3tm4Cq5nJ2pTPZcaYWOORD0bGc
7Os1HRTN9SMNsb8sSvQa1N/Fy2AAFuvGdg8q4oLzgtXJogInRmxE4oGLbffq0As/
q81mEuWkdHjGPs5oyPNQdP2grYhflNP+M1+fA6QaUG/mDl5RFFcld9nfhCiBeIZW
oHAHZhz7//BImpFsmNiXOew9fmQaHxQ6Jy0K4YvhqaxwQ0N54ZadUPH47wmmxW5E
X5IY5Oo7xg3e4EU4/t1nFDTxMG936ZxLVtuq79dRHrl+AT6KVbzdUI4LLyrvEULh
ETbWIZUAHvE9i2N8GbsfDzc9YlpG/c5SpN8T5dg2R0BQpgE192iG6s5XoGyu80MG
MbtbEBml0y3tr36Bd9tCpsSrBjzZLUk5WRo6Rd/zWKlRkslV74iacKLvC7C5oa7n
GYL4xUSPE1RhJxnXezp0
=acy4
-----END PGP SIGNATURE-----
Merge tag 'armsoc-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC cleanups from Olof Johansson:
"A large cleanup branch this release, with a healthy 10k negative line
delta.
Most of this is removal of legacy (non-DT) support of shmobile
platforms. There is also removal of two non-DT platforms on OMAP, and
the plat-samsung directory is cleaned out by moving most of the
previously shared-location-but-not-actually-shared files from there to
the appropriate mach directories instead.
There are other sets of changes in here as well:
- Rob Herring removed use of set_irq_flags under all platforms and
moved to genirq alternatives
- a series of timer API conversions to set-state interface
- ep93xx, nomadik and ux500 cleanups from Linus Walleij
- __init annotation fixes from Nicolas Pitre
+ a bunch of other changes that all add up to a nice set of cleanups"
* tag 'armsoc-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (108 commits)
ARM/fb: ep93xx: switch framebuffer to use modedb only
ARM: gemini: Setup timer3 as free running timer
ARM: gemini: Use timer1 for clockevent
ARM: gemini: Add missing register definitions for gemini timer
ARM: ep93xx/timer: Migrate to new 'set-state' interface
ARM: nomadik: push accelerometer down to boards
ARM: nomadik: move l2x0 setup to device tree
ARM: nomadik: selectively enable UART0 on boards
ARM: nomadik: move hog code to use DT hogs
ARM: shmobile: Fix mismerges
ARM: ux500: simplify secondary CPU boot
ARM: SAMSUNG: remove keypad-core header in plat-samsung
ARM: SAMSUNG: local watchdog-reset header in mach-s3c64xx
ARM: SAMSUNG: local onenand-core header in mach-s3c64xx
ARM: SAMSUNG: local irq-uart header in mach-s3c64xx
ARM: SAMSUNG: local backlight header in mach-s3c64xx
ARM: SAMSUNG: local ata-core header in mach-s3c64xx
ARM: SAMSUNG: local regs-usb-hsotg-phy header in mach-s3c64xx
ARM: SAMSUNG: local spi-core header in mach-s3c24xx
ARM: SAMSUNG: local nand-core header in mach-s3c24xx
...
This commit is contained in:
commit
c5fc249862
196 changed files with 1281 additions and 10483 deletions
|
|
@ -419,36 +419,15 @@ static struct fb_ops ep93xxfb_ops = {
|
|||
.fb_mmap = ep93xxfb_mmap,
|
||||
};
|
||||
|
||||
static int ep93xxfb_calc_fbsize(struct ep93xxfb_mach_info *mach_info)
|
||||
{
|
||||
int i, fb_size = 0;
|
||||
|
||||
if (mach_info->num_modes == EP93XXFB_USE_MODEDB) {
|
||||
fb_size = EP93XXFB_MAX_XRES * EP93XXFB_MAX_YRES *
|
||||
mach_info->bpp / 8;
|
||||
} else {
|
||||
for (i = 0; i < mach_info->num_modes; i++) {
|
||||
const struct fb_videomode *mode;
|
||||
int size;
|
||||
|
||||
mode = &mach_info->modes[i];
|
||||
size = mode->xres * mode->yres * mach_info->bpp / 8;
|
||||
if (size > fb_size)
|
||||
fb_size = size;
|
||||
}
|
||||
}
|
||||
|
||||
return fb_size;
|
||||
}
|
||||
|
||||
static int ep93xxfb_alloc_videomem(struct fb_info *info)
|
||||
{
|
||||
struct ep93xx_fbi *fbi = info->par;
|
||||
char __iomem *virt_addr;
|
||||
dma_addr_t phys_addr;
|
||||
unsigned int fb_size;
|
||||
|
||||
fb_size = ep93xxfb_calc_fbsize(fbi->mach_info);
|
||||
/* Maximum 16bpp -> used memory is maximum x*y*2 bytes */
|
||||
fb_size = EP93XXFB_MAX_XRES * EP93XXFB_MAX_YRES * 2;
|
||||
|
||||
virt_addr = dma_alloc_writecombine(info->dev, fb_size,
|
||||
&phys_addr, GFP_KERNEL);
|
||||
if (!virt_addr)
|
||||
|
|
@ -550,8 +529,7 @@ static int ep93xxfb_probe(struct platform_device *pdev)
|
|||
|
||||
fb_get_options("ep93xx-fb", &video_mode);
|
||||
err = fb_find_mode(&info->var, info, video_mode,
|
||||
fbi->mach_info->modes, fbi->mach_info->num_modes,
|
||||
fbi->mach_info->default_mode, fbi->mach_info->bpp);
|
||||
NULL, 0, NULL, 16);
|
||||
if (err == 0) {
|
||||
dev_err(info->dev, "No suitable video mode found\n");
|
||||
err = -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue