Updated s5p-mfc platform definitions
Subsystems (3)
v2 cover Updated s5p-mfc platform definitions
Hello,
This patch series contains platform definitions for s5p-mfc driver rebased onto latest for-next branch (including generic GIC and clockdev changes). Errors reported by check patch have been fixed.
Best regards
Signature · 36 lines
Marek Szyprowski
Samsung Poland R&D Center
Patch summary:
Kamil Debski (3):
ARM: S5P: Add support for MFC device to plat-s5p, mach-s5pv210 and
mach-exynos4
ARM: S5PV210: Enable MFC on Goni
ARM: EXYNOS4: Enable MFC on universal_c210
Marek Szyprowski (1):
ARM: EXYNOS4: Enable MFC on Samsung NURI
arch/arm/Kconfig | 2 +
arch/arm/mach-exynos4/Kconfig | 4 +
arch/arm/mach-exynos4/clock.c | 61 +++++++++++++
arch/arm/mach-exynos4/include/mach/map.h | 2 +
arch/arm/mach-exynos4/mach-nuri.c | 13 +++
arch/arm/mach-exynos4/mach-universal_c210.c | 13 +++
arch/arm/mach-s5pv210/Kconfig | 1 +
arch/arm/mach-s5pv210/clock.c | 7 ++
arch/arm/mach-s5pv210/include/mach/map.h | 3 +
arch/arm/mach-s5pv210/mach-goni.c | 10 ++
arch/arm/plat-s5p/Kconfig | 5 +
arch/arm/plat-s5p/Makefile | 2 +-
arch/arm/plat-s5p/dev-mfc.c | 123 +++++++++++++++++++++++++++
arch/arm/plat-s5p/include/plat/mfc.h | 27 ++++++
arch/arm/plat-samsung/include/plat/devs.h | 3 +
15 files changed, 275 insertions(+), 1 deletions(-)
create mode 100644 arch/arm/plat-s5p/dev-mfc.c
create mode 100644 arch/arm/plat-s5p/include/plat/mfc.h
--
1.7.1.569.g6f426PATCH v2 1/4 ARM: S5P: Add support for MFC device to plat-s5p, mach-s5pv210 and mach-exynos4
From: Kamil Debski <[email protected]>
Add support for MFC device to plat-s5p, mach-exynos4, mach-s5pv210:
- clock support
- memory mapping and reserving
- s5p_device_mfc platform device
--- arch/arm/Kconfig | 2 + arch/arm/mach-exynos4/clock.c | 61 ++++++++++++++ arch/arm/mach-exynos4/include/mach/map.h | 2 + arch/arm/mach-s5pv210/clock.c | 7 ++ arch/arm/mach-s5pv210/include/mach/map.h | 3 + arch/arm/plat-s5p/Kconfig | 5 + arch/arm/plat-s5p/Makefile | 2 +- arch/arm/plat-s5p/dev-mfc.c | 123 +++++++++++++++++++++++++++++ arch/arm/plat-s5p/include/plat/mfc.h | 27 ++++++ arch/arm/plat-samsung/include/plat/devs.h | 3 + 10 files changed, 234 insertions(+), 1 deletions(-) create mode 100644 arch/arm/plat-s5p/dev-mfc.c create mode 100644 arch/arm/plat-s5p/include/plat/mfc.h
arch/arm/Kconfig +2 -0
@@ -754,6 +754,7 @@ config ARCH_S5PV210 bool "Samsung S5PV210/S5PC110" select CPU_V7 select ARCH_SPARSEMEM_ENABLE + select ARCH_HAS_HOLES_MEMORYMODEL select GENERIC_GPIO select HAVE_CLK select CLKDEV_LOOKUP
@@ -772,6 +773,7 @@ config ARCH_EXYNOS4 bool "Samsung EXYNOS4" select CPU_V7 select ARCH_SPARSEMEM_ENABLE + select ARCH_HAS_HOLES_MEMORYMODEL select GENERIC_GPIO select HAVE_CLK select CLKDEV_LOOKUP
arch/arm/mach-exynos4/clock.c +61 -0
85 lines not on this page · raw message
arch/arm/mach-exynos4/include/mach/map.h +2 -0
@@ -106,6 +106,7 @@#define EXYNOS4_PA_EHCI 0x12580000#define EXYNOS4_PA_HSPHY 0x125B0000 +#define EXYNOS4_PA_MFC 0x13400000#define EXYNOS4_PA_UART 0x13800000
@@ -152,6 +153,7 @@#define S5P_PA_ONENAND_DMA EXYNOS4_PA_ONENAND_DMA#define S5P_PA_SDRAM EXYNOS4_PA_SDRAM#define S5P_PA_SROMC EXYNOS4_PA_SROMC +#define S5P_PA_MFC EXYNOS4_PA_MFC#define S5P_PA_SYSCON EXYNOS4_PA_SYSCON#define S5P_PA_TIMER EXYNOS4_PA_TIMER#define S5P_PA_EHCI EXYNOS4_PA_EHCI
arch/arm/mach-s5pv210/clock.c +7 -0
@@ -324,6 +324,12 @@ static struct clk init_clocks_off[] = { .enable = s5pv210_clk_ip0_ctrl, .ctrlbit = (1 << 26), }, { + .name = "mfc", + .devname = "s5p-mfc", + .parent = &clk_pclk_psys.clk, + .enable = s5pv210_clk_ip0_ctrl, + .ctrlbit = (1 << 16), + }, { .name = "otg", .parent = &clk_hclk_psys.clk, .enable = s5pv210_clk_ip1_ctrl,
@@ -879,6 +885,7 @@ static struct clksrc_clk clksrcs[] = { }, { .clk = { .name = "sclk_mfc", + .devname = "s5p-mfc", .enable = s5pv210_clk_ip0_ctrl, .ctrlbit = (1 << 16), },
arch/arm/mach-s5pv210/include/mach/map.h +3 -0
@@ -59,6 +59,8 @@#define S5PV210_PA_CFCON 0xE8200000 +#define S5PV210_PA_MFC 0xF1700000 +#define S5PV210_PA_HSMMC (x) (0xEB000000 + ((x) * 0x100000))#define S5PV210_PA_HSOTG 0xEC000000
@@ -107,6 +109,7 @@#define S5P_PA_FIMC1 S5PV210_PA_FIMC1#define S5P_PA_FIMC2 S5PV210_PA_FIMC2#define S5P_PA_MIPI_CSIS0 S5PV210_PA_MIPI_CSIS +#define S5P_PA_MFC S5PV210_PA_MFC#define S5P_PA_ONENAND S5PC110_PA_ONENAND#define S5P_PA_ONENAND_DMA S5PC110_PA_ONENAND_DMA#define S5P_PA_SDRAM S5PV210_PA_SDRAM
arch/arm/plat-s5p/Kconfig +5 -0
@@ -71,6 +71,11 @@ config S5P_DEV_FIMC3 help Compile in platform device definitions for FIMC controller 3 +config S5P_DEV_MFC + bool + help + Compile in platform device definitions for MFC + config S5P_DEV_ONENAND bool help
arch/arm/plat-s5p/Makefile +1 -1
@@ -25,7 +25,7 @@ obj-$(CONFIG_PM) += irq-pm.o obj-$(CONFIG_S5P_HRT) += s5p-time.o # devices - +obj-$(CONFIG_S5P_DEV_MFC) += dev-mfc.o obj-$(CONFIG_S5P_DEV_FIMC0) += dev-fimc0.o obj-$(CONFIG_S5P_DEV_FIMC1) += dev-fimc1.o obj-$(CONFIG_S5P_DEV_FIMC2) += dev-fimc2.o
arch/arm/plat-s5p/dev-mfc.c new file +123 -0
123 lines not on this page · raw message
arch/arm/plat-s5p/include/plat/mfc.h new file +27 -0
@@ -0,0 +1,27 @@ +/* +* Copyright (C) 2011 Samsung Electronics Co.Ltd +* +* 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. +*/ + +#ifndef __PLAT_S5P_MFC_H +#define __PLAT_S5P_MFC_H + +/** +* s5p_mfc_reserve_mem - function to early reserve memory for MFC driver +* @rbase: base address for MFC 'right' memory interface +* @rsize: size of the memory reserved for MFC 'right' interface +* @lbase: base address for MFC 'left' memory interface +* @lsize: size of the memory reserved for MFC 'left' interface +* +* This function reserves system memory for both MFC device memory +* interfaces and registers it to respective struct device entries as +* coherent memory. +*/ +void __init s5p_mfc_reserve_mem (phys_addr_t rbase,unsigned int rsize, +phys_addr_t lbase,unsigned int lsize); + +#endif /* __PLAT_S5P_MFC_H */
arch/arm/plat-samsung/include/plat/devs.h +3 -0
@@ -137,6 +137,9 @@ 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_mfc; +extern struct platform_device s5p_device_mfc_l; +extern struct platform_device s5p_device_mfc_r;extern struct platform_device s5p_device_mipi_csis0;extern struct platform_device s5p_device_mipi_csis1;
Signature · 1 line
1.7.1.569.g6f426
PATCH v2 2/4 ARM: S5PV210: Enable MFC on Goni
In reply to Marek SzyprowskiFrom: Kamil Debski <[email protected]>
Enable MFC device on the Goni board using the S5PV210 SoC.
--- arch/arm/mach-s5pv210/Kconfig | 1 + arch/arm/mach-s5pv210/mach-goni.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 0 deletions(-)
arch/arm/mach-s5pv210/Kconfig +1 -0
@@ -90,6 +90,7 @@ config MACH_GONI select S3C_DEV_HSMMC2 select S3C_DEV_I2C1 select S3C_DEV_I2C2 + select S5P_DEV_MFC select S3C_DEV_USB_HSOTG select S5P_DEV_ONENAND select SAMSUNG_DEV_KEYPAD
arch/arm/mach-s5pv210/mach-goni.c +10 -0
@@ -46,6 +46,7 @@#include <plat/sdhci.h> #include <plat/clock.h> #include <plat/s5p-time.h> +#include <plat/mfc.h> #include <plat/regs-fb-v4.h> /* Following are default values for UCON, ULCON and UFCON UART registers */
@@ -808,6 +809,9 @@ static struct platform_device *goni_devices[] __initdata = { &goni_i2c_gpio5, &mmc2_fixed_voltage, &goni_device_gpiokeys, + &s5p_device_mfc, + &s5p_device_mfc_l, + &s5p_device_mfc_r, &s3c_device_i2c0, &s5p_device_fimc0, &s5p_device_fimc1,
@@ -841,6 +845,11 @@ static void __init goni_map_io(void)s5p_set_timer_source (S5P_PWM3 ,S5P_PWM4 ); } +static void __init goni_reserve (void ) +{ +s5p_mfc_reserve_mem (0x43000000 ,8 <<20 ,0x51000000 ,8 <<20 ); +} +static void __init goni_machine_init (void ) {/* Radio: call before I2C 1 registeration */
@@ -893,4 +902,5 @@ MACHINE_START(GONI, "GONI") .map_io = goni_map_io, .init_machine = goni_machine_init, .timer = &s5p_timer, + .reserve = &goni_reserve,MACHINE_END
Signature · 1 line
1.7.1.569.g6f426
PATCH v2 3/4 ARM: EXYNOS4: Enable MFC on universal_c210
In reply to Marek SzyprowskiFrom: Kamil Debski <[email protected]>
Enable MFC device on the universal_c210 boards using the EXYNOS4 SoC.
--- arch/arm/mach-exynos4/Kconfig | 2 ++ arch/arm/mach-exynos4/mach-universal_c210.c | 13 +++++++++++++ 2 files changed, 15 insertions(+), 0 deletions(-)
arch/arm/mach-exynos4/Kconfig +2 -0
@@ -175,7 +175,9 @@ config MACH_UNIVERSAL_C210 select S3C_DEV_I2C1 select S3C_DEV_I2C3 select S3C_DEV_I2C5 + select S5P_DEV_MFC select S5P_DEV_ONENAND + select EXYNOS4_DEV_PD select EXYNOS4_SETUP_I2C1 select EXYNOS4_SETUP_I2C3 select EXYNOS4_SETUP_I2C5
arch/arm/mach-exynos4/mach-universal_c210.c +13 -0
@@ -31,7 +31,9 @@#include <plat/devs.h> #include <plat/iic.h> #include <plat/gpio-cfg.h> +#include <plat/mfc.h> #include <plat/sdhci.h> +#include <plat/pd.h> #include <mach/map.h>
@@ -717,6 +719,10 @@ static struct platform_device *universal_devices[] __initdata = { &i2c_gpio12, &universal_gpio_keys, &s5p_device_onenand, + &s5p_device_mfc, + &s5p_device_mfc_l, + &s5p_device_mfc_r, + &exynos4_device_pd[PD_MFC], };static void __init universal_map_io (void )
@@ -726,6 +732,11 @@ static void __init universal_map_io(void)s3c24xx_init_uarts (universal_uartcfgs,ARRAY_SIZE (universal_uartcfgs)); } +static void __init universal_reserve (void ) +{ +s5p_mfc_reserve_mem (0x43000000 ,8 <<20 ,0x51000000 ,8 <<20 ); +} +static void __init universal_machine_init (void ) {universal_sdhci_init ();
@@ -746,6 +757,7 @@ static void __init universal_machine_init(void)/* Last */ platform_add_devices (universal_devices,ARRAY_SIZE (universal_devices)); + s5p_device_mfc.dev.parent = &exynos4_device_pd[PD_MFC ].dev; }MACHINE_START (UNIVERSAL_C210 ,"UNIVERSAL_C210" )
@@ -755,4 +767,5 @@ MACHINE_START(UNIVERSAL_C210, "UNIVERSAL_C210") .map_io = universal_map_io, .init_machine = universal_machine_init, .timer = &exynos4_timer, + .reserve = &universal_reserve,MACHINE_END
Signature · 1 line
1.7.1.569.g6f426
PATCH v2 4/4 ARM: EXYNOS4: Enable MFC on Samsung NURI
In reply to Marek SzyprowskiEnable MFC device on the Samsung NURI boards using the EXYNOS4 SoC.
--- arch/arm/mach-exynos4/Kconfig | 2 ++ arch/arm/mach-exynos4/mach-nuri.c | 13 +++++++++++++ 2 files changed, 15 insertions(+), 0 deletions(-)
arch/arm/mach-exynos4/Kconfig +2 -0
@@ -196,7 +196,9 @@ config MACH_NURI select S3C_DEV_I2C1 select S3C_DEV_I2C3 select S3C_DEV_I2C5 + select S5P_DEV_MFC select S5P_DEV_USB_EHCI + select EXYNOS4_DEV_PD select EXYNOS4_SETUP_I2C1 select EXYNOS4_SETUP_I2C3 select EXYNOS4_SETUP_I2C5
arch/arm/mach-exynos4/mach-nuri.c +13 -0
@@ -41,6 +41,8 @@#include <plat/clock.h> #include <plat/gpio-cfg.h> #include <plat/iic.h> +#include <plat/mfc.h> +#include <plat/pd.h> #include <mach/map.h>
@@ -1100,6 +1102,10 @@ static struct platform_device *nuri_devices[] __initdata = { &i2c9_gpio, &s3c_device_adc, &s3c_device_rtc, + &s5p_device_mfc, + &s5p_device_mfc_l, + &s5p_device_mfc_r, + &exynos4_device_pd[PD_MFC ],/* NURI Devices */ &nuri_gpio_keys,
@@ -1116,6 +1122,11 @@ static void __init nuri_map_io(void)s3c24xx_init_uarts (nuri_uartcfgs,ARRAY_SIZE (nuri_uartcfgs)); } +static void __init nuri_reserve (void ) +{ +s5p_mfc_reserve_mem (0x43000000 ,8 <<20 ,0x51000000 ,8 <<20 ); +} +static void __init nuri_machine_init (void ) {nuri_sdhci_init ();
@@ -1136,6 +1147,7 @@ static void __init nuri_machine_init(void)/* Last */ platform_add_devices (nuri_devices,ARRAY_SIZE (nuri_devices)); + s5p_device_mfc.dev.parent = &exynos4_device_pd[PD_MFC ].dev; }MACHINE_START (NURI ,"NURI" )
@@ -1145,4 +1157,5 @@ MACHINE_START(NURI, "NURI") .map_io = nuri_map_io, .init_machine = nuri_machine_init, .timer = &exynos4_timer, + .reserve = &nuri_reserve,MACHINE_END
Signature · 1 line
1.7.1.569.g6f426
Quoted 7 lines · Marek Szyprowski
Hello,
This patch series contains platform definitions for s5p-mfc driver rebased onto latest for-next branch (including generic GIC and clockdev changes). Errors reported by check patch have been fixed.
OK, applied.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
Quoted 39 lines
Best regards
--
Marek Szyprowski
Samsung Poland R&D CenterPatch summary:
Kamil Debski (3):
ARM: S5P: Add support for MFC device to plat-s5p, mach-s5pv210 and
mach-exynos4
ARM: S5PV210: Enable MFC on Goni
ARM: EXYNOS4: Enable MFC onuniversal_c210Marek Szyprowski (1):
ARM: EXYNOS4: Enable MFC on Samsung NURIarch/arm/Kconfig | 2 + arch/arm/mach-exynos4/Kconfig | 4 + arch/arm/mach-exynos4/clock.c | 61 +++++++++++++ arch/arm/mach-exynos4/include/mach/map.h | 2 + arch/arm/mach-exynos4/mach-nuri.c | 13 +++ arch/arm/mach-exynos4/mach-universal_c210.c | 13 +++ arch/arm/mach-s5pv210/Kconfig | 1 + arch/arm/mach-s5pv210/clock.c | 7 ++ arch/arm/mach-s5pv210/include/mach/map.h | 3 + arch/arm/mach-s5pv210/mach-goni.c | 10 ++ arch/arm/plat-s5p/Kconfig | 5 + arch/arm/plat-s5p/Makefile | 2 +- arch/arm/plat-s5p/dev-mfc.c | 123 +++++++++++++++++++++++++++ arch/arm/plat-s5p/include/plat/mfc.h | 27 ++++++ arch/arm/plat-samsung/include/plat/devs.h | 3 + 15 files changed, 275 insertions(+), 1 deletions(-) create mode 100644 arch/arm/plat-s5p/dev-mfc.c create mode 100644 arch/arm/plat-s5p/include/plat/mfc.h--
1.7.1.569.g6f426