Date: Fri, 13 Jul 2018 19:54:22 +0000 (UTC) From: Marcin Wojtas <mw@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r336259 - in head/sys: arm/xilinx arm64/conf conf Message-ID: <201807131954.w6DJsM8q090278@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mw Date: Fri Jul 13 19:54:22 2018 New Revision: 336259 URL: https://svnweb.freebsd.org/changeset/base/336259 Log: Enable UART support for Xilinx Ultrascale+ SoCs Xilinx Ultrascale+ are based on Cortex-A53 and use existing UART driver (uart_dev_cdnc). Enable it in arm64 GENERIC config. Submitted by: Michal Stanek <mst@semihalf.com> Obtained from: Semihalf Modified: head/sys/arm/xilinx/uart_dev_cdnc.c head/sys/arm64/conf/GENERIC head/sys/conf/files.arm64 head/sys/conf/options.arm64 Modified: head/sys/arm/xilinx/uart_dev_cdnc.c ============================================================================== --- head/sys/arm/xilinx/uart_dev_cdnc.c Fri Jul 13 19:45:12 2018 (r336258) +++ head/sys/arm/xilinx/uart_dev_cdnc.c Fri Jul 13 19:54:22 2018 (r336259) @@ -711,6 +711,8 @@ static struct uart_class uart_cdnc_class = { static struct ofw_compat_data compat_data[] = { {"cadence,uart", (uintptr_t)&uart_cdnc_class}, + {"cdns,uart-r1p12", (uintptr_t)&uart_cdnc_class}, + {"xlnx,xuartps", (uintptr_t)&uart_cdnc_class}, {NULL, (uintptr_t)NULL}, }; UART_FDT_CLASS_AND_DEVICE(compat_data); Modified: head/sys/arm64/conf/GENERIC ============================================================================== --- head/sys/arm64/conf/GENERIC Fri Jul 13 19:45:12 2018 (r336258) +++ head/sys/arm64/conf/GENERIC Fri Jul 13 19:54:22 2018 (r336259) @@ -106,6 +106,7 @@ options SOC_CAVM_THUNDERX options SOC_HISI_HI6220 options SOC_BRCM_BCM2837 options SOC_ROCKCHIP_RK3328 +options SOC_XILINX_ZYNQ # Annapurna Alpine drivers device al_ccu # Alpine Cache Coherency Unit Modified: head/sys/conf/files.arm64 ============================================================================== --- head/sys/conf/files.arm64 Fri Jul 13 19:45:12 2018 (r336258) +++ head/sys/conf/files.arm64 Fri Jul 13 19:54:22 2018 (r336259) @@ -87,6 +87,7 @@ arm/broadcom/bcm2835/bcm2835_wdog.c optional soc_brcm arm/broadcom/bcm2835/bcm2836.c optional soc_brcm_bcm2837 fdt arm/broadcom/bcm2835/bcm283x_dwc_fdt.c optional dwcotg fdt soc_brcm_bcm2837 arm/mv/armada38x/armada38x_rtc.c optional mv_rtc fdt +arm/xilinx/uart_dev_cdnc.c optional uart soc_xilinx_zynq arm64/acpica/acpi_machdep.c optional acpi arm64/acpica/OsdEnvironment.c optional acpi arm64/acpica/acpi_wakeup.c optional acpi Modified: head/sys/conf/options.arm64 ============================================================================== --- head/sys/conf/options.arm64 Fri Jul 13 19:45:12 2018 (r336258) +++ head/sys/conf/options.arm64 Fri Jul 13 19:54:22 2018 (r336259) @@ -20,3 +20,4 @@ SOC_BRCM_BCM2837 opt_soc.h SOC_CAVM_THUNDERX opt_soc.h SOC_HISI_HI6220 opt_soc.h SOC_ROCKCHIP_RK3328 opt_soc.h +SOC_XILINX_ZYNQ opt_soc.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807131954.w6DJsM8q090278>