1/*
2 * Copyright (c) 2013 ETH Zurich. All rights reserved.
3 *
4 * This file is distributed under the terms in the attached LICENSE file.
5 * If you do not find this file, copies can be found by writing to:
6 * ETH Zurich D-INFK, CAB F.78, Universitaetstr. 6, CH-8092 Zurich,
7 * Attn: Systems Group.
8 */
9
10/*
11 * omap44xx_dss_cm2.dev
12 *
13 * DESCRIPTION: 
14 *
15 * NOTE: This file has been automatically generated based on the
16 * XML files extracted from the TI RDT v1.0.0.4p Tool.
17 * Download from here: http://www.ti.com/product/omap4460
18 * This means that the file might not be optimal in terms of naming
19 * conventions for constants and registers (duplicated
20 * namespaces in register and device name etc.).
21 * Also, because of the underlying structure from the original XML
22 * it's possible that some constants appear multiple times (if they
23 * have slightly different descriptions for example).
24 *
25 * You want to clean that up before using the files for the first time!
26 */
27 
28device omap44xx_dss_cm2 msbfirst ( addr base ) "" {
29    
30
31    constants clkactivity_hdmi_phy_48m_fclk_status width(1) "" {
32        CLKACTIVITY_HDMI_PHY_48M_FCLK_0_r = 0 "Corresponding clock is definitely gated";
33        CLKACTIVITY_HDMI_PHY_48M_FCLK_1_r = 1 "Corresponding clock is running or gating/ungating transition is ongoing";
34    };
35
36    constants clktrctrl_status width(2) "" {
37        CLKTRCTRL_0 = 0 "NO_SLEEP: Sleep transition cannot be initiated. Wakeup transition may however occur.";
38        CLKTRCTRL_1 = 1 "SW_SLEEP: Start a software forced sleep transition on the domain.";
39        CLKTRCTRL_2 = 2 "SW_WKUP: Start a software forced wake-up transition on the domain.";
40        CLKTRCTRL_3 = 3 "HW_AUTO: Automatic transition is enabled. Sleep and wakeup transition are based upon hardware conditions.";
41    };
42    
43    register cm_dss_clkstctrl addr(base, 0x0) "This register enables the DSS domain power state transition. It controls the hardware supervised domain power state transition between ON-ACTIVE and ON-INACTIVE states. It also holds 1 status bit per clock input of the domain." {
44        _ 20 mbz;
45        clkactivity_hdmi_phy_48m_fclk 1 ro type(clkactivity_hdmi_phy_48m_fclk_status) "This field indicates the state of the HDMI_PHY_48MHz_FCLK clock in the domain. [warm reset insensitive]";
46        clkactivity_dss_alwon_sys_clk 1 ro type(clkactivity_hdmi_phy_48m_fclk_status) "This field indicates the state of the DSS_ALWON_SYS_CLK clock in the domain. [warm reset insensitive]";
47        clkactivity_dss_fclk 1 ro type(clkactivity_hdmi_phy_48m_fclk_status) "This field indicates the state of the DSS_FCLK clock in the domain. [warm reset insensitive]";
48        clkactivity_dss_l3_iclk 1 ro type(clkactivity_hdmi_phy_48m_fclk_status) "This field indicates the state of the DSS_L3_ICLK (and DSS_L4_ICLK) clock in the domain. [warm reset insensitive]";
49        _ 6 mbz;
50        clktrctrl 2 rw type(clktrctrl_status) "Controls the clock state transition of the DSS clock domain.";
51    };
52
53    constants l3_2_statdep_status width(1) "" {
54        L3_2_STATDEP_0 = 0 "Dependency is disabled";
55        L3_2_STATDEP_1 = 1 "Dependency is enabled";
56    };
57    
58    register cm_dss_staticdep addr(base, 0x4) "This register controls the static domain depedencies from DSS domain towards 'target' domains. It is relevant only for domain having system initiator(s)." {
59        _ 25 mbz;
60        l3_2_statdep 1 rw type(l3_2_statdep_status) "Static dependency towards L3_2 clock domain";
61        l3_1_statdep 1 ro type(l3_2_statdep_status) "Static dependency towards L3_1 clock domain";
62        memif_statdep 1 rw type(l3_2_statdep_status) "Static dependency towards MEMIF clock domain";
63        _ 1 mbz;
64        ivahd_statdep 1 rw type(l3_2_statdep_status) "Static dependency towards IVAHD clock domain";
65        _ 2 mbz;
66    };
67    
68    register cm_dss_dynamicdep addr(base, 0x8) "This register controls the dynamic domain depedencies from DSS domain towards 'target' domains. It is relevant only for domain having INTRCONN master port(s)." {
69        _ 26 mbz;
70        l3_1_dyndep 1 ro type(l3_2_statdep_status) "Dynamic dependency towards L3_1 domain";
71        _ 5 mbz;
72    };
73
74    constants stbyst_status width(1) "" {
75        STBYST_0_r = 0 "Module is functional (not in standby)";
76        STBYST_1_r = 1 "Module is in standby";
77    };
78
79    constants idlest_status width(2) "" {
80        IDLEST_0_r = 0 "Module is fully functional, including INTRCONN";
81        IDLEST_1_r = 1 "Module is performing transition: wakeup, or sleep, or sleep abortion";
82        IDLEST_2_r = 2 "Module is in idle mode (only INTRCONN part). It is functional if using separate functional clock";
83        IDLEST_3_r = 3 "Module is disabled and cannot be accessed";
84    };
85
86    constants optfclken_tv_fclk_status width(1) "" {
87        OPTFCLKEN_TV_FCLK_0 = 0 "Optional functional clock is disabled";
88        OPTFCLKEN_TV_FCLK_1 = 1 "Optional functional clock is enabled";
89    };
90
91    constants modulemode_status width(2) "" {
92        MODULEMODE_0 = 0 "Module is disable by software. Any INTRCONN access to module results in an error, except if resulting from a module wakeup (asynchronous wakeup).";
93        MODULEMODE_1_r = 1 "Reserved";
94        MODULEMODE_2 = 2 "Module is explicitly enabled. Interface clock (if not used for functions) may be gated according to the clock domain state. Functional clocks are guarantied to stay present. As long as in this configuration, power domain sleep transition cannot happen.";
95        MODULEMODE_3_r = 3 "Reserved";
96    };
97    
98    register cm_dss_dss_clkctrl addr(base, 0x20) "This register manages the DSS clocks." {
99        _ 13 mbz;
100        stbyst 1 ro type(stbyst_status) "Module standby status. [warm reset insensitive]";
101        idlest 2 ro type(idlest_status) "Module idle status. [warm reset insensitive]";
102        _ 4 mbz;
103        optfclken_tv_fclk 1 rw type(optfclken_tv_fclk_status) "Optional functional clock control.";
104        optfclken_sys_clk 1 rw type(optfclken_tv_fclk_status) "Optional functional clock control.";
105        optfclken_48mhz_clk 1 rw type(optfclken_tv_fclk_status) "Optional functional clock control.";
106        optfclken_dssclk 1 rw type(optfclken_tv_fclk_status) "Optional functional clock control.";
107        _ 6 mbz;
108        modulemode 2 rw type(modulemode_status) "Control the way mandatory clocks are managed.";
109    };
110};