From patchwork Wed Sep 13 16:00:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrice CHOTARD X-Patchwork-Id: 813496 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 3xsmc20163z9sBW for ; Thu, 14 Sep 2017 02:01:05 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id A8352C2249F; Wed, 13 Sep 2017 16:00:46 +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 824B3C2237E; Wed, 13 Sep 2017 16:00:22 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 06644C21EF4; Wed, 13 Sep 2017 16:00:19 +0000 (UTC) Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lists.denx.de (Postfix) with ESMTPS id B6194C21F0C for ; Wed, 13 Sep 2017 16:00:19 +0000 (UTC) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v8DFwf3A017936; Wed, 13 Sep 2017 18:00:18 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2cy58vgvun-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 13 Sep 2017 18:00:18 +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 53C4631; Wed, 13 Sep 2017 16:00:18 +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 322132B2F; Wed, 13 Sep 2017 16:00:18 +0000 (GMT) Received: from localhost (10.75.127.51) by SFHDAG6NODE3.st.com (10.75.127.18) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Wed, 13 Sep 2017 18:00:17 +0200 From: To: , , , Date: Wed, 13 Sep 2017 18:00:05 +0200 Message-ID: <1505318412-27121-3-git-send-email-patrice.chotard@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505318412-27121-1-git-send-email-patrice.chotard@st.com> References: <1505318412-27121-1-git-send-email-patrice.chotard@st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG7NODE2.st.com (10.75.127.20) To SFHDAG6NODE3.st.com (10.75.127.18) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-09-13_04:, , signatures=0 Subject: [U-Boot] [PATCH v2 2/9] 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 Reviewed-by: Simon Glass --- 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 aeed538..0775d95 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -524,10 +524,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"}, {} };