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, Universitaetstrasse 6, CH-8092 Zurich,
7 * Attn: Systems Group.
8 */
9
10/*
11 * omap44xx_hsusbotg.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_hsusbotg msbfirst ( addr base ) "" {
29    
30    
31    register otg_revision ro addr(base, 0x400) "OCP standard USB OTG HS core revision number" type(uint32);
32
33    constants midlemode_status width(2) "" {
34        MIDLEMODE_0 = 0 "Force standby mode. Mstandby asserted unconditionally";
35        MIDLEMODE_1 = 1 "No standby mode. Mstandby never asserted.";
36        MIDLEMODE_2 = 2 "Smart standby mode. Mstandby asserted when no more activity on the USB master.";
37    };
38
39    constants sidlemode_status width(2) "" {
40        SIDLEMODE_0 = 0 "Force Idle mode. Sidleack asserted after Midlereq assertion";
41        SIDLEMODE_1 = 1 "No idle mode. Sidleack never asserted.";
42        SIDLEMODE_2 = 2 "SmartIdle mode. Sidleack asserted after Midlereq assertion when no more activity on the USB. Swakeup is not asserted in this mode.";
43        SIDLEMODE_3 = 3 "SmartIdle - Wakeup mode. Sidleack asserted after Midlereq assertion when no more activity on the USB. Swakeup is asserted in this mode if ENABLEWAKEUP is set.";
44    };
45
46    constants enablewakeup_status width(1) "" {
47        ENABLEWAKEUP_0 = 0 "Wakeup disabled";
48        ENABLEWAKEUP_1 = 1 "Wakeup enabled";
49    };
50
51    constants softreset_status width(1) "" {
52        SOFTRESET_1 = 1 "Starts softreset sequence.";
53    };
54
55    constants autoidle_status width(1) "" {
56        AUTOIDLE_0 = 0 "Clock always runnning";
57        AUTOIDLE_1 = 1 "When no activity on OCP, clock is cut off.";
58    };
59    
60    register otg_sysconfig addr(base, 0x404) "OCP standard configuration" {
61        _ 18 mbz;
62        midlemode 2 rw type(midlemode_status) "Master interface power management control. Standby/wait control";
63        _ 7 mbz;
64        sidlemode 2 rw type(sidlemode_status) "Slave interface power management control. Req/ack control";
65        enablewakeup 1 rw type(enablewakeup_status) "Enable wakeup capability.";
66        softreset 1 rw type(softreset_status) "Software reset bit";
67        autoidle 1 rw type(autoidle_status) "Autoidle bit";
68    };
69
70    constants resetdone_status width(1) "" {
71        RESETDONE_0_r = 0 "Reset is ongoing";
72        RESETDONE_1_r = 1 "Reset is finished.";
73    };
74    
75    register otg_sysstatus addr(base, 0x408) "OCP standard status" {
76        _ 31 mbz;
77        resetdone 1 ro type(resetdone_status) "Reset done";
78    };
79
80    constants physel_status width(3) "" {
81        PHYSEL_0 = 0 "PHY interface is 8-bit, UTMI+ level 3";
82        PHYSEL_1 = 1 "PHY interface is 12-pin, 8-bit SDR ULPI";
83        PHYSEL_2 = 2 "PHY interface is 8-pin, 4-bit DDR ULPI (Non-functional mode in current implementation. Do not use.)";
84    };
85    
86    register otg_interfsel addr(base, 0x40C) "USB OTG HS interface selection. The interface selection has to be done before the PHY is activated and is not allowed to change when the PHY clock is already running." {
87        _ 29 mbz;
88        physel 3 rw type(physel_status) "PHY interface selection";
89    };
90    
91    register otg_simenable addr(base, 0x410) "Enable simulation acceleration features. WARNING: For simulations only, since those features have an impact on USB protocol." {
92        _ 31 mbz;
93        tm1 1 rw "Test Mode 1 enabling (timer shortcuts)";
94    };
95    
96    register otg_forcestdby addr(base, 0x414) "Enabling MSTANDBY in FORCESTANDBY mode. Programming this register will impact SmartStandby functionality." {
97        _ 31 mbz;
98        enableforce 1 rw "Enabling MSTANDBY to go high";
99    };
100    
101    register otg_bigendian addr(base, 0x418) "Enable BIG ENDIANESS for OCP MASTER" {
102        _ 31 mbz;
103        big_endian 1 rw "Enable BIG ENDIAN in OCP MASTER";
104    };
105};