From patchwork Sat Apr 12 06:53:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 3972661 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 605CFBFF02 for ; Sat, 12 Apr 2014 06:56:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DF5342034A for ; Sat, 12 Apr 2014 06:56:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5132320251 for ; Sat, 12 Apr 2014 06:56:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751218AbaDLG4B (ORCPT ); Sat, 12 Apr 2014 02:56:01 -0400 Received: from fallback5.mail.ru ([94.100.176.59]:39141 "EHLO fallback5.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751211AbaDLGzu (ORCPT ); Sat, 12 Apr 2014 02:55:50 -0400 Received: from smtp11.mail.ru (smtp11.mail.ru [94.100.176.85]) by fallback5.mail.ru (mPOP.Fallback_MX) with ESMTP id ACCC4113A3F8F for ; Sat, 12 Apr 2014 10:55:45 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Message-Id:Date:Subject:Cc:To:From; bh=FvtYKJdy9dGYWmyEjj9p2xCAbhPElERSoBPe5D8/KSs=; b=RbkHYCO8AEKtPWfVgoh+XBd9wdptvT8Wk7+QAWb23smK7mpFKJUw9g1HYf2XeyTLnaquGdmd3mwp5KHLLMZeRNh5lRFwmG3fqoj1ScQg2Z78wWaPWg4H7sW5y4gpwgAjchrISk+gVfq2EM7kFyGN9HqkqA1r/KTW9BnuKKUGsbA=; Received: from [5.18.98.0] (port=55830 helo=shc.zet) by smtp11.mail.ru with esmtpa (envelope-from ) id 1WYroP-0007la-4q; Sat, 12 Apr 2014 10:53:13 +0400 From: Alexander Shiyan To: linux-fbdev@vger.kernel.org Cc: Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Olof Johansson , Arnd Bergmann , Alexander Shiyan Subject: [PATCH v2 1/3] video: clps711x: Add new Cirrus Logic CLPS711X framebuffer driver Date: Sat, 12 Apr 2014 10:53:02 +0400 Message-Id: <1397285583-15187-1-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 1.8.3.2 X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Mras: Ok Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RDNS_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This adds support for the framebuffer available in the Cirrus Logic CLPS711X CPUs. FB features: - 1-2-4 bits per pixel. - Programmable panel size to a maximum of 1024x256 at 4 bps. - Relocatible Frame Buffer (SRAM or SDRAM). - Programmable refresh rates. - 16 gray scale values. This new driver supports usage with devicetree and as a general change it removes last user of for CLPS711X targets, so this subarch will fully prepared to switch to multiplatform. The driver have been tested with custom board equipped Cirrus Logic EP7312 in DT and non-DT mode. Signed-off-by: Alexander Shiyan --- drivers/video/fbdev/clps711x-fb.c | 456 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 456 insertions(+) create mode 100644 drivers/video/fbdev/clps711x-fb.c diff --git a/drivers/video/fbdev/clps711x-fb.c b/drivers/video/fbdev/clps711x-fb.c new file mode 100644 index 0000000..87fd42d --- /dev/null +++ b/drivers/video/fbdev/clps711x-fb.c @@ -0,0 +1,456 @@ +/* + * Cirrus Logic CLPS711X FB driver + * + * Copyright (C) 2014 Alexander Shiyan + * Based on driver by Russell King + * + * 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. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include