From: Lokesh Vutla <a0131933@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/6] drivers: serial: serial_omap: populate default clock frequency when not found in dt
Date: Mon, 28 Sep 2015 16:21:54 +0530 [thread overview]
Message-ID: <56091BCA.5070500@ti.com> (raw)
In-Reply-To: <1443437272-1939-2-git-send-email-mugunthanvnm@ti.com>
On Monday 28 September 2015 04:17 PM, Mugunthan V N wrote:
> In some platforms like am437x, serial node is not populated with
> clock-frequency node. So in that case have a default clock-clock
> frequency.
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Thanks and regards,
Lokesh
>
> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
> ---
> drivers/serial/serial_omap.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/serial/serial_omap.c b/drivers/serial/serial_omap.c
> index e8d544f..9709444 100644
> --- a/drivers/serial/serial_omap.c
> +++ b/drivers/serial/serial_omap.c
> @@ -12,6 +12,8 @@
>
> DECLARE_GLOBAL_DATA_PTR;
>
> +#define DEFAULT_CLK_SPEED 48000000 /* 48Mhz */
> +
> #if CONFIG_IS_ENABLED(OF_CONTROL)
> static const struct udevice_id omap_serial_ids[] = {
> { .compatible = "ti,omap3-uart" },
> @@ -28,7 +30,7 @@ static int omap_serial_ofdata_to_platdata(struct udevice *dev)
> if (ret)
> return ret;
> plat->clock = fdtdec_get_int(gd->fdt_blob, dev->of_offset,
> - "clock-frequency", -1);
> + "clock-frequency", DEFAULT_CLK_SPEED);
> plat->reg_shift = 2;
>
> return 0;
>
next prev parent reply other threads:[~2015-09-28 10:51 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-28 10:47 [U-Boot] [PATCH 0/6] device model bringup of am437x platform on gp-evm and sk-evm Mugunthan V N
2015-09-28 10:47 ` [U-Boot] [PATCH 1/6] drivers: serial: serial_omap: populate default clock frequency when not found in dt Mugunthan V N
2015-09-28 10:51 ` Lokesh Vutla [this message]
2015-10-22 21:23 ` [U-Boot] [U-Boot, " Tom Rini
2015-09-28 10:47 ` [U-Boot] [PATCH 2/6] drivers: serial: serial_omap: add comaptibles for all ti platforms Mugunthan V N
2015-09-28 10:52 ` Lokesh Vutla
2015-10-22 21:23 ` [U-Boot] [U-Boot, " Tom Rini
2015-09-28 10:47 ` [U-Boot] [PATCH 3/6] am43xx_evm.h: : switch to CONFIG_OMAP_SERIAL for non-SPL DM_SERIAL Mugunthan V N
2015-09-28 10:55 ` Lokesh Vutla
2015-09-28 11:07 ` Mugunthan V N
2015-10-22 21:23 ` [U-Boot] [U-Boot, " Tom Rini
2015-09-28 10:47 ` [U-Boot] [PATCH 4/6] am43xx_evm: mmc: do not define DM_MMC for spl Mugunthan V N
2015-10-22 21:23 ` [U-Boot] [U-Boot, " Tom Rini
2015-09-28 10:47 ` [U-Boot] [PATCH 5/6] am437x: Add am437x_gp_evm_defconfig using CONFIG_DM Mugunthan V N
2015-09-28 11:08 ` Lokesh Vutla
2015-10-22 21:23 ` [U-Boot] [U-Boot, " Tom Rini
2015-09-28 10:47 ` [U-Boot] [PATCH 6/6] am437x: Add am437x_sk_evm_defconfig " Mugunthan V N
2015-09-28 11:08 ` Lokesh Vutla
2015-10-22 21:23 ` [U-Boot] [U-Boot, " Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56091BCA.5070500@ti.com \
--to=a0131933@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.