Changeset 942 for branches/reconfiguration/softs/drivers/xcu.c
- Timestamp:
- Feb 12, 2015, 2:59:20 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/softs/drivers/xcu.c
r887 r942 5 5 */ 6 6 #include <xcu.h> 7 #include <soclib/xicu.h>8 7 #include <io.h> 9 8 #include <hard_config.h> … … 12 11 #define XCUREG(func,idx) (SEG_XCU_BASE + (XICU_REG((func),(idx)) << 2)) 13 12 14 void xcu_set_ config(int x, int y, int idx, uint32_t val)13 void xcu_set_register(int x, int y, int func, int idx, uint32_t val) 15 14 { 16 iowrite32(CLUSTER_BASE(x,y) | XCUREG( XICU_CFG_REG, idx), val);15 iowrite32(CLUSTER_BASE(x,y) | XCUREG(func, idx), val); 17 16 } 18 17 19 uint32_t xcu_get_ config(int x, int y, int idx)18 uint32_t xcu_get_register(int x, int y, int func, int idx) 20 19 { 21 return ioread32(CLUSTER_BASE(x,y) | XCUREG( XICU_CFG_REG, idx));20 return ioread32(CLUSTER_BASE(x,y) | XCUREG(func, idx)); 22 21 } 23 22
Note: See TracChangeset
for help on using the changeset viewer.