From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- drivers/media/sprd_rotation/Kconfig | 5 + drivers/media/sprd_rotation/Makefile | 7 + drivers/media/sprd_rotation/img_rot.c | 390 ++++++++++++++++++++++++++++++++++ drivers/media/sprd_rotation/img_rot.h | 17 ++ drivers/media/sprd_rotation/rot_drv.c | 339 +++++++++++++++++++++++++++++ drivers/media/sprd_rotation/rot_drv.h | 62 ++++++ drivers/media/sprd_rotation/rot_reg.h | 71 +++++++ 7 files changed, 891 insertions(+) create mode 100644 drivers/media/sprd_rotation/Kconfig create mode 100644 drivers/media/sprd_rotation/Makefile create mode 100644 drivers/media/sprd_rotation/img_rot.c create mode 100644 drivers/media/sprd_rotation/img_rot.h create mode 100644 drivers/media/sprd_rotation/rot_drv.c create mode 100644 drivers/media/sprd_rotation/rot_drv.h create mode 100644 drivers/media/sprd_rotation/rot_reg.h (limited to 'drivers/media/sprd_rotation') diff --git a/drivers/media/sprd_rotation/Kconfig b/drivers/media/sprd_rotation/Kconfig new file mode 100644 index 00000000..1d7bb99f --- /dev/null +++ b/drivers/media/sprd_rotation/Kconfig @@ -0,0 +1,5 @@ +config SPRD_ROT + depends on ARCH_SCX35 + bool "Spreadtrum Rotation Driver" + help + Say Y to support spreadtrum rotation device driver diff --git a/drivers/media/sprd_rotation/Makefile b/drivers/media/sprd_rotation/Makefile new file mode 100644 index 00000000..f47c67ff --- /dev/null +++ b/drivers/media/sprd_rotation/Makefile @@ -0,0 +1,7 @@ +include drivers/media/sprd_dcam/common/Makefile.inc + +ifeq ($(CONFIG_ARCH_SCX35),y) +sprd_rotation-objs := rot_drv.o img_rot.o +obj-y += sprd_rotation.o +endif + diff --git a/drivers/media/sprd_rotation/img_rot.c b/drivers/media/sprd_rotation/img_rot.c new file mode 100644 index 00000000..ac91f346 --- /dev/null +++ b/drivers/media/sprd_rotation/img_rot.c @@ -0,0 +1,390 @@ +/* + * Copyright (C) 2012 Spreadtrum Communications Inc. + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * 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. + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include