mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 23:47:24 +00:00
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sh
A single reset controller driver (part of the clock driver) fix for v2023.04 release.
This commit is contained in:
commit
e37be8484f
1 changed files with 6 additions and 4 deletions
|
@ -479,8 +479,9 @@ static int gen3_reset_assert(struct reset_ctl *reset_ctl)
|
|||
{
|
||||
struct udevice *cdev = (struct udevice *)dev_get_driver_data(reset_ctl->dev);
|
||||
struct gen3_clk_priv *priv = dev_get_priv(cdev);
|
||||
unsigned int reg = reset_ctl->id / 32;
|
||||
unsigned int bit = reset_ctl->id % 32;
|
||||
unsigned int packed_id = MOD_CLK_PACK(reset_ctl->id);
|
||||
unsigned int reg = packed_id / 32;
|
||||
unsigned int bit = packed_id % 32;
|
||||
u32 bitmask = BIT(bit);
|
||||
|
||||
writel(bitmask, priv->base + priv->info->reset_regs[reg]);
|
||||
|
@ -492,8 +493,9 @@ static int gen3_reset_deassert(struct reset_ctl *reset_ctl)
|
|||
{
|
||||
struct udevice *cdev = (struct udevice *)dev_get_driver_data(reset_ctl->dev);
|
||||
struct gen3_clk_priv *priv = dev_get_priv(cdev);
|
||||
unsigned int reg = reset_ctl->id / 32;
|
||||
unsigned int bit = reset_ctl->id % 32;
|
||||
unsigned int packed_id = MOD_CLK_PACK(reset_ctl->id);
|
||||
unsigned int reg = packed_id / 32;
|
||||
unsigned int bit = packed_id % 32;
|
||||
u32 bitmask = BIT(bit);
|
||||
|
||||
writel(bitmask, priv->base + priv->info->reset_clear_regs[reg]);
|
||||
|
|
Loading…
Reference in a new issue