09021db1551dad9f43701a04e87b6b3bb8c0b272
[openwrt/staging/mkresin.git] / target / linux / layerscape / patches-5.4 / 701-net-0396-LF-183-ptp-depend-on-FSL_SDK_FMAN_RTC_API-for-ptp_qo.patch
1 From 9dad88f61f7400939a4076b641b6cd80904358cf Mon Sep 17 00:00:00 2001
2 From: Yangbo Lu <yangbo.lu@nxp.com>
3 Date: Thu, 5 Dec 2019 15:03:05 +0800
4 Subject: [PATCH] LF-183 ptp: depend on !FSL_SDK_FMAN_RTC_API for ptp_qoriq
5
6 When kernel uses SDK version DPAA/FMan drivers, user could
7 select to use ptp_qoriq driver, or FMan RTC driver to manage
8 1588 timer. But neither should not be enabled together.
9 This patch is to add dependency !FSL_SDK_FMAN_RTC_API for
10 ptp_qoriq driver.
11
12 Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
13 ---
14 drivers/ptp/Kconfig | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/drivers/ptp/Kconfig
18 +++ b/drivers/ptp/Kconfig
19 @@ -44,7 +44,7 @@ config PTP_1588_CLOCK_DTE
20
21 config PTP_1588_CLOCK_QORIQ
22 tristate "Freescale QorIQ 1588 timer as PTP clock"
23 - depends on GIANFAR || FSL_DPAA_ETH || FSL_SDK_DPAA_ETH || FSL_DPAA2_ETH || FSL_ENETC || FSL_ENETC_VF || COMPILE_TEST
24 + depends on !FSL_SDK_FMAN_RTC_API && (GIANFAR || FSL_DPAA_ETH || FSL_SDK_DPAA_ETH || FSL_DPAA2_ETH || FSL_ENETC || FSL_ENETC_VF) || COMPILE_TEST
25 depends on PTP_1588_CLOCK
26 default y
27 help