Changeset 850235d in mainline for uspace/drv/infrastructure/rootamdm37x/cm/usbhost.h
- Timestamp:
- 2013-03-10T14:56:21Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 05bab88
- Parents:
- ea906c29 (diff), 2277e03 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/infrastructure/rootamdm37x/cm/usbhost.h
rea906c29 r850235d 1 1 /* 2 * Copyright (c) 2007 Michal Kebrt 3 * Copyright (c) 2009 Vineeth Pillai 2 * Copyright (c) 2012 Jan Vesely 4 3 * All rights reserved. 5 4 * … … 28 27 */ 29 28 30 /** @addtogroup arm32gxemul GXemul 31 * @brief GXemul machine specific parts. 32 * @ingroup arm32 29 /** @addtogroup amdm37xdrvusbhostcm 33 30 * @{ 34 31 */ 35 32 /** @file 36 * @brief GXemul peripheries drivers declarations. 33 * @brief USBHOST Clock Management IO register structure. 34 */ 35 #ifndef AMDM37x_USBHOST_CM_H 36 #define AMDM37x_USBHOST_CM_H 37 #include <macros.h> 38 #include <sys/types.h> 39 40 /* AM/DM37x TRM p.447 */ 41 #define USBHOST_CM_BASE_ADDRESS 0x48005400 42 #define USBHOST_CM_SIZE 8192 43 44 typedef struct { 45 ioport32_t fclken; 46 #define USBHOST_CM_FCLKEN_EN_USBHOST1_FLAG (1 << 0) 47 #define USBHOST_CM_FCLKEN_EN_USBHOST2_FLAG (1 << 1) 48 49 PADD32[3]; 50 ioport32_t iclken; 51 #define USBHOST_CM_ICLKEN_EN_USBHOST (1 << 0) 52 53 PADD32[3]; 54 const ioport32_t idlest; 55 #define USBHOST_CM_IDLEST_ST_USBHOST_STDBY_FLAG (1 << 0) 56 #define USBHOST_CM_IDLEST_ST_USBHOST_IDLE_FLAG (1 << 1) 57 58 PADD32[3]; 59 ioport32_t autoidle; 60 #define USBHOST_CM_AUTOIDLE_AUTO_USBHOST_FLAG (1 << 0) 61 62 PADD32[4]; 63 ioport32_t sleepdep; 64 #define USBHOST_CM_SLEEPDEP_EN_MPU_FLAG (1 << 1) 65 #define USBHOST_CM_SLEEPDEP_EN_IVA2_FLAG (1 << 2) 66 67 ioport32_t clkstctrl; 68 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_MASK (0x3 << 0) 69 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_AUTO_DIS (0x0 << 0) 70 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_SUPERVISED_SLEEP (0x1 << 0) 71 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_SUPERVISED_WAKEUP (0x2 << 0) 72 #define USBHOST_CM_CLKSTCTRL_CLKSTCTRL_USBHOST_AUTO_EN (0x3 << 0) 73 74 ioport32_t clkstst; 75 #define USBHOST_CM_CLKSTCTRL_CLKSTST_CLKACTIVITY_USBHOST (1 << 0) 76 } usbhost_cm_regs_t; 77 78 #endif 79 /** 80 * @} 37 81 */ 38 82 39 #ifndef KERN_arm32_testarm_H_40 #define KERN_arm32_testarm_H_41 42 #include <arch/machine_func.h>43 44 /** Size of GXemul IRQ number range (starting from 0) */45 #define GXEMUL_IRQ_COUNT 3246 #define GXEMUL_KBD_IRQ 247 #define GXEMUL_TIMER_IRQ 448 49 /** Timer frequency */50 #define GXEMUL_TIMER_FREQ 10051 52 #define GXEMUL_KBD_ADDRESS 0x1000000053 #define GXEMUL_MP_ADDRESS 0x1100000054 #define GXEMUL_FB_ADDRESS 0x1200000055 #define GXEMUL_RTC_ADDRESS 0x1500000056 #define GXEMUL_IRQC_ADDRESS 0x1600000057 58 extern void *gxemul_kbd;59 extern void *gxemul_rtc;60 extern void *gxemul_irqc;61 62 #define GXEMUL_HALT_OFFSET 0x01063 #define GXEMUL_RTC_FREQ_OFFSET 0x10064 #define GXEMUL_MP_MEMSIZE_OFFSET 0x09065 #define GXEMUL_RTC_ACK_OFFSET 0x11066 67 extern void gxemul_init(void);68 extern void gxemul_output_init(void);69 extern void gxemul_input_init(void);70 extern void gxemul_timer_irq_start(void);71 extern void gxemul_cpu_halt(void);72 extern void gxemul_irq_exception(unsigned int, istate_t *);73 extern void gxemul_get_memory_extents(uintptr_t *, size_t *);74 extern void gxemul_frame_init(void);75 extern size_t gxemul_get_irq_count(void);76 extern const char *gxemul_get_platform_name(void);77 78 extern struct arm_machine_ops gxemul_machine_ops;79 80 #endif81 82 /** @}83 */
Note:
See TracChangeset
for help on using the changeset viewer.