- Feb 08, 2017
-
-
Simon Glass authored
At present devices use a simple integer offset to record the device tree node associated with the device. In preparation for supporting a live device tree, which uses a node pointer instead, refactor existing code to access this field through an inline function. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Dec 27, 2016
-
-
Zakharov Vlad authored
Earlier timer driver needed a clock-frequency property in compatible device-tree nodes. Another way is to reference a clock via a phandle. So now timer_pre_probe tries to get clock by reference through device tree. In case it is impossible to get clock device through the reference, clock-frequency property of the timer node is read to provide backward compatibility. Signed-off-by:
Vlad Zakharov <vzakhar@synopsys.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Mar 14, 2016
-
-
Simon Glass authored
Use this new function in places where it simplifies the code. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Feb 26, 2016
-
-
Simon Glass authored
A few of the functions in the timer uclass are not marked with 'notrace'. Fix this so that tracing can be used with CONFIG_TRACE. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jan 21, 2016
-
-
Stephen Warren authored
If a timer has a zero clock_rate, get_tbclk() will return zero for it, which will cause tick_to_time() to perform a division-by-zero, which will crash U-Boot. Signed-off-by:
Stephen Warren <swarren@nvidia.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
Mugunthan V N authored
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>
-
Mugunthan V N authored
Adding timer init function in timer-uclass driver to create and initialize the timer device on platforms where u-boot,dm-pre-reloc is not used. Since there will be multiple timer devices in the system, adding a tick-timer node in chosen node to know which timer device to be used as tick timer in u-boot. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com>
-
- Dec 01, 2015
-
-
Bin Meng authored
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>
-
Bin Meng authored
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>
-
Bin Meng authored
This changes 'Timer' to 'timer' at several places. Signed-off-by:
Bin Meng <bmeng.cn@gmail.com> Acked-by:
Thomas Chou <thomas@wytron.com.tw> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Oct 22, 2015
-
-
Thomas Chou authored
Implement a Timer uclass to work with lib/time.c. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Acked-by:
Simon Glass <sjg@chromium.org>
-