| c95fec31 | 24-Feb-2016 |
Simon Glass <sjg@chromium.org> |
timer: Provide an early timer
In some cases the timer must be accessible before driver model is active. Examples include when using CONFIG_TRACE to trace U-Boot's execution before driver model is se
timer: Provide an early timer
In some cases the timer must be accessible before driver model is active. Examples include when using CONFIG_TRACE to trace U-Boot's execution before driver model is set up. Enable this option to use an early timer. These functions must be supported by your timer driver: timer_early_get_count() and timer_early_get_rate().
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| bb883f82 | 06-Jan-2016 |
Stephen Warren <swarren@nvidia.com> |
timer: sandbox: work without device tree
A default invocation of sandbox U-Boot apparently uses no device tree, which means that no timer is registers, which in turn means that the sleep shell comma
timer: sandbox: work without device tree
A default invocation of sandbox U-Boot apparently uses no device tree, which means that no timer is registers, which in turn means that the sleep shell command hangs.
Fix the sandbox timer code to register a device when there's no DT, just like e.g. the sandbox reset driver does. When there's no DT, the DM uclass can't initialize clock_rate from DT, so set a default value in the timer code instead.
Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| dadf3137 | 24-Dec-2015 |
Mugunthan V N <mugunthanvnm@ti.com> |
drivers: timer: omap_timer: add timer driver for omap devices based on dm
Adding a timer driver for omap devices based on driver model and device tree.
Signed-off-by: Mugunthan V N <mugunthanvnm@ti
drivers: timer: omap_timer: add timer driver for omap devices based on dm
Adding a timer driver for omap devices based on driver model and device tree.
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
show more ...
|
| a5d80113 | 24-Dec-2015 |
Mugunthan V N <mugunthanvnm@ti.com> |
dm: timer: uclass: Add flag to control sequence numbering
Like SPI and I2C, timer devices also have multiple chip instances. This patch adds the flag 'DM_UC_FLAG_SEQ_ALIAS' in timer_uclass driver to
dm: timer: uclass: Add flag to control sequence numbering
Like SPI and I2C, timer devices also have multiple chip instances. This patch adds the flag 'DM_UC_FLAG_SEQ_ALIAS' in timer_uclass driver to control device sequence numbering.
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 9ca07ebb | 24-Nov-2015 |
Bin Meng <bmeng.cn@gmail.com> |
dm: timer: Support 64-bit counter
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 6
dm: timer: Support 64-bit counter
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 <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 9e360a5c | 13-Nov-2015 |
Bin Meng <bmeng.cn@gmail.com> |
timer: altera: Remove the codes to get clock frequency
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 <bmeng
timer: altera: Remove the codes to get clock frequency
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 <bmeng.cn@gmail.com> Acked-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 579eb5a0 | 13-Nov-2015 |
Bin Meng <bmeng.cn@gmail.com> |
dm: timer: Implement pre_probe()
Every timer device needs to have a valid clock frequency and it can be specified in the device tree. Use pre_probe() to get this in the timer uclass driver.
Signed-
dm: timer: Implement pre_probe()
Every timer device needs to have a valid clock frequency and it can be specified in the device tree. Use pre_probe() to get this in the timer uclass driver.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 1235e5a5 | 31-Oct-2015 |
Thomas Chou <thomas@wytron.com.tw> |
timer: altera_timer: minor clean up
- Moved macro definitions to top - Remove the penultimate comma in of_match ids
Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Reviewed-by: Jagan Teki <jteki@
timer: altera_timer: minor clean up
- Moved macro definitions to top - Remove the penultimate comma in of_match ids
Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Reviewed-by: Jagan Teki <jteki@openedev.com>
show more ...
|