From: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
To: Joel Stanley <joel@jms.id.au>,
openbmc@lists.ozlabs.org, Andrew Jeffery <andrew@aj.id.au>
Cc: "Cédric Le Goater" <clg@kaod.org>
Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc 09/11] clk: aspeed: Add HACE yclk to ast2600
Date: Tue, 13 Apr 2021 17:42:56 -0300 [thread overview]
Message-ID: <04ea5cd9-673a-16b8-72c2-27c19b8d9344@linux.vnet.ibm.com> (raw)
In-Reply-To: <20210413080755.73572-10-joel@jms.id.au>
On 4/13/2021 5:07 AM, Joel Stanley wrote:
> Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
> ---
> drivers/clk/aspeed/clk_ast2600.c | 22 ++++++++++++++++++++++
> 1 file changed, 22 insertions(+)
>
> diff --git a/drivers/clk/aspeed/clk_ast2600.c b/drivers/clk/aspeed/clk_ast2600.c
> index 4c00008a5dfd..ba9a0a0a9a5a 100644
> --- a/drivers/clk/aspeed/clk_ast2600.c
> +++ b/drivers/clk/aspeed/clk_ast2600.c
> @@ -1066,6 +1066,25 @@ static ulong ast2600_enable_usbbhclk(struct ast2600_scu *scu)
> return 0;
> }
>
> +/* also known as yclk */
> +static ulong ast2600_enable_haceclk(struct ast2600_scu *scu)
> +{
> + u32 reset_bit;
> + u32 clkstop_bit;
> +
> + reset_bit = BIT(ASPEED_RESET_HACE);
> + clkstop_bit = BIT(13);
> +
> + writel(reset_bit, &scu->sysreset_ctrl1);
> + udelay(100);
> + writel(clkstop_bit, &scu->clk_stop_clr_ctrl1);
> + mdelay(20);
> +
> + writel(reset_bit, &scu->sysreset_clr_ctrl1);
> +
> + return 0;
> +}
> +
> static int ast2600_clk_enable(struct clk *clk)
> {
> struct ast2600_clk_priv *priv = dev_get_priv(clk->dev);
> @@ -1104,6 +1123,9 @@ static int ast2600_clk_enable(struct clk *clk)
> case ASPEED_CLK_GATE_USBPORT2CLK:
> ast2600_enable_usbbhclk(priv->scu);
> break;
> + case ASPEED_CLK_GATE_YCLK:
> + ast2600_enable_haceclk(priv->scu);
> + break;
> default:
> pr_debug("can't enable clk \n");
> return -ENOENT;
>
--
Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
next prev parent reply other threads:[~2021-04-13 20:43 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-13 8:07 [PATCH u-boot v2019.04-aspeed-openbmc 00/11] Use HACE to Joel Stanley
2021-04-13 8:07 ` [PATCH u-boot v2019.04-aspeed-openbmc 01/11] aspeed: Build secboot only when enabled Joel Stanley
2021-04-13 12:28 ` Klaus Heinrich Kiwi
2021-04-13 8:07 ` [PATCH u-boot v2019.04-aspeed-openbmc 02/11] ast2600: Specify boot order Joel Stanley
2021-04-14 11:17 ` Klaus Heinrich Kiwi
2021-04-13 8:07 ` [PATCH u-boot v2019.04-aspeed-openbmc 03/11] ast2600: Configure emmc boot options Joel Stanley
2021-04-13 8:07 ` [PATCH u-boot v2019.04-aspeed-openbmc 04/11] ast2600: spl: Support common boot devices Joel Stanley
2021-04-13 12:31 ` Klaus Heinrich Kiwi
2021-04-13 8:07 ` [PATCH u-boot v2019.04-aspeed-openbmc 05/11] config: ast2600: Enable common eMMC SPL loader Joel Stanley
2021-04-13 20:47 ` Klaus Heinrich Kiwi
2021-04-13 23:48 ` Joel Stanley
2021-04-13 8:07 ` [PATCH u-boot v2019.04-aspeed-openbmc 06/11] image-fit: use hashing infra Joel Stanley
2021-04-13 12:38 ` Klaus Heinrich Kiwi
2021-04-13 23:49 ` Joel Stanley
2021-04-13 8:07 ` [PATCH u-boot v2019.04-aspeed-openbmc 07/11] hash: Allow for SHA512 hardware implementations Joel Stanley
2021-04-13 12:51 ` Klaus Heinrich Kiwi
2021-04-13 8:07 ` [PATCH u-boot v2019.04-aspeed-openbmc 08/11] ast2600: Add HACE to device tree Joel Stanley
2021-04-13 20:43 ` Klaus Heinrich Kiwi
2021-04-13 8:07 ` [PATCH u-boot v2019.04-aspeed-openbmc 09/11] clk: aspeed: Add HACE yclk to ast2600 Joel Stanley
2021-04-13 20:42 ` Klaus Heinrich Kiwi [this message]
2021-04-13 8:07 ` [PATCH u-boot v2019.04-aspeed-openbmc 10/11] crypto: Add driver for Aspeed HACE Joel Stanley
2021-04-13 20:41 ` Klaus Heinrich Kiwi
2021-04-14 20:28 ` Klaus Heinrich Kiwi
2021-04-15 2:32 ` Joel Stanley
2021-04-15 21:37 ` Klaus Heinrich Kiwi
2021-04-19 12:49 ` Joel Stanley
2021-04-19 12:58 ` Klaus Heinrich Kiwi
2021-04-13 8:07 ` [PATCH u-boot v2019.04-aspeed-openbmc 11/11] configs/openbmc: Enable hw accelerated sha Joel Stanley
2021-04-13 20:42 ` Klaus Heinrich Kiwi
2021-04-14 21:03 ` Klaus Heinrich Kiwi
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=04ea5cd9-673a-16b8-72c2-27c19b8d9344@linux.vnet.ibm.com \
--to=klaus@linux.vnet.ibm.com \
--cc=andrew@aj.id.au \
--cc=clg@kaod.org \
--cc=joel@jms.id.au \
--cc=openbmc@lists.ozlabs.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).