microblaze: timer: Prepare for device-tree initialization
Fix CONFIG_SYS_HZ usage in board config. Do not use hardcoded value. Use CONFIG_SYS_HZ instead. Separate static configuration to single block. Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
@@ -39,3 +39,6 @@ typedef volatile struct microblaze_timer_t {
|
||||
int loadreg; /* load register TLR */
|
||||
int counter; /* timer/counter register */
|
||||
} microblaze_timer_t;
|
||||
|
||||
int timer_init(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user