From: Sachin Kamat <sachin.kamat@linaro.org>
To: linux-samsung-soc@vger.kernel.org
Cc: devicetree-discuss@lists.ozlabs.org, kgene.kim@samsung.com,
sachin.kamat@linaro.org, patches@linaro.org
Subject: [PATCH 2/6] ARM: dts: Add MFC codec support for Exynos4 DT machines
Date: Tue, 29 Jan 2013 09:43:38 +0530 [thread overview]
Message-ID: <1359432822-23846-3-git-send-email-sachin.kamat@linaro.org> (raw)
In-Reply-To: <1359432822-23846-1-git-send-email-sachin.kamat@linaro.org>
This patch adds MFC codec support for Exynos4 DT machines.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
arch/arm/boot/dts/exynos4.dtsi | 7 +++++++
arch/arm/mach-exynos/mach-exynos4-dt.c | 17 +++++++++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi
index e1347fc..1122fb1 100644
--- a/arch/arm/boot/dts/exynos4.dtsi
+++ b/arch/arm/boot/dts/exynos4.dtsi
@@ -289,4 +289,11 @@
interrupts = <0 34 0>;
};
};
+
+ mfc: codec@13400000 {
+ compatible = "samsung,mfc-v5";
+ reg = <0x13400000 0x10000>;
+ interrupts = <0 94 0>;
+ samsung,power-domain = <&pd_mfc>;
+ };
};
diff --git a/arch/arm/mach-exynos/mach-exynos4-dt.c b/arch/arm/mach-exynos/mach-exynos4-dt.c
index ab1dacc..8ae8da1 100644
--- a/arch/arm/mach-exynos/mach-exynos4-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos4-dt.c
@@ -12,7 +12,9 @@
*/
#include <linux/of_platform.h>
+#include <linux/of_fdt.h>
#include <linux/serial_core.h>
+#include <linux/memblock.h>
#include <asm/mach/arch.h>
#include <asm/hardware/gic.h>
@@ -20,6 +22,7 @@
#include <plat/cpu.h>
#include <plat/regs-serial.h>
+#include <plat/mfc.h>
#include "common.h"
@@ -80,6 +83,7 @@ static const struct of_dev_auxdata exynos4_auxdata_lookup[] __initconst = {
OF_DEV_AUXDATA("arm,pl330", EXYNOS4_PA_MDMA1, "dma-pl330.2", NULL),
OF_DEV_AUXDATA("samsung,exynos4210-tmu", EXYNOS4_PA_TMU,
"exynos-tmu", NULL),
+ OF_DEV_AUXDATA("samsung,mfc-v5", 0x13400000, "s5p-mfc", NULL),
{},
};
@@ -102,6 +106,18 @@ static char const *exynos4_dt_compat[] __initdata = {
NULL
};
+static void __init exynos4_reserve(void)
+{
+#ifdef CONFIG_S5P_DEV_MFC
+ struct s5p_mfc_dt_meminfo mfc_mem;
+
+ /* Reserve memory for MFC only if it's available */
+ mfc_mem.compatible = "samsung,mfc-v5";
+ if (of_scan_flat_dt(s5p_fdt_find_mfc_mem, &mfc_mem))
+ s5p_mfc_reserve_mem(mfc_mem.roff, mfc_mem.rsize, mfc_mem.loff,
+ mfc_mem.lsize);
+#endif
+}
DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)")
/* Maintainer: Thomas Abraham <thomas.abraham@linaro.org> */
.smp = smp_ops(exynos_smp_ops),
@@ -114,4 +130,5 @@ DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)")
.timer = &exynos4_timer,
.dt_compat = exynos4_dt_compat,
.restart = exynos4_restart,
+ .reserve = exynos4_reserve,
MACHINE_END
--
1.7.4.1
next prev parent reply other threads:[~2013-01-29 4:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-29 4:13 [PATCH Resend 0/6] ARM: dts: Add MFC support for Exynos4 Sachin Kamat
2013-01-29 4:13 ` [PATCH 1/6] ARM: dts: Update MFC DT binding documentation Sachin Kamat
2013-01-29 13:33 ` Sylwester Nawrocki
2013-01-30 5:49 ` Sachin Kamat
2013-01-29 4:13 ` Sachin Kamat [this message]
2013-01-29 13:36 ` [PATCH 2/6] ARM: dts: Add MFC codec support for Exynos4 DT machines Sylwester Nawrocki
2013-01-30 6:00 ` Sachin Kamat
2013-01-29 4:13 ` [PATCH 3/6] ARM: dts: Add MFC codec support to SMDKV310 DT Sachin Kamat
2013-01-29 13:40 ` Sylwester Nawrocki
2013-01-30 6:12 ` Sachin Kamat
2013-01-29 4:13 ` [PATCH 4/6] ARM: dts: Add MFC codec support to Origen DT Sachin Kamat
2013-01-29 4:13 ` [PATCH 5/6] ARM: dts: Add MFC codec entry to exynos4412-origen DT file Sachin Kamat
2013-01-29 4:13 ` [PATCH 6/6] ARM: dts: Add MFC codec entry to exynos4412-smdk4412 " Sachin Kamat
-- strict thread matches above, loose matches on Subject: below --
2013-01-30 7:11 [PATCH v2 0/6] ARM: dts: Add MFC support for Exynos4 Sachin Kamat
2013-01-30 7:11 ` [PATCH 2/6] ARM: dts: Add MFC codec support for Exynos4 DT machines Sachin Kamat
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1359432822-23846-3-git-send-email-sachin.kamat@linaro.org \
--to=sachin.kamat@linaro.org \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=kgene.kim@samsung.com \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=patches@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).