Skip to content

Commit bf288bd

Browse files
LorenzoBianconibebarino
authored andcommitted
clk: en7523: Remove PCIe reset open drain configuration for EN7581
PCIe reset open drain configuration will be managed by pinctrl driver. Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Lorenzo Bianconi <[email protected]> Link: https://lore.kernel.org/r/43276af5f08a554b4ab2e52e8d437fff5c06a732.1719485847.git.lorenzo@kernel.org Signed-off-by: Stephen Boyd <[email protected]>
1 parent db7a4a1 commit bf288bd

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

drivers/clk/clk-en7523.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
#define REG_PCIE1_MEM_MASK 0x0c
3838
#define REG_PCIE2_MEM 0x10
3939
#define REG_PCIE2_MEM_MASK 0x14
40-
#define REG_PCIE_RESET_OPEN_DRAIN 0x018c
41-
#define REG_PCIE_RESET_OPEN_DRAIN_MASK GENMASK(2, 0)
4240
#define REG_NP_SCU_PCIC 0x88
4341
#define REG_NP_SCU_SSTR 0x9c
4442
#define REG_PCIE_XSI0_SEL_MASK GENMASK(14, 13)
@@ -85,8 +83,7 @@ struct en_clk_soc_data {
8583
const u16 *idx_map;
8684
u16 idx_map_nr;
8785
} reset;
88-
int (*hw_init)(struct platform_device *pdev, void __iomem *base,
89-
void __iomem *np_base);
86+
int (*hw_init)(struct platform_device *pdev, void __iomem *np_base);
9087
};
9188

9289
static const u32 gsw_base[] = { 400000000, 500000000 };
@@ -411,7 +408,6 @@ static void en7581_pci_disable(struct clk_hw *hw)
411408
}
412409

413410
static int en7581_clk_hw_init(struct platform_device *pdev,
414-
void __iomem *base,
415411
void __iomem *np_base)
416412
{
417413
void __iomem *pb_base;
@@ -434,10 +430,6 @@ static int en7581_clk_hw_init(struct platform_device *pdev,
434430
writel(0x28000000, pb_base + REG_PCIE2_MEM);
435431
writel(0xfc000000, pb_base + REG_PCIE2_MEM_MASK);
436432

437-
val = readl(base + REG_PCIE_RESET_OPEN_DRAIN);
438-
writel(val | REG_PCIE_RESET_OPEN_DRAIN_MASK,
439-
base + REG_PCIE_RESET_OPEN_DRAIN);
440-
441433
return 0;
442434
}
443435

@@ -577,7 +569,7 @@ static int en7523_clk_probe(struct platform_device *pdev)
577569

578570
soc_data = device_get_match_data(&pdev->dev);
579571
if (soc_data->hw_init) {
580-
r = soc_data->hw_init(pdev, base, np_base);
572+
r = soc_data->hw_init(pdev, np_base);
581573
if (r)
582574
return r;
583575
}

0 commit comments

Comments
 (0)