From: Jean-Christophe PLAGNIOL-VILLARD Date: Wed, 8 Jul 2009 23:28:55 +0200 Subject: [U-Boot] [PATCH RESEND 2/3] arm: added support for display controller in Jade SoC In-Reply-To: <1247061752-19823-3-git-send-email-matthias.weisser@graf-syteco.de> References: <1247061752-19823-1-git-send-email-matthias.weisser@graf-syteco.de> <1247061752-19823-2-git-send-email-matthias.weisser@graf-syteco.de> <1247061752-19823-3-git-send-email-matthias.weisser@graf-syteco.de> Message-ID: <20090708212855.GB26464@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 16:02 Wed 08 Jul , Matthias Weisser wrote: > This patch adds support for the display controller in > the MB86R01 'Jade' SoC. > > Signed-off-by: Matthias Weisser > --- > drivers/video/Makefile | 1 + > drivers/video/cfb_console.c | 2 +- > drivers/video/jadegdc.c | 192 +++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 194 insertions(+), 1 deletions(-) > create mode 100644 drivers/video/jadegdc.c > > diff --git a/drivers/video/Makefile b/drivers/video/Makefile > index bc00852..ad4b0c9 > --- a/drivers/video/Makefile > +++ b/drivers/video/Makefile > @@ -30,6 +30,7 @@ COBJS-$(CONFIG_ATMEL_LCD) += atmel_lcdfb.o > COBJS-$(CONFIG_CFB_CONSOLE) += cfb_console.o > COBJS-$(CONFIG_S6E63D6) += s6e63d6.o > COBJS-$(CONFIG_VIDEO_CT69000) += ct69000.o > +COBJS-$(CONFIG_VIDEO_JADEGDC) += jadegdc.o > COBJS-$(CONFIG_VIDEO_MB862xx) += mb862xx.o > COBJS-$(CONFIG_VIDEO_MX3) += mx3fb.o > COBJS-$(CONFIG_VIDEO_SED13806) += sed13806.o > diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c > index bcafb27..e23499f > --- a/drivers/video/cfb_console.c > +++ b/drivers/video/cfb_console.c > @@ -314,7 +314,7 @@ void console_cursor (int state); > #else > #define SWAP16(x) (x) > #define SWAP32(x) (x) > -#if defined(VIDEO_FB_16BPP_PIXEL_SWAP) > +#if defined(VIDEO_FB_16BPP_PIXEL_SWAP) || defined(CONFIG_VIDEO_JADEGDC) > #define SHORTSWAP32(x) ( ((x) >> 16) | ((x) << 16) ) > #else > #define SHORTSWAP32(x) (x) > diff --git a/drivers/video/jadegdc.c b/drivers/video/jadegdc.c > new file mode 100644 > index 0000000..d3f68ab > --- /dev/null > +++ b/drivers/video/jadegdc.c > @@ -0,0 +1,192 @@ > +/* > + * (C) Copyright 2007-2009 > + * Matthias Weisser > + * > + * See file CREDITS for list of people who contributed to this > + * project. > + * > + * 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. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program; if not, write to the Free Software > + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, > + * MA 02111-1307 USA > + */ > + > +/* > + * jade.c - Graphic interface for Fujitsu Jade integrated graphic > + * controller. Derived from mb862xx.c > + */ > + > +#include > + > +#include > +#include > +#include > +#include > +#include "videomodes.h" > + > +/* > + * 4MB (at the end of system RAM) > + */ > +#define VIDEO_MEM_SIZE 0x400000 > + > +#define GDC_HOST_BASE 0xF1FC0000 > +#define GDC_DSP0_BASE 0xF1FD0000 > +#define GDC_DSP1_BASE 0xF1FD2000 please move to a header > + > +/* > + * Graphic Device > + */ > +GraphicDevice jadegdc; please no uppercase in type Best Regards, J.