|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2] drivers: char: omap-uart: provide a default clock frequency
Hi, On 20/08/2024 10:00, Michal Orzel wrote: On 20/08/2024 10:22, Amneesh Singh wrote:Quite a few TI K3 devices do not have clock-frequency specified in their respective UART nodes. However hard-coding the frequency is not a solution as the function clock input can differ between SoCs. So, use a default frequency of 48MHz if the device tree does not specify one.I'd mention that this is same as LinuxSigned-off-by: Amneesh Singh <a-singh21@xxxxxx> --- xen/drivers/char/omap-uart.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- v1: https://lore.kernel.org/all/20240719113313.145587-1-a-singh21@xxxxxx/T/ v1 -> v2 - Ditch adding a dtuart option - Use a default value instead This default is the same one as found in the 8250_omap driver of the linux tree. Already tested with Xen. diff --git a/xen/drivers/char/omap-uart.c b/xen/drivers/char/omap-uart.c index 1079198..9d3d39c 100644 --- a/xen/drivers/char/omap-uart.c +++ b/xen/drivers/char/omap-uart.c @@ -48,6 +48,9 @@ /* System configuration register */ #define UART_OMAP_SYSC_DEF_CONF 0x0d /* autoidle mode, wakeup is enabled */ +/* default clock frequency in hz */ +#define UART_OMAP_DEFAULT_CLK_SPEED 48000000I think this should have U suffix to please MISRA 7.2 In general, we allow to exceed the limit only for the message. If there are arguments then ... ... this is the preferred approach. I can do the update on commit if an updated commit message is provided. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |