mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 16:23:29 +07:00
1bf4b15b19
We are missing alwon ethernet clock for dm814x and this prevents us
from probing the CPSW with device tree only data. Looks like Ethernet
currently only works if it has been enabled in the bootloader.
Looks like relying on the bootloader clocks is not an issue with the
mainline kernel currently, but it will be an issue when configuring
CPSW Ethernet to probe with device tree data only as we will be managing
the clocks.
Fixes: 26ca2e9738
("clk: ti: dm814: add clkctrl clock data")
Cc: linux-clk@vger.kernel.org
Cc: Graeme Smecher <gsmecher@threespeedlogic.com>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Tero Kristo <t-kristo@ti.com>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
43 lines
1.7 KiB
C
43 lines
1.7 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright 2017 Texas Instruments, Inc.
|
|
*/
|
|
#ifndef __DT_BINDINGS_CLK_DM814_H
|
|
#define __DT_BINDINGS_CLK_DM814_H
|
|
|
|
#define DM814_CLKCTRL_OFFSET 0x0
|
|
#define DM814_CLKCTRL_INDEX(offset) ((offset) - DM814_CLKCTRL_OFFSET)
|
|
|
|
/* default clocks */
|
|
#define DM814_USB_OTG_HS_CLKCTRL DM814_CLKCTRL_INDEX(0x58)
|
|
|
|
/* alwon clocks */
|
|
#define DM814_UART1_CLKCTRL DM814_CLKCTRL_INDEX(0x150)
|
|
#define DM814_UART2_CLKCTRL DM814_CLKCTRL_INDEX(0x154)
|
|
#define DM814_UART3_CLKCTRL DM814_CLKCTRL_INDEX(0x158)
|
|
#define DM814_GPIO1_CLKCTRL DM814_CLKCTRL_INDEX(0x15c)
|
|
#define DM814_GPIO2_CLKCTRL DM814_CLKCTRL_INDEX(0x160)
|
|
#define DM814_I2C1_CLKCTRL DM814_CLKCTRL_INDEX(0x164)
|
|
#define DM814_I2C2_CLKCTRL DM814_CLKCTRL_INDEX(0x168)
|
|
#define DM814_WD_TIMER_CLKCTRL DM814_CLKCTRL_INDEX(0x18c)
|
|
#define DM814_MCSPI1_CLKCTRL DM814_CLKCTRL_INDEX(0x190)
|
|
#define DM814_GPMC_CLKCTRL DM814_CLKCTRL_INDEX(0x1d0)
|
|
#define DM814_CPGMAC0_CLKCTRL DM814_CLKCTRL_INDEX(0x1d4)
|
|
#define DM814_MPU_CLKCTRL DM814_CLKCTRL_INDEX(0x1dc)
|
|
#define DM814_RTC_CLKCTRL DM814_CLKCTRL_INDEX(0x1f0)
|
|
#define DM814_TPCC_CLKCTRL DM814_CLKCTRL_INDEX(0x1f4)
|
|
#define DM814_TPTC0_CLKCTRL DM814_CLKCTRL_INDEX(0x1f8)
|
|
#define DM814_TPTC1_CLKCTRL DM814_CLKCTRL_INDEX(0x1fc)
|
|
#define DM814_TPTC2_CLKCTRL DM814_CLKCTRL_INDEX(0x200)
|
|
#define DM814_TPTC3_CLKCTRL DM814_CLKCTRL_INDEX(0x204)
|
|
#define DM814_MMC1_CLKCTRL DM814_CLKCTRL_INDEX(0x21c)
|
|
#define DM814_MMC2_CLKCTRL DM814_CLKCTRL_INDEX(0x220)
|
|
#define DM814_MMC3_CLKCTRL DM814_CLKCTRL_INDEX(0x224)
|
|
|
|
/* alwon_ethernet clocks */
|
|
#define DM814_ETHERNET_CLKCTRL_OFFSET 0x1d4
|
|
#define DM814_ETHERNET_CLKCTRL_INDEX(offset) ((offset) - DM814_ETHERNET_CLKCTRL_OFFSET)
|
|
#define DM814_ETHERNET_CPGMAC0_CLKCTRL DM814_ETHERNET_CLKCTRL_INDEX(0x1d4)
|
|
|
|
#endif
|