public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 8/9] OMAP3: video: add macros to set display parameters
Date: Wed, 29 Aug 2012 09:40:22 +0200	[thread overview]
Message-ID: <503DC766.7010806@denx.de> (raw)
In-Reply-To: <503D464E.1010509@ti.com>

On 29/08/2012 00:29, Tom Rini wrote:
> On 08/28/2012 03:22 PM, Jeroen Hofstee wrote:
>> On 08/28/2012 02:21 PM, Stefano Babic wrote:
>>> Add a common macros to set the registers for horizontal
>>> and vertical timing.
>>>
>>> Signed-off-by: Stefano Babic <sbabic@denx.de>
>>> ---
>>>
>>>   arch/arm/include/asm/arch-omap3/dss.h |    4 ++++
>>>   1 file changed, 4 insertions(+)
>>>
>>> diff --git a/arch/arm/include/asm/arch-omap3/dss.h
>>> b/arch/arm/include/asm/arch-omap3/dss.h
>>> index 8913a71..df5b978 100644
>>> --- a/arch/arm/include/asm/arch-omap3/dss.h
>>> +++ b/arch/arm/include/asm/arch-omap3/dss.h
>>> @@ -181,6 +181,10 @@ struct panel_config {
>>>       void *frame_buffer;
>>>   };
>>>   +#define PANEL_TIMING_H(bp, fp, sw) (((bp - 1) << 20) | \
>>> +         ((fp - 1) << 8) | (sw - 1))
>>> +#define PANEL_TIMING_V(bp, fp, sw) ((bp << 20) | (fp << 8) | (sw - 1))
>>> +
>>>   /* Generic DSS Functions */
>>>   void omap3_dss_venc_config(const struct venc_regs *venc_cfg,
>>>               u32 height, u32 width);
>>
>> To make it a bit more clear what is set, perhaps we can define
>> the fields themselves, this would save some /* hfp */ etc.
>>
>> e.g.
>>
>> diff --git a/arch/arm/include/asm/arch-omap3/dss.h
>> b/arch/arm/include/asm/arch-omap3/dss.h
>> index a830c43..b6ad72d 100644
>> --- a/arch/arm/include/asm/arch-omap3/dss.h
>> +++ b/arch/arm/include/asm/arch-omap3/dss.h
>> @@ -182,6 +182,13 @@ struct panel_config {
>>         void *frame_buffer;
>>  };
>>
>> +#define DSS_HPB(bp)    (((bp) - 1) << 20)
>> +#define DSS_HFB(fp)    (((fp) - 1) << 8)
>> +#define DSS_HSW(sw)    ((sw) - 1)
>> +#define DSS_VPB(bp)    ((bp) << 20)
>> +#define DSS_VFB(fp)    ((fp) << 8)
>> +#define DSS_VSW(sw)    ((sw) - 1)
>> +
>>  /* Generic DSS Functions */
>>  void omap3_dss_venc_config(const struct venc_regs *venc_cfg,
>>                         u32 height, u32 width);
>>
> 
> Looks helpful to me, please make it so, thanks!
> 

Done in V3 !

Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

  reply	other threads:[~2012-08-29  7:40 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-28  7:46 [U-Boot] [PATCH v1 1/8] OMAP3: tam3517: add function to read MAC from EEPROM Stefano Babic
2012-08-28  7:46 ` [U-Boot] [PATCH v1 2/8] OMAP3: twister : get MAC address " Stefano Babic
2012-08-28  7:46 ` [U-Boot] [PATCH v1 3/8] OMAP3: mt_ventoux: Correct board pinmux Stefano Babic
2012-08-28  7:46 ` [U-Boot] [PATCH v1 4/8] OMAP3: mt_ventoux: activate GPIO4 Stefano Babic
2012-08-28  7:46 ` [U-Boot] [PATCH v1 5/8] OMAP3: mt_ventoux: read MAC address from EEPROM Stefano Babic
2012-08-28  7:46 ` [U-Boot] [PATCH v1 6/8] OMAP3: mt_ventoux: disable the buzzer at start-up Stefano Babic
2012-08-28  7:46 ` [U-Boot] [PATCH v1 7/8] video: drop duplicate set of DISPC_CONFIG register Stefano Babic
2012-08-28 10:40   ` Jeroen Hofstee
2012-08-28 10:59     ` Stefano Babic
2012-08-28  7:46 ` [U-Boot] [PATCH v1 8/8] OMAP3: mt_ventoux: added video support Stefano Babic
2012-08-28  8:11   ` Heiko Schocher
2012-08-28  8:28     ` Stefano Babic
2012-08-28  8:47       ` Jeroen Hofstee
2012-08-28 11:05         ` Stefano Babic
2012-08-28 12:21 ` [U-Boot] [PATCH v2 0/9] This patchset updates boards based on the TAM3517 SOM Stefano Babic
2012-08-28 12:21   ` [U-Boot] [PATCH v2 1/9] OMAP3: tam3517: add function to read MAC from EEPROM Stefano Babic
2012-08-28 12:21   ` [U-Boot] [PATCH v2 2/9] OMAP3: twister : get MAC address " Stefano Babic
2012-08-28 12:21   ` [U-Boot] [PATCH v2 3/9] OMAP3: mt_ventoux: Correct board pinmux Stefano Babic
2012-08-28 12:21   ` [U-Boot] [PATCH v2 4/9] OMAP3: mt_ventoux: activate GPIO4 Stefano Babic
2012-08-28 12:21   ` [U-Boot] [PATCH v2 5/9] OMAP3: mt_ventoux: read MAC address from EEPROM Stefano Babic
2012-08-28 12:21   ` [U-Boot] [PATCH v2 6/9] OMAP3: mt_ventoux: disable the buzzer at start-up Stefano Babic
2012-08-28 12:21   ` [U-Boot] [PATCH v2 7/9] video: drop duplicate set of DISPC_CONFIG register Stefano Babic
2012-08-28 20:49     ` Jeroen Hofstee
2012-08-28 12:21   ` [U-Boot] [PATCH v2 8/9] OMAP3: video: add macros to set display parameters Stefano Babic
2012-08-28 14:01     ` Heiko Schocher
2012-08-28 22:22     ` Jeroen Hofstee
2012-08-28 22:29       ` Tom Rini
2012-08-29  7:40         ` Stefano Babic [this message]
2012-08-28 12:21   ` [U-Boot] [PATCH v2 9/9] OMAP3: mt_ventoux: added video support Stefano Babic
2012-08-29 11:21 ` [U-Boot] [PATCH v3 0/9] This patchset updates boards based on the TAM3517 SOM Stefano Babic
2012-08-29 11:21   ` [U-Boot] [PATCH v3 1/9] OMAP3: tam3517: add function to read MAC from EEPROM Stefano Babic
2012-08-29 11:22   ` [U-Boot] [PATCH v3 2/9] OMAP3: twister : get MAC address " Stefano Babic
2012-08-29 11:22   ` [U-Boot] [PATCH v3 3/9] OMAP3: mt_ventoux: Correct board pinmux Stefano Babic
2012-08-29 11:22   ` [U-Boot] [PATCH v3 4/9] OMAP3: mt_ventoux: activate GPIO4 Stefano Babic
2012-08-29 11:22   ` [U-Boot] [PATCH v3 5/9] OMAP3: mt_ventoux: read MAC address from EEPROM Stefano Babic
2012-08-29 11:22   ` [U-Boot] [PATCH v3 6/9] OMAP3: mt_ventoux: disable the buzzer at start-up Stefano Babic
2012-08-29 11:22   ` [U-Boot] [PATCH v3 7/9] video: drop duplicate set of DISPC_CONFIG register Stefano Babic
2012-08-29 11:22   ` [U-Boot] [PATCH v3 8/9] OMAP3: video: add macros to set display parameters Stefano Babic
2012-08-29 11:22   ` [U-Boot] [PATCH v3 9/9] OMAP3: mt_ventoux: added video support Stefano Babic
2012-08-29 15:13   ` [U-Boot] [PATCH v3 0/9] This patchset updates boards based on the TAM3517 SOM Tom Rini
2012-08-31 23:07     ` Tom Rini
2012-08-29 16:28   ` Tom Rini

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=503DC766.7010806@denx.de \
    --to=sbabic@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox