Samsung S5P platform modification required for G2D driver
Subsystems (3)
cover Samsung S5P platform modification required for G2D driver
Hi,
This series of patches contains necessary platform modification required by the G2D driver. G2D is a 2D-graphics acceleration engine present in the S5PC110 and Exynos4 Samsung SoCs.
Best wishes,
Kamil Debski
Kamil Debski (3):
s5p-g2d: add G2D to plat-s5p and mach-exynos4
s5p-g2d: add G2D to mach-nuri
s5p-g2d: add G2D to mach-universal
arch/arm/mach-exynos4/Kconfig | 2 + arch/arm/mach-exynos4/include/mach/map.h | 3 ++ arch/arm/mach-exynos4/mach-nuri.c | 1 + arch/arm/mach-exynos4/mach-universal_c210.c | 1 + arch/arm/plat-s5p/Kconfig | 5 +++ arch/arm/plat-s5p/Makefile | 1 + arch/arm/plat-s5p/dev-g2d.c | 43 +++++++++++++++++++++++++++ arch/arm/plat-samsung/include/plat/devs.h | 2 +- 8 files changed, 57 insertions(+), 1 deletions(-) create mode 100644 arch/arm/plat-s5p/dev-g2d.c
PATCH 1/3 s5p-g2d: add G2D to plat-s5p and mach-exynos4
G2D is a 2D graphics accelerator engine present in the s5p family of Samsung SoCs. It is capable of bitblt and raster operations on images having dimensions of up to 8000x8000.
--- arch/arm/mach-exynos4/include/mach/map.h | 3 ++ arch/arm/plat-s5p/Kconfig | 5 +++ arch/arm/plat-s5p/Makefile | 1 + arch/arm/plat-s5p/dev-g2d.c | 43 +++++++++++++++++++++++++++++ arch/arm/plat-samsung/include/plat/devs.h | 2 +- 5 files changed, 53 insertions(+), 1 deletions(-) create mode 100644 arch/arm/plat-s5p/dev-g2d.c
arch/arm/mach-exynos4/include/mach/map.h +3 -0
@@ -31,6 +31,8 @@#define EXYNOS4_PA_FIMC2 0x11820000#define EXYNOS4_PA_FIMC3 0x11830000 +#define EXYNOS4_PA_G2D 0x12800000 +#define EXYNOS4_PA_HSOTG 0x12480000#define EXYNOS4_PA_USB_HSPHY 0x125B0000
@@ -160,6 +162,7 @@#define S5P_PA_FIMC1 EXYNOS4_PA_FIMC1#define S5P_PA_FIMC2 EXYNOS4_PA_FIMC2#define S5P_PA_FIMC3 EXYNOS4_PA_FIMC3 +#define S5P_PA_G2D EXYNOS4_PA_G2D#define S5P_PA_MIPI_CSIS0 EXYNOS4_PA_MIPI_CSIS0#define S5P_PA_MIPI_CSIS1 EXYNOS4_PA_MIPI_CSIS1#define S5P_PA_FIMD0 EXYNOS4_PA_FIMD0
arch/arm/plat-s5p/Kconfig +5 -0
@@ -76,6 +76,11 @@ config S5P_DEV_FIMC3 help Compile in platform device definitions for FIMC controller 3 +config S5P_DEV_G2D + bool + help + Compile in platform device definitions for G2D device + config S5P_DEV_FIMD0 bool help
arch/arm/plat-s5p/Makefile +1 -0
@@ -32,6 +32,7 @@ obj-$(CONFIG_S5P_DEV_FIMC1) += dev-fimc1.o obj-$(CONFIG_S5P_DEV_FIMC2) += dev-fimc2.o obj-$(CONFIG_S5P_DEV_FIMC3) += dev-fimc3.o obj-$(CONFIG_S5P_DEV_FIMD0) += dev-fimd0.o +obj-$(CONFIG_S5P_DEV_G2D) += dev-g2d.o obj-$(CONFIG_S5P_DEV_I2C_HDMIPHY) += dev-i2c-hdmiphy.o obj-$(CONFIG_S5P_DEV_ONENAND) += dev-onenand.o obj-$(CONFIG_S5P_DEV_CSIS0) += dev-csis0.o
arch/arm/plat-s5p/dev-g2d.c new file +43 -0
43 lines not on this page · raw message
arch/arm/plat-samsung/include/plat/devs.h +1 -1
@@ -139,7 +139,7 @@ extern struct platform_device s5p_device_fimc0;extern struct platform_device s5p_device_fimc1;extern struct platform_device s5p_device_fimc2;extern struct platform_device s5p_device_fimc3; - +extern struct platform_device s5p_device_g2d;extern struct platform_device s5p_device_mfc;extern struct platform_device s5p_device_mfc_l;extern struct platform_device s5p_device_mfc_r;
Signature · 1 line
1.6.3.3
PATCH 2/3 s5p-g2d: add G2D to mach-nuri
In reply to Kamil DebskiG2D is a 2D graphics accelerator engine present in the s5p family of Samsung SoCs. It is capable of bitblt and raster operations on images having dimensions of up to 8000x8000.
--- arch/arm/mach-exynos4/Kconfig | 1 + arch/arm/mach-exynos4/mach-nuri.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-exynos4/Kconfig +1 -0
@@ -218,6 +218,7 @@ config MACH_NURI select S5P_DEV_MFC select S3C_DEV_RTC select S5P_DEV_USB_EHCI + select S5P_DEV_G2D select S3C_DEV_USB_HSOTG select EXYNOS4_DEV_PD select EXYNOS4_SETUP_FIMD0
arch/arm/mach-exynos4/mach-nuri.c +1 -0
@@ -1134,6 +1134,7 @@ static struct platform_device *nuri_devices[] __initdata = { &i2c9_gpio, &s3c_device_usb_hsotg, &s3c_device_adc, + &s5p_device_g2d, &s3c_device_rtc, &s5p_device_mfc, &s5p_device_mfc_l,
Signature · 1 line
1.6.3.3
PATCH 3/3 s5p-g2d: add G2D to mach-universal
In reply to Kamil DebskiG2D is a 2D graphics accelerator engine present in the s5p family of Samsung SoCs. It is capable of bitblt and raster operations on images having dimensions of up to 8000x8000.
--- arch/arm/mach-exynos4/Kconfig | 1 + arch/arm/mach-exynos4/mach-universal_c210.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-exynos4/Kconfig +1 -0
@@ -182,6 +182,7 @@ config MACH_UNIVERSAL_C210 select S5P_DEV_FIMC1 select S5P_DEV_FIMC2 select S5P_DEV_FIMC3 + select S5P_DEV_G2D select S3C_DEV_HSMMC select S3C_DEV_HSMMC2 select S3C_DEV_HSMMC3
arch/arm/mach-exynos4/mach-universal_c210.c +1 -0
@@ -973,6 +973,7 @@ static struct platform_device *universal_devices[] __initdata = { &s5p_device_fimc1, &s5p_device_fimc2, &s5p_device_fimc3, + &s5p_device_g2d, &mmc0_fixed_voltage, &s3c_device_hsmmc0, &s3c_device_hsmmc2,
Signature · 1 line
1.6.3.3