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_dcam/common/Makefile.inc | 15 + drivers/media/sprd_dcam/common/dcam_img.c | 3779 ++++++++++++++++++++ drivers/media/sprd_dcam/common/flash_test.c | 115 + drivers/media/sprd_dcam/common/flash_test.h | 38 + drivers/media/sprd_dcam/common/gen_scale_coef.c | 699 ++++ drivers/media/sprd_dcam/common/gen_scale_coef.h | 34 + drivers/media/sprd_dcam/common/parse_hwinfo.c | 353 ++ drivers/media/sprd_dcam/common/parse_hwinfo.h | 72 + .../media/sprd_dcam/common/parse_hwinfo_tshark2.h | 47 + drivers/media/sprd_dcam/common/sin_cos.c | 270 ++ drivers/media/sprd_dcam/common/sin_cos.h | 74 + 11 files changed, 5496 insertions(+) create mode 100644 drivers/media/sprd_dcam/common/Makefile.inc create mode 100755 drivers/media/sprd_dcam/common/dcam_img.c create mode 100644 drivers/media/sprd_dcam/common/flash_test.c create mode 100644 drivers/media/sprd_dcam/common/flash_test.h create mode 100644 drivers/media/sprd_dcam/common/gen_scale_coef.c create mode 100644 drivers/media/sprd_dcam/common/gen_scale_coef.h create mode 100755 drivers/media/sprd_dcam/common/parse_hwinfo.c create mode 100755 drivers/media/sprd_dcam/common/parse_hwinfo.h create mode 100644 drivers/media/sprd_dcam/common/parse_hwinfo_tshark2.h create mode 100644 drivers/media/sprd_dcam/common/sin_cos.c create mode 100644 drivers/media/sprd_dcam/common/sin_cos.h (limited to 'drivers/media/sprd_dcam/common') diff --git a/drivers/media/sprd_dcam/common/Makefile.inc b/drivers/media/sprd_dcam/common/Makefile.inc new file mode 100644 index 00000000..16cf7800 --- /dev/null +++ b/drivers/media/sprd_dcam/common/Makefile.inc @@ -0,0 +1,15 @@ +# SC88XX Platform Support + +ifeq ($(CONFIG_ARCH_SCX30G2),y) +ccflags-y += -Idrivers/media/sprd_dcam/tshark +DEFS = -DVERSION3D=1 +else ifeq ($(CONFIG_ARCH_SCX30G),y) +ccflags-y += -Idrivers/media/sprd_dcam/tshark +DEFS = -DVERSION3T=1 +else ifeq ($(CONFIG_ARCH_SCX35L),y) +ccflags-y += -Idrivers/media/sprd_dcam/sharkl +DEFS = -DVERSION3L=1 +endif + +ccflags-y += $(DEFS) +ccflags-y += -Idrivers/media/sprd_dcam/common diff --git a/drivers/media/sprd_dcam/common/dcam_img.c b/drivers/media/sprd_dcam/common/dcam_img.c new file mode 100755 index 00000000..5ca10bd1 --- /dev/null +++ b/drivers/media/sprd_dcam/common/dcam_img.c @@ -0,0 +1,3779 @@ +/* + * 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 +#include +#include +#include +#ifndef CONFIG_64BIT +#include +#include +#include +#endif +#include +#include +#include +#include +#include + +#include +#include "dcam_drv.h" + +#include + + +#include <../flash/flash.h> +#include