All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 03/11] video: Add System-Mode configuration hook into mxsfb
Date: Wed, 31 Jul 2013 00:45:38 +0200	[thread overview]
Message-ID: <201307310045.38591.marex@denx.de> (raw)
In-Reply-To: <CAP9ODKo-epbPv0A9JNHktSsA6KzUdhz1GT+Sd_2U9yW1qm0BLw@mail.gmail.com>

Dear Otavio Salvador,

> On Tue, Jul 30, 2013 at 6:37 PM, Marek Vasut <marex@denx.de> wrote:
> > Add hook that allow configuring SmartLCD attached the MXS LCDIF
> > controller operating in System-Mode. This hook can be overriden
> > by a platform-specific SmartLCD programming routine, which writes
> > the SmartLCD specific values into it's registers.
> > 
> > Also, this patch makes sure the SYNC signals are off for the
> > SmartLCD case.
> > 
> > Signed-off-by: Marek Vasut <marex@denx.de>
> > Cc: Anatolij Gustschin <agust@denx.de>
> > Cc: Fabio Estevam <fabio.estevam@freescale.com>
> > Cc: Otavio Salvador <otavio@ossystems.com.br>
> > Cc: Stefano Babic <sbabic@denx.de>
> > ---
> > 
> >  drivers/video/mxsfb.c |   16 ++++++++++++++++
> >  1 file changed, 16 insertions(+)
> > 
> > diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c
> > index dbc63a6..78709dd 100644
> > --- a/drivers/video/mxsfb.c
> > +++ b/drivers/video/mxsfb.c
> > @@ -34,6 +34,17 @@
> > 
> >  static GraphicDevice panel;
> > 
> > +/**
> > + * mxsfb_system_setup() - Fine-tune LCDIF configuration
> > + *
> > + * This function is used to adjust the LCDIF configuration. This is
> > usually + * needed when driving the controller in System-Mode to operate
> > an 8080 or + * 6800 connected SmartLCD.
> > + */
> > +__weak void mxsfb_system_setup(void)
> > +{
> > +}
> > +
> > 
> >  /*
> >  
> >   * DENX M28EVK:
> >   * setenv videomode
> > 
> > @@ -88,6 +99,9 @@ static void mxs_lcd_init(GraphicDevice *panel,
> > 
> >         writel(valid_data << LCDIF_CTRL1_BYTE_PACKING_FORMAT_OFFSET,
> >         
> >                 &regs->hw_lcdif_ctrl1);
> > 
> > +
> > +       mxsfb_system_setup();
> > +
> > 
> >         writel((mode->yres << LCDIF_TRANSFER_COUNT_V_COUNT_OFFSET) |
> >         mode->xres,
> >         
> >                 &regs->hw_lcdif_transfer_count);
> > 
> > @@ -115,8 +129,10 @@ static void mxs_lcd_init(GraphicDevice *panel,
> > 
> >         /* Flush FIFO first */
> >         writel(LCDIF_CTRL1_FIFO_CLEAR, &regs->hw_lcdif_ctrl1_set);
> > 
> > +#ifndef CONFIG_VIDEO_MXS_MODE_SYSTEM
> 
> Mode system or System mode?

This is a name of configuration macro, CONFIG_VIDEO_MXS_MODE_SYSTEM . Otherwise 
I do not understand what you are asking about.

Best regards,
Marek Vasut

  reply	other threads:[~2013-07-30 22:45 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-30 21:37 [U-Boot] [PATCH 00/11] ARM: mxs: Various MX23 adjustments Marek Vasut
2013-07-30 21:37 ` [U-Boot] [PATCH 01/11] dma: apbh: Add special circular mode for LCD Marek Vasut
2013-08-09 19:50   ` Anatolij Gustschin
2013-07-30 21:37 ` [U-Boot] [PATCH 02/11] video: Allocate the MXSFB framebuffer aligned Marek Vasut
2013-08-09 19:50   ` Anatolij Gustschin
2013-07-30 21:37 ` [U-Boot] [PATCH 03/11] video: Add System-Mode configuration hook into mxsfb Marek Vasut
2013-07-30 21:46   ` Otavio Salvador
2013-07-30 22:45     ` Marek Vasut [this message]
2013-07-30 22:48       ` Otavio Salvador
2013-07-30 23:31         ` Marek Vasut
2013-07-31 13:19   ` Stefano Babic
2013-07-31 13:22     ` Marek Vasut
2013-07-31 15:05       ` Stefano Babic
2013-07-31 15:14         ` Marek Vasut
2013-08-09 19:51   ` Anatolij Gustschin
2013-07-30 21:37 ` [U-Boot] [PATCH 04/11] video: Implement continuous screen refresh for SmartLCD " Marek Vasut
2013-08-09 19:51   ` Anatolij Gustschin
2013-07-30 21:37 ` [U-Boot] [PATCH 05/11] ARM: mxs: Add Creative ZEN XFi3 board Marek Vasut
2013-07-30 21:49   ` Otavio Salvador
2013-07-30 22:46     ` Marek Vasut
2013-07-30 22:49       ` Otavio Salvador
2013-07-30 23:36         ` Marek Vasut
2013-07-31 12:57           ` Otavio Salvador
2013-07-31  5:59   ` Heiko Schocher
2013-07-31 10:33     ` Marek Vasut
2013-07-31 15:00   ` Stefano Babic
2013-07-31 15:09     ` Marek Vasut
2013-07-31 19:30   ` Wolfgang Denk
2013-07-31 20:16     ` Marek Vasut
2013-07-30 21:37 ` [U-Boot] [PATCH 06/11] ARM: mxs: Add SanDisk Sansa Fuze+ board Marek Vasut
2013-07-31 19:32   ` Wolfgang Denk
2013-07-31 19:41     ` Marek Vasut
2013-07-30 21:37 ` [U-Boot] [PATCH 07/11] video: Encapsulate font in video_font_data.h Marek Vasut
2013-08-10  7:19   ` Anatolij Gustschin
2013-08-11 17:29     ` Marek Vasut
2013-08-12 20:43   ` Anatolij Gustschin
2013-07-30 21:37 ` [U-Boot] [PATCH 08/11] video: Add small 4x6 font from Linux Marek Vasut
2013-08-12 20:44   ` Anatolij Gustschin
2013-07-30 21:37 ` [U-Boot] [PATCH 09/11] video: Fix cfb_console for 4-bit wide font Marek Vasut
2013-08-10  7:24   ` Anatolij Gustschin
2013-07-30 21:38 ` [U-Boot] [PATCH 10/11] ARM: mxs: Enable 4x6 font for X-Fi3 Marek Vasut
2013-07-31 15:01   ` Stefano Babic
2013-07-31 15:15     ` Marek Vasut
2013-07-31 16:08       ` Stefano Babic
2013-07-30 21:38 ` [U-Boot] [PATCH 11/11] ARM: mxs: Enable 4x6 font for Fuze+ Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201307310045.38591.marex@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.