From patchwork Thu Jul 8 14:13:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 110868 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o68EDSCt019115 for ; Thu, 8 Jul 2010 14:13:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758041Ab0GHONJ (ORCPT ); Thu, 8 Jul 2010 10:13:09 -0400 Received: from mail.gmx.net ([213.165.64.20]:38361 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1758020Ab0GHONC (ORCPT ); Thu, 8 Jul 2010 10:13:02 -0400 Received: (qmail invoked by alias); 08 Jul 2010 14:12:57 -0000 Received: from p57BD0C76.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.12.118] by mail.gmx.net (mp065) with SMTP; 08 Jul 2010 16:12:57 +0200 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX18ZJUkXnHQZdTEX1xciHcLhUtei3I1n99jpdkBuDR QZ1hNjDRns6Wtl Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1OWrqk-0001x9-UA; Thu, 08 Jul 2010 16:13:14 +0200 Date: Thu, 8 Jul 2010 16:13:14 +0200 (CEST) From: Guennadi Liakhovetski To: "linux-sh@vger.kernel.org" cc: Magnus Damm , linux-fbdev@vger.kernel.org, Paul Mundt Subject: [PATCH 5/6 v2] fbdev: sh-mobile: HDMI support for SH-Mobile SoCs In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 08 Jul 2010 14:13:29 +0000 (UTC) diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index 5d24d4e..3c61c9d 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c @@ -792,6 +792,7 @@ static void __init ap4evb_init(void) static void __init ap4evb_timer_init(void) { + clk_set_rate(&dv_clki_clk, 27000000); sh7372_clock_init(); shmobile_timer.init(); } diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 3dc1038..f00314f 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -1914,6 +1914,14 @@ config FB_SH_MOBILE_LCDC ---help--- Frame buffer driver for the on-chip SH-Mobile LCD controller. +config FB_SH_MOBILE_HDMI + tristate "SuperH Mobile HDMI controller support" + depends on FB_SH_MOBILE_LCDC + select FB_MODE_HELPERS + select PM_RUNTIME + ---help--- + Driver for the on-chip SH-Mobile HDMI controller. + config FB_TMIO tristate "Toshiba Mobile IO FrameBuffer support" depends on FB && MFD_CORE diff --git a/drivers/video/Makefile b/drivers/video/Makefile index 3c3bf86..e525827 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -124,6 +124,7 @@ obj-$(CONFIG_FB_PS3) += ps3fb.o obj-$(CONFIG_FB_SM501) += sm501fb.o obj-$(CONFIG_FB_XILINX) += xilinxfb.o obj-$(CONFIG_SH_MIPI_DSI) += sh_mipi_dsi.o +obj-$(CONFIG_FB_SH_MOBILE_HDMI) += sh_mobile_hdmi.o obj-$(CONFIG_FB_SH_MOBILE_LCDC) += sh_mobile_lcdcfb.o obj-$(CONFIG_FB_OMAP) += omap/ obj-y += omap2/ diff --git a/drivers/video/sh_mobile_hdmi.c b/drivers/video/sh_mobile_hdmi.c new file mode 100644 index 0000000..2fde08c --- /dev/null +++ b/drivers/video/sh_mobile_hdmi.c @@ -0,0 +1,1028 @@ +/* + * SH-Mobile High-Definition Multimedia Interface (HDMI) driver + * for SLISHDMI13T and SLIPHDMIT IP cores + * + * Copyright (C) 2010, Guennadi Liakhovetski + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include