Changeset f942226e in mainline
- Timestamp:
- 2013-02-14T23:02:56Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fe6593b7
- Parents:
- 2e55443
- Location:
- kernel/genarch/include/drivers/am335x
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/include/drivers/am335x/ctrl_module.h
r2e55443 rf942226e 49 49 am335x_ctrl_module_clock_freq_get(am335x_ctrl_module_t *base, unsigned *freq) 50 50 { 51 unsigned const control_status = *AM335x_CTRL_MODULE_REG_ADDR(base,51 unsigned const control_status = AM335x_CTRL_MODULE_REG_VALUE(base, 52 52 CONTROL_STATUS); 53 53 unsigned const sysboot1 = (control_status >> 22) & 0x03; -
kernel/genarch/include/drivers/am335x/ctrl_module_regs.h
r2e55443 rf942226e 39 39 #include <typedefs.h> 40 40 41 #define AM335x_CTRL_MODULE_REG_ ADDR(base, name) \42 ( (ioport32_t *)(AM335x_CTRL_MODULE_##name##_OFFSET + \43 ((ioport8_t *) base))) 41 #define AM335x_CTRL_MODULE_REG_VALUE(base, name) \ 42 (*((ioport32_t *)(AM335x_CTRL_MODULE_##name##_OFFSET + \ 43 ((ioport8_t *) base)))) 44 44 45 45 #define AM335x_CTRL_MODULE_CONTROL_REVISION_OFFSET 0x00
Note:
See TracChangeset
for help on using the changeset viewer.