• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » OMAP™ Processors » OMAP35x Processors Forum » OMAP3530 display palette driver
Share
OMAP™ Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS
Resources
  • OMAP-L1x DSP+ARM9™-based Processors Product Folder
  • OMAP3525/30 DSP+ARM Cortex™-A8-based SOCs Product Folder

  • Top OMAPL Wiki Links
  • OMAPL3x Schematic Review Checklist
  • OMAPL13x Boot resources

  • OMAPL Document Resources
  • OMAPL137 Technical reference manual
  • OMAPL138 Technical reference manual
  • OMAPL Boot loader App Notes
  • OMAP3530 display palette driver

    OMAP3530 display palette driver

    This question is not answered
    Cruise Huang
    Posted by Cruise Huang
    on Aug 06 2010 10:21 AM
    Prodigy110 points

    hi

    Recently I need to get  gray(luminance) data from camera at OMAP3 Linux platform

    after some processing, I need output the frame data to LCD with predefined color palette table.

    I know that LCD controller of OMAP3530 has LUT hardware for palette of color conversion.

    but had no any idea to configure it at my application code, so can anyone help to show me

    some example code to  configure palette table, utilizing the hardware LUT  unit and output to LCD?

     

    If you can redirect to the related information or document, I will appreciate it also.

     

    thanks

    OMAP 3530 Video OMAP 3530 Video output
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Steve Clynes
      Posted by Steve Clynes
      on Aug 06 2010 14:26 PM
      Mastermind23430 points

      I don't think there is any support in the current Linux kernel for color indexed graphics, but it is fairly easy to enable from the application level through direct register configuration.

      First, simply assume you are using the default 16 bit frame buffer and configure the display to the size you wish to display.

      Next, change the DISPC_GFX_ATTRIBUTES register, bit field GFXFORMAT to be 0x03 (8 bit color index)

      Next, declare an array of 256 unsigned integers and populate it with the RGB values you want for each color index entry.

      Set DISPC_GFX_TABLE_BA to the physical address of the previously configured array (Note 1, this needs the physical address and not the virtual address so you will likely need to map it back. Note 2, this needs to be a 32 bit aligned address so depending on how the array is created it may be necessary to create an array of char slightly larger and populate the array such that the start is on a 32 bit boundary)

      Check section 15.4.2.2.2 Color Look-Up Table/Gamma Table of the TRM for more details.

      Set DISPC_CONFIG bit PALETTEGAMMATABLE to '0'

      Set DISPC_CONFIG bit  LOADMODE to 0x3

      Set DISPC_CONTROL bit GOLCD or GODIGITAL depending on if you are displaying on the LCD/DVI or TV output.

      To set registers you can use the source code for mem_util for an example of how to convert from virtual addresses to physical addresses.

      https://gstreamer.ti.com/gf/project/am_sysinfo/scmsvn/?action=browse&path=%2Ftrunk%2Fmem_util%2F&sortby=log

      BR,

      Steve

      Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Cruise Huang
      Posted by Cruise Huang
      on Aug 07 2010 19:56 PM
      Prodigy110 points

      Steve,

       

      Thanks for your reply, the information is very usefull.

      but I have another further question about it. that is, how to retrieve back the translated

      pixel RGB data which is lookup-ed by the LUT or palette table. it just drive LCD output hardware

      peripheral? and can I restrict that just a small window region of screen to go through LUT for color

      conversion?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Steve Clynes
      Posted by Steve Clynes
      on Aug 08 2010 15:52 PM
      Mastermind23430 points

      Unfortunately there is no writeback path to memory, so no you cannot store the constructed RGB image back to memory for reading.

      Regarding limiting the region to a small window this depends on exactly what you want to do.

      The display sub system can display a frame buffer in a window on a larger display, but it is not possible to feed part of this window through the LUT.

      Have a look at the following wiki page which might make it much clearer.

      http://processors.wiki.ti.com/index.php/Display_Subsystem

      BR,

      Steve

      Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use