Changeset 1433ecda in mainline for uspace/drv/platform
- Timestamp:
- 2018-04-04T15:42:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/drv/platform
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/platform/amdm37x/main.c
r47b2d7e3 r1433ecda 132 132 133 133 static const amdm37x_fun_t amdm37x_funcs[] = { 134 {135 .name = "ohci",136 .id = "usb/host=ohci",137 .score = 90,138 .hw_resources = { .resources = ohci_res, .count = ARRAY_SIZE(ohci_res) }139 },140 {141 .name = "ehci",142 .id = "usb/host=ehci",143 .score = 90,144 .hw_resources = { .resources = ehci_res, .count = ARRAY_SIZE(ehci_res) }145 },146 {147 .name = "fb",148 .id = "amdm37x&dispc",149 .score = 90,150 .hw_resources = { .resources = disp_res, .count = ARRAY_SIZE(disp_res) }151 },134 { 135 .name = "ohci", 136 .id = "usb/host=ohci", 137 .score = 90, 138 .hw_resources = { .resources = ohci_res, .count = ARRAY_SIZE(ohci_res) } 139 }, 140 { 141 .name = "ehci", 142 .id = "usb/host=ehci", 143 .score = 90, 144 .hw_resources = { .resources = ehci_res, .count = ARRAY_SIZE(ehci_res) } 145 }, 146 { 147 .name = "fb", 148 .id = "amdm37x&dispc", 149 .score = 90, 150 .hw_resources = { .resources = disp_res, .count = ARRAY_SIZE(disp_res) } 151 }, 152 152 }; 153 153 … … 261 261 }; 262 262 263 static hw_resource_list_t * 263 static hw_resource_list_t *amdm37x_get_resources(ddf_fun_t *fnode) 264 264 { 265 265 amdm37x_fun_t *fun = ddf_fun_data_get(fnode); -
uspace/drv/platform/amdm37x/prm/clock_control.h
r47b2d7e3 r1433ecda 64 64 static inline unsigned sys_clk_freq_kHz(unsigned reg_val) 65 65 { 66 switch(reg_val) 67 { 68 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_12M: return 12000; 69 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_13M: return 13000; 70 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_19_2M: return 19200; 71 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_26M: return 26000; 72 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_38_4M: return 38400; 73 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_16_8M: return 16800; 66 switch (reg_val) { 67 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_12M: 68 return 12000; 69 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_13M: 70 return 13000; 71 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_19_2M: 72 return 19200; 73 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_26M: 74 return 26000; 75 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_38_4M: 76 return 38400; 77 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_16_8M: 78 return 16800; 74 79 } 75 80 return 0; -
uspace/drv/platform/mac/mac.c
r47b2d7e3 r1433ecda 235 235 236 236 static pio_window_ops_t fun_pio_window_ops = { 237 237 .get_pio_window = &mac_get_pio_window 238 238 }; 239 239 240 240 static hw_res_ops_t fun_hw_res_ops = { 241 241 .get_resource_list = &mac_get_resources, 242 242 .enable_interrupt = &mac_enable_interrupt 243 243 };
Note:
See TracChangeset
for help on using the changeset viewer.