From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Shiyan Date: Sat, 12 Apr 2014 06:53:02 +0000 Subject: [PATCH v2 1/3] video: clps711x: Add new Cirrus Logic CLPS711X framebuffer driver Message-Id: <1397285583-15187-1-git-send-email-shc_work@mail.ru> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-fbdev@vger.kernel.org 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