• Paul Walmsley's avatar
    OMAP2/3/4: create omap_hwmod layer · 63c85238
    Paul Walmsley authored
    OMAP SoCs can be considered a collection of hardware IP blocks
    connected by various interconnects.  The bus topology and device
    integration data is somewhat more complex than platform_device can
    encode.  This patch creates code and structures to manage information
    about OMAP on-chip devices ("hardware modules") and their integration
    to the rest of the chip.  Hardware module data is intended to be
    generated dynamically from the TI hardware database for the OMAP4
    chips and beyond, easing Linux support for new chip variants.
    
    This code currently:
    
    - resets and configures all hardware modules upon startup, reducing bootloader
      dependencies;
    
    - provides hooks for Linux driver model code to enable, idle, and shutdown
      hardware modules (forthcoming patch);
    
    - waits for hardware modules to leave idle once their clocks
      are enabled and OCP_SYSCONFIG bits are set appropriately.
    
    - provides a means to pass arbitrary IP block configuration data (e.g.,
      FIFO size) to the device driver (via the dev_attr void pointer)
    
    In the future this code is intended to:
    
    - estimate interconnect bandwidth and latency characteristics to
      ensure constraints are satisfied during DVFS
    
    - provide *GRPSEL bit data to the powerdomain code
    
    - handle pin/ball muxing for devices
    
    - generate IO mapping information dynamically
    
    - supply device firewall configuration data
    
    - provide hardware module data to other on-chip coprocessor software
    
    - allow the removal of the "disable unused clocks" code in the OMAP2/3
      clock code
    
    This patch represents a collaborative effort involving many people from TI,
    Nokia, and the Linux-OMAP community.
    Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
    Cc: Benoit Cousson <b-cousson@ti.com>
    Cc: Kevin Hilman <khilman@deeprootsystems.com>
    Cc: Tony Lindgren <tony@atomide.com>
    Cc: Rajendra Nayak <rnayak@ti.com>
    Cc: Vikram Pandita <vikram.pandita@ti.com>
    Cc: Sakari Poussa <sakari.poussa@nokia.com>
    Cc: Anand Sawant <sawant@ti.com>
    Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
    Cc: Eric Thomas <ethomas@ti.com>
    Cc: Richard Woodruff <r-woodruff2@ti.com>
    63c85238
Makefile 2.6 KB