Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72626b1f authored by Stephen Boyd's avatar Stephen Boyd
Browse files

char: Add MSM rotator driver

parent a8cbafd5
Loading
Loading
Loading
Loading
+28 −0
Original line number Original line Diff line number Diff line
/* Copyright (c) 2009, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */

#ifndef __MSM_ROTATOR_IMEM_H__

enum {
	ROTATOR_REQUEST,
	JPEG_REQUEST
};

/* Allocates imem for the requested owner.
   Aquires a mutex, so DO NOT call from isr context */
int msm_rotator_imem_allocate(int requestor);
/* Frees imem if currently owned by requestor.
   Unlocks a mutex, so DO NOT call from isr context */
void msm_rotator_imem_free(int requestor);

#endif
+18 −0
Original line number Original line Diff line number Diff line
@@ -622,6 +622,24 @@ config TILE_SROM
	  device appear much like a simple EEPROM, and knows
	  device appear much like a simple EEPROM, and knows
	  how to partition a single ROM for multiple purposes.
	  how to partition a single ROM for multiple purposes.


config MSM_ROTATOR
        tristate "MSM Offline Image Rotator Driver"
        depends on (ARCH_MSM7X30 || ARCH_MSM8X60 || ARCH_MSM8960) && ANDROID_PMEM
        default y
        help
          This driver provides support for the image rotator HW block in the
          MSM 7x30 SoC.

config MSM_ROTATOR_USE_IMEM
        bool "Enable rotator driver to use iMem"
        depends on ARCH_MSM7X30 && MSM_ROTATOR
        default y
        help
          This option enables the msm_rotator driver to use the move efficient
          iMem.  Some MSM platforms may not have iMem available for the rotator
          block.  Or some systems may want the iMem to be dedicated to a
          different function.

config MMC_GENERIC_CSDIO
config MMC_GENERIC_CSDIO
	tristate "Generic sdio driver"
	tristate "Generic sdio driver"
	default n
	default n
+1 −0
Original line number Original line Diff line number Diff line
@@ -63,4 +63,5 @@ obj-$(CONFIG_JS_RTC) += js-rtc.o
js-rtc-y = rtc.o
js-rtc-y = rtc.o


obj-$(CONFIG_TILE_SROM)		+= tile-srom.o
obj-$(CONFIG_TILE_SROM)		+= tile-srom.o
obj-$(CONFIG_MSM_ROTATOR)	+= msm_rotator.o
obj-$(CONFIG_MMC_GENERIC_CSDIO)	+= csdio.o
obj-$(CONFIG_MMC_GENERIC_CSDIO)	+= csdio.o
+1802 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Original line Diff line number Diff line
@@ -253,6 +253,7 @@ header-y += mroute6.h
header-y += msdos_fs.h
header-y += msdos_fs.h
header-y += msg.h
header-y += msg.h
header-y += msm_mdp.h
header-y += msm_mdp.h
header-y += msm_rotator.h
header-y += mtio.h
header-y += mtio.h
header-y += n_r3964.h
header-y += n_r3964.h
header-y += nbd.h
header-y += nbd.h
Loading