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/misc/sprd_vsp/Kconfig | 5 + drivers/misc/sprd_vsp/Makefile | 6 + drivers/misc/sprd_vsp/sprd_vsp_sc8825.c | 622 ++++++++++++++++++++++ drivers/misc/sprd_vsp/sprd_vsp_sc8830.c | 891 ++++++++++++++++++++++++++++++++ 4 files changed, 1524 insertions(+) create mode 100644 drivers/misc/sprd_vsp/Kconfig create mode 100644 drivers/misc/sprd_vsp/Makefile create mode 100644 drivers/misc/sprd_vsp/sprd_vsp_sc8825.c create mode 100644 drivers/misc/sprd_vsp/sprd_vsp_sc8830.c (limited to 'drivers/misc/sprd_vsp') diff --git a/drivers/misc/sprd_vsp/Kconfig b/drivers/misc/sprd_vsp/Kconfig new file mode 100644 index 00000000..a3f9a88b --- /dev/null +++ b/drivers/misc/sprd_vsp/Kconfig @@ -0,0 +1,5 @@ +# to add sprd vsp configs in the future +config SPRD_VSP + tristate "SPRD vsp driver" + depends on ARCH_SC8810 || ARCH_SC8825 || ARCH_SCX35 + default y diff --git a/drivers/misc/sprd_vsp/Makefile b/drivers/misc/sprd_vsp/Makefile new file mode 100644 index 00000000..0d3ef623 --- /dev/null +++ b/drivers/misc/sprd_vsp/Makefile @@ -0,0 +1,6 @@ + +ifeq ($(CONFIG_ARCH_SCX35), y) +obj-$(CONFIG_SPRD_VSP) += sprd_vsp_sc8830.o +else +obj-$(CONFIG_SPRD_VSP) += sprd_vsp_sc8825.o +endif diff --git a/drivers/misc/sprd_vsp/sprd_vsp_sc8825.c b/drivers/misc/sprd_vsp/sprd_vsp_sc8825.c new file mode 100644 index 00000000..c6aa9896 --- /dev/null +++ b/drivers/misc/sprd_vsp/sprd_vsp_sc8825.c @@ -0,0 +1,622 @@ +/* + * 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 + +#include