summaryrefslogtreecommitdiff
path: root/drivers/timer/altera_timer.c
AgeCommit message (Collapse)Author
2015-12-01dm: timer: Support 64-bit counterBin Meng
There are timers with a 64-bit counter value but current timer uclass driver assumes a 32-bit one. Modify timer_get_count() to ask timer driver to always return a 64-bit counter value, and provide an inline helper function timer_conv_64() to handle the 32-bit/64-bit conversion automatically. Signed-off-by: Bin Meng <[email protected]> Acked-by: Simon Glass <[email protected]> Signed-off-by: Simon Glass <[email protected]>
2015-12-01timer: altera: Remove the codes to get clock frequencyBin Meng
Since we have timer uclass to get clock frequency for us, remove the custom version in the altera timer driver. Signed-off-by: Bin Meng <[email protected]> Acked-by: Thomas Chou <[email protected]> Acked-by: Simon Glass <[email protected]>
2015-11-18altera_timer: change ioremap to map_physmemThomas Chou
Change ioremap() to map_physmem(), as it is more used in u-boot. Signed-off-by: Thomas Chou <[email protected]> Reviewed-by: Marek Vasut <[email protected]>
2015-11-06timer: altera_timer: minor clean upThomas Chou
- Moved macro definitions to top - Remove the penultimate comma in of_match ids Signed-off-by: Thomas Chou <[email protected]> Reviewed-by: Jagan Teki <[email protected]>
2015-11-06timer: altera_timer: use BIT macroThomas Chou
Replace numerical bit shift with BIT macro in altera_timer :%s/(1 << nr)/BIT(nr)/g where nr = 0, 1, 2 .... 31 Signed-off-by: Thomas Chou <[email protected]> Reviewed-by: Jagan Teki <[email protected]>
2015-10-23nios2: convert altera timer to driver modelThomas Chou
Convert altera timer to driver model. Signed-off-by: Thomas Chou <[email protected]> Acked-by: Chin Liang See <[email protected]>