From patchwork Fri Aug 4 13:18:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrice CHOTARD X-Patchwork-Id: 797802 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xP6xL2Z2sz9sNc for ; Fri, 4 Aug 2017 23:20:38 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 1D9EEC21F1C; Fri, 4 Aug 2017 13:19:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 35518C21EA7; Fri, 4 Aug 2017 13:19:03 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 219C9C21C72; Fri, 4 Aug 2017 13:18:59 +0000 (UTC) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [62.209.51.94]) by lists.denx.de (Postfix) with ESMTPS id D3B1FC21D64 for ; Fri, 4 Aug 2017 13:18:58 +0000 (UTC) Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v74DIv9V024637; Fri, 4 Aug 2017 15:18:58 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-.pphosted.com with ESMTP id 2c4qe18tu6-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 04 Aug 2017 15:18:57 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 87F1331; Fri, 4 Aug 2017 13:18:57 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag6node3.st.com [10.75.127.18]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 74BD31506; Fri, 4 Aug 2017 13:18:57 +0000 (GMT) Received: from localhost (10.75.127.47) by SFHDAG6NODE3.st.com (10.75.127.18) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Fri, 4 Aug 2017 15:18:56 +0200 From: To: , , , Date: Fri, 4 Aug 2017 15:18:33 +0200 Message-ID: <1501852726-9472-3-git-send-email-patrice.chotard@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501852726-9472-1-git-send-email-patrice.chotard@st.com> References: <1501852726-9472-1-git-send-email-patrice.chotard@st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SFHDAG6NODE3.st.com (10.75.127.18) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-08-04_07:, , signatures=0 Subject: [U-Boot] [PATCH 02/15] serial: stm32x7: add STM32H7 support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Patrice Chotard STM32F7 and STM32H7 shares the same UART block, add STM32H7 compatible string. Signed-off-by: Patrice Chotard --- drivers/serial/Kconfig | 7 ++++--- drivers/serial/serial_stm32x7.c | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 2582c95..cc6711a 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -511,10 +511,11 @@ config STI_ASC_SERIAL config STM32X7_SERIAL bool "STMicroelectronics STM32 SoCs on-chip UART" - depends on DM_SERIAL && STM32F7 + depends on DM_SERIAL && (STM32F7 || STM32H7) help - If you have a machine based on a STM32 F7 you can enable its - onboard serial ports, say Y to this option. If unsure, say N. + If you have a machine based on a STM32 F7 or H7 SoC you can + enable its onboard serial ports, say Y to this option. + If unsure, say N. config MPC8XX_CONS bool "Console driver for MPC8XX" diff --git a/drivers/serial/serial_stm32x7.c b/drivers/serial/serial_stm32x7.c index bf118a7..2f4eafa 100644 --- a/drivers/serial/serial_stm32x7.c +++ b/drivers/serial/serial_stm32x7.c @@ -112,6 +112,8 @@ static int stm32_serial_probe(struct udevice *dev) static const struct udevice_id stm32_serial_id[] = { {.compatible = "st,stm32f7-usart"}, {.compatible = "st,stm32f7-uart"}, + {.compatible = "st,stm32h7-usart"}, + {.compatible = "st,stm32h7-uart"}, {} };