Linux Renesas SOC kernel development
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: shmobile: defconfig: Enable HDMI input
@ 2016-11-18 15:00 Niklas Söderlund
  2016-11-18 15:00 ` [PATCH 1/2] ARM: shmobile: defconfig: Enable CONFIG_VIDEO_ADV7604 Niklas Söderlund
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Niklas Söderlund @ 2016-11-18 15:00 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm; +Cc: linux-renesas-soc, Niklas Söderlund

Hi,

Now that the DT updates for HDMI in are in renesas-drivers I think it's 
a good time to enable the configuration needed to use HDMI input with 
shmobile_defconifg.

Niklas Söderlund (2):
  ARM: shmobile: defconfig: Enable CONFIG_VIDEO_ADV7604
  ARM: shmobile: defconfig: Enable CMA for DMA

 arch/arm/configs/shmobile_defconfig | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.10.2

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] ARM: shmobile: defconfig: Enable CONFIG_VIDEO_ADV7604
  2016-11-18 15:00 [PATCH 0/2] ARM: shmobile: defconfig: Enable HDMI input Niklas Söderlund
@ 2016-11-18 15:00 ` Niklas Söderlund
  2016-11-18 15:00 ` [PATCH 2/2] ARM: shmobile: defconfig: Enable CMA for DMA Niklas Söderlund
  2016-11-23 14:21 ` [PATCH 0/2] ARM: shmobile: defconfig: Enable HDMI input Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Niklas Söderlund @ 2016-11-18 15:00 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm; +Cc: linux-renesas-soc, Niklas Söderlund

The adv7612 is used on Gen2 boards (Lager, Koelsch and Gose) for HDMI
input. Enable support for this chip in shmobile_defconfig.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
---
 arch/arm/configs/shmobile_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/shmobile_defconfig b/arch/arm/configs/shmobile_defconfig
index baa07a4..9c311c9 100644
--- a/arch/arm/configs/shmobile_defconfig
+++ b/arch/arm/configs/shmobile_defconfig
@@ -144,6 +144,7 @@ CONFIG_VIDEO_RENESAS_JPU=y
 CONFIG_VIDEO_RENESAS_VSP1=y
 # CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set
 CONFIG_VIDEO_ADV7180=y
+CONFIG_VIDEO_ADV7604=y
 CONFIG_VIDEO_ML86V7667=y
 CONFIG_DRM=y
 CONFIG_DRM_I2C_ADV7511=y
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] ARM: shmobile: defconfig: Enable CMA for DMA
  2016-11-18 15:00 [PATCH 0/2] ARM: shmobile: defconfig: Enable HDMI input Niklas Söderlund
  2016-11-18 15:00 ` [PATCH 1/2] ARM: shmobile: defconfig: Enable CONFIG_VIDEO_ADV7604 Niklas Söderlund
@ 2016-11-18 15:00 ` Niklas Söderlund
  2016-11-23 14:21 ` [PATCH 0/2] ARM: shmobile: defconfig: Enable HDMI input Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Niklas Söderlund @ 2016-11-18 15:00 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm; +Cc: linux-renesas-soc, Niklas Söderlund

To be able to use VIN with larger frame sizes CMA memory are needed for
DMA. If this is not enabled trying to capture large frames can result in
errors such as:

rcar-vin e6ef0000.video: dma_alloc_coherent of size 8388608 failed

A CMA area of 64MB are needed for v4l2-compliance to pass on all formats
on the largest possible frame size of 2048x2048.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
---
 arch/arm/configs/shmobile_defconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/configs/shmobile_defconfig b/arch/arm/configs/shmobile_defconfig
index 9c311c9..05ab191 100644
--- a/arch/arm/configs/shmobile_defconfig
+++ b/arch/arm/configs/shmobile_defconfig
@@ -32,6 +32,7 @@ CONFIG_HAVE_ARM_ARCH_TIMER=y
 CONFIG_NR_CPUS=8
 CONFIG_AEABI=y
 CONFIG_HIGHMEM=y
+CONFIG_CMA=y
 CONFIG_ZBOOT_ROM_TEXT=0x0
 CONFIG_ZBOOT_ROM_BSS=0x0
 CONFIG_ARM_APPENDED_DTB=y
@@ -57,6 +58,8 @@ CONFIG_CAN_RCAR=y
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_DEVTMPFS=y
 CONFIG_DEVTMPFS_MOUNT=y
+CONFIG_DMA_CMA=y
+CONFIG_CMA_SIZE_MBYTES=64
 CONFIG_SIMPLE_PM_BUS=y
 CONFIG_MTD=y
 CONFIG_MTD_BLOCK=y
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] ARM: shmobile: defconfig: Enable HDMI input
  2016-11-18 15:00 [PATCH 0/2] ARM: shmobile: defconfig: Enable HDMI input Niklas Söderlund
  2016-11-18 15:00 ` [PATCH 1/2] ARM: shmobile: defconfig: Enable CONFIG_VIDEO_ADV7604 Niklas Söderlund
  2016-11-18 15:00 ` [PATCH 2/2] ARM: shmobile: defconfig: Enable CMA for DMA Niklas Söderlund
@ 2016-11-23 14:21 ` Simon Horman
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2016-11-23 14:21 UTC (permalink / raw)
  To: Niklas Söderlund; +Cc: Magnus Damm, linux-renesas-soc

On Fri, Nov 18, 2016 at 04:00:43PM +0100, Niklas Söderlund wrote:
> Hi,
> 
> Now that the DT updates for HDMI in are in renesas-drivers I think it's 
> a good time to enable the configuration needed to use HDMI input with 
> shmobile_defconifg.

Thanks, I have queued these up for v4.11.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-23 14:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-18 15:00 [PATCH 0/2] ARM: shmobile: defconfig: Enable HDMI input Niklas Söderlund
2016-11-18 15:00 ` [PATCH 1/2] ARM: shmobile: defconfig: Enable CONFIG_VIDEO_ADV7604 Niklas Söderlund
2016-11-18 15:00 ` [PATCH 2/2] ARM: shmobile: defconfig: Enable CMA for DMA Niklas Söderlund
2016-11-23 14:21 ` [PATCH 0/2] ARM: shmobile: defconfig: Enable HDMI input Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox