diff --git a/drivers/gpu/imx/Kconfig b/drivers/gpu/imx/Kconfig index 57277de697dd..bd9eab82d516 100644 --- a/drivers/gpu/imx/Kconfig +++ b/drivers/gpu/imx/Kconfig @@ -1 +1,6 @@ +config IMX8_PC + tristate + default y if IMX_DPU_CORE=y + default m if IMX_DPU_CORE=m + source "drivers/gpu/imx/ipu-v3/Kconfig" diff --git a/drivers/gpu/imx/Makefile b/drivers/gpu/imx/Makefile index c3cb11425cf5..fb1057c30655 100644 --- a/drivers/gpu/imx/Makefile +++ b/drivers/gpu/imx/Makefile @@ -1 +1,3 @@ +obj-$(CONFIG_IMX8_PC) += imx8_pc.o + obj-$(CONFIG_IMX_IPUV3_CORE) += ipu-v3/ diff --git a/drivers/gpu/imx/imx8_pc.c b/drivers/gpu/imx/imx8_pc.c new file mode 100644 index 000000000000..f5386b9f6193 --- /dev/null +++ b/drivers/gpu/imx/imx8_pc.c @@ -0,0 +1,218 @@ +/* + * Copyright 2018,2019 NXP + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * 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