aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPankaj Dubey <pankaj.dubey@samsung.com>2014-11-21 10:09:25 -0500
committerKukjin Kim <kgene.kim@samsung.com>2014-11-21 10:09:25 -0500
commitedeeec85f7145fe8f2a5ffe250a8ee6b1fe4ab28 (patch)
tree206b5530d3798ba6f89a81b9cb2b83866b283c9b /drivers
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
serial: samsung: Fix serial config dependencies for exynos7
Exynos7 has a similar serial controller to that present in older Samsung SoCs. To re-use the existing serial driver on Exynos7 we need to have SERIAL_SAMSUNG_UARTS_4 and SERIAL_SAMSUNG_UARTS selected. This is not possible because these symbols are dependent on PLAT_SAMSUNG which is not present for the ARMv8 based exynos7. Change the dependency of these symbols from PLAT_SAMSUNG to the serial driver thus making it available on exynos7. As the existing platform specific code making use of these symbols is related to uart driver this change in dependency should not cause any issues. Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com> Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com> Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tty/serial/Kconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
index 649b784081c7..98f8bcaf3e7e 100644
--- a/drivers/tty/serial/Kconfig
+++ b/drivers/tty/serial/Kconfig
@@ -249,14 +249,14 @@ config SERIAL_SAMSUNG
249 249
250config SERIAL_SAMSUNG_UARTS_4 250config SERIAL_SAMSUNG_UARTS_4
251 bool 251 bool
252 depends on PLAT_SAMSUNG 252 depends on SERIAL_SAMSUNG
253 default y if !(CPU_S3C2410 || CPU_S3C2412 || CPU_S3C2440 || CPU_S3C2442) 253 default y if !(CPU_S3C2410 || CPU_S3C2412 || CPU_S3C2440 || CPU_S3C2442)
254 help 254 help
255 Internal node for the common case of 4 Samsung compatible UARTs 255 Internal node for the common case of 4 Samsung compatible UARTs
256 256
257config SERIAL_SAMSUNG_UARTS 257config SERIAL_SAMSUNG_UARTS
258 int 258 int
259 depends on PLAT_SAMSUNG 259 depends on SERIAL_SAMSUNG
260 default 4 if SERIAL_SAMSUNG_UARTS_4 || CPU_S3C2416 260 default 4 if SERIAL_SAMSUNG_UARTS_4 || CPU_S3C2416
261 default 3 261 default 3
262 help 262 help