From patchwork Wed Apr 24 12:00:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 2484111 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 3BE87DFF66 for ; Wed, 24 Apr 2013 12:02:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932270Ab3DXMBn (ORCPT ); Wed, 24 Apr 2013 08:01:43 -0400 Received: from mail-da0-f48.google.com ([209.85.210.48]:48698 "EHLO mail-da0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758098Ab3DXMBl (ORCPT ); Wed, 24 Apr 2013 08:01:41 -0400 Received: by mail-da0-f48.google.com with SMTP id f10so847829dak.7 for ; Wed, 24 Apr 2013 05:01:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=fwfZZuPGf1HbwH5demuhLRebjnKOU53o5ADQl9JhvU8=; b=XYe3BHkQ29wu7ZlWrxWiHPWrVSa9dAT4FV/L42agni3GN5NY8ot90c3ZCAczbQryW4 02QvXNSiI1ZXdTn/JHx/QCohvQvAwVGA6R0B1sUViL/gr8Z+tm5bUKAR+/MYaI9dosrU w97AtA8lV/rmc3nL540BFcL7P4yRknw9n+Lf5V7RZbWrCsE9fmD9+jlMUTzZC53Cvm95 BJVdnELP1q8dp/X+qWY/HrbKxQ3TUJn3GonzPT/r/H7X+w/+bIpW457nqziBGK04fVP6 MSv9vcvwKFNzGGs8icHutDujcsMuSoVfoW48VHIZKbHIgEVuIKKMo7P8AEGIM8KSWZxw n8/Q== X-Received: by 10.68.212.100 with SMTP id nj4mr48200943pbc.84.1366804900481; Wed, 24 Apr 2013 05:01:40 -0700 (PDT) Received: from localhost.localdomain ([122.166.13.141]) by mx.google.com with ESMTPSA id 9sm2772915pbi.45.2013.04.24.05.01.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 24 Apr 2013 05:01:39 -0700 (PDT) From: Prabhakar Lad To: DLOS , LMML , LFBDEV , LAK Cc: LKML , Sekhar Nori , Mauro Carvalho Chehab , Florian Tobias Schandinat , "Lad, Prabhakar" Subject: [PATCH 6/6] ARM: davinci: dm644x: enable fbdev driver Date: Wed, 24 Apr 2013 17:30:08 +0530 Message-Id: <1366804808-22720-7-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1366804808-22720-1-git-send-email-prabhakar.csengg@gmail.com> References: <1366804808-22720-1-git-send-email-prabhakar.csengg@gmail.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org From: Lad, Prabhakar This patch enables fbdev driver by creating fbdev device and register it. Signed-off-by: Lad, Prabhakar --- arch/arm/mach-davinci/dm644x.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c index c2a9273..a4fee07 100644 --- a/arch/arm/mach-davinci/dm644x.c +++ b/arch/arm/mach-davinci/dm644x.c @@ -745,6 +745,15 @@ static struct platform_device dm644x_vpbe_display = { }, }; +static struct platform_device dm644x_davincifb = { + .name = "davinci-vpbe-fb", + .id = -1, + .dev = { + .dma_mask = &dm644x_video_dma_mask, + .coherent_dma_mask = DMA_BIT_MASK(32), + }, +}; + static struct venc_platform_data dm644x_venc_pdata = { .setup_clock = dm644x_venc_setup_clock, }; @@ -909,6 +918,7 @@ int __init dm644x_init_video(struct vpfe_config *vpfe_cfg, platform_device_register(&dm644x_venc_dev); platform_device_register(&dm644x_vpbe_dev); platform_device_register(&dm644x_vpbe_display); + platform_device_register(&dm644x_davincifb); } return 0;