From patchwork Thu Jun 25 20:13:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Faruk_K=C4=B1lavuz?= X-Patchwork-Id: 1317269 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=hotmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=hotmail.com header.i=@hotmail.com header.a=rsa-sha256 header.s=selector1 header.b=vHpkpODj; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49tH6L3KPKz9sQt for ; Fri, 26 Jun 2020 09:58:48 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8BA8681F10; Fri, 26 Jun 2020 01:58:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=hotmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=hotmail.com header.i=@hotmail.com header.b="vHpkpODj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7FC8981CA6; Thu, 25 Jun 2020 22:13:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,FREEMAIL_FROM,HTML_MESSAGE, SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05olkn20813.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1b::813]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AF58381CA6 for ; Thu, 25 Jun 2020 22:13:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=hotmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=farukkilavuz@hotmail.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YUjK0LezJUekSEhhfpd35F7/Q6pYK8SBW5GxON7TZ+WUx1iKImVyRKqqzfKEBA9NAtDl9W2uBgN6YvVYT5RCtCN5cXKRSto5wMoD1w0KnYB8Vyxfu5UADjo26+T9Q2BLQ/iEcdhQaLQQ+JWn0EM77WdA54V2jY/t8Oh9r3Sws8tBwdWiQZrrnzUtGneAWMuO+8agRRTr4gLCLTR7QisvDvPZZdA3CPNLNpvupSRufYO3eGjpPZvU1Yw5zSrvGJJ4K6n+uRWvT1A/3CZve7HLpvBme5NWIKB/Re8WCVJl1i8vWxEBsBK0Wvl5skEvUxGRrkrMXw+uTbYSbGxPAwgucQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5sdOCUZj1AvCF2mlcV9Q3cv2JkOsszeiZpbZpGrpegk=; b=JRPDaFWjz0nRoiczS3JUa8s5Ac7pH60HmKuS536V9ajv+sXuO89WVfkNL+7fiNM7Ye8gGKwaSaP0TOt+z6z8r8YLiy/gWU5w+qGqvVzrQ3+sZ4XdG/kkJ9PmKmiuyJsXR4zyl9yjC9zD/w7Lf9Q+gOZ6gbsU7TKmyZMaZfkhlUiXuF4u2brpkHBSSGHguJzL4Ak65ovR8d1D5WstL8m7z7CrPXf/KgxyUQGDCw8JS/knsNh5V6xcH7yAMlNKCAX6S0hUulK1dmNS4GBIG7HTknnqEnFiVXwRiPlpNoxaI4DY+jrFEBJh3X80WqCdxKRNOnIExYqtOIXIOBA4cOj9+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5sdOCUZj1AvCF2mlcV9Q3cv2JkOsszeiZpbZpGrpegk=; b=vHpkpODjMejBl5RxvVJ4ogzsdXQuCIcwvWfKIu1V8ILDpxrtiLH+pAgh9zU//Bo7phOW7zZUXlc87JTmbai3hhWRzLEODRthKwjMcI3s1BNHEp68RSxFXei5Lms/pw0fWh4kITnBCgWiMcO4HLlBNByUB/tW5w6paBOVZmIeoWMA+8IjRKj/pjSXPyypbd0uSANsM/Jd2KsbrtNcP2j1RxUo/nGiVtQKNTNNhr+LjtUsgL3+j3SKDo4XfrgeefOYn3diZTsMcvrYf5yKp/S6mB6SFzpl8hoQTw7/QnHokdW6XSHSnJwDhSn5inIDbED4zfMY7gLuUgHxoECbRBcbVA== Received: from DB8EUR05FT032.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::4c) by DB8EUR05HT178.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::354) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20; Thu, 25 Jun 2020 20:13:08 +0000 Received: from AM0PR01MB5985.eurprd01.prod.exchangelabs.com (2a01:111:e400:fc0f::52) by DB8EUR05FT032.mail.protection.outlook.com (2a01:111:e400:fc0f::240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20 via Frontend Transport; Thu, 25 Jun 2020 20:13:08 +0000 Received: from AM0PR01MB5985.eurprd01.prod.exchangelabs.com ([fe80::58da:d5d0:f482:6b8a]) by AM0PR01MB5985.eurprd01.prod.exchangelabs.com ([fe80::58da:d5d0:f482:6b8a%5]) with mapi id 15.20.3131.021; Thu, 25 Jun 2020 20:13:08 +0000 From: =?iso-8859-9?q?Faruk_K=FDlavuz?= To: "u-boot@lists.denx.de" Subject: microSD Breakout Port Thread-Topic: microSD Breakout Port Thread-Index: AQHWSyj4bGYLDD/deUmb1SBa1VSGSw== Date: Thu, 25 Jun 2020 20:13:08 +0000 Message-ID: Accept-Language: tr-TR, en-US Content-Language: tr-TR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:B5808EAC1F8D5B6D667D2078D301E6A4FBEAAE24A54D564C1365CACB31FC3709; UpperCasedChecksum:FC2FB5D99B9103DB41329B4042F7A4ACA2E9FC870216BD8A26C96876EA1B7B67; SizeAsReceived:6680; Count:41 x-tmn: [WTaotYBwYlG5pBSZ9X3Frhz5NAAf2ecCi4UgNr7KkRo=] x-ms-publictraffictype: Email x-incomingheadercount: 41 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 8fd7a34a-d3fe-4e8a-8940-08d819442d8c x-ms-traffictypediagnostic: DB8EUR05HT178: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1GQZaW4r/ooKaGAE/PCj5FQvrmFOUvB4bl3A3qCdIcvgwHiex73fe23Bl5idKFwvQytS/oebNW3Pfdx3S6UuvK0+u+71+QBCB6gBnShaHGEuUIwagN4nP5TZUKU0QLFL/Fa7iAEtwfqDWoYhoa3tKDRWmTF+waocmBsRLlweC8A4vVGDkZoIYhIMy496jIKU4bC+Jc/0Gt4Lv9UazMz7pQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR01MB5985.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFTY:; SFS:; DIR:OUT; SFP:1901; x-ms-exchange-antispam-messagedata: LzvBYLWGOYAExdfQXCAT7+rf1GM0vDvtn30dFhTqvptemkaXLYWI0ARWvymY3zvK/5XrFb7znvkv8+CCL7UpGdKoIvDf91Q6AWQvT+wk1a163iCuoLBPd68mHfJkQr9Q8SK6/na35xpemQqTSec6fA== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: DB8EUR05FT032.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 8fd7a34a-d3fe-4e8a-8940-08d819442d8c X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jun 2020 20:13:08.4551 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8EUR05HT178 X-Mailman-Approved-At: Fri, 26 Jun 2020 01:58:35 +0200 X-Content-Filtered-By: Mailman/MimeDel 2.1.30rc1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean Hello This is my first mail. I tried running uart-0 with microsd breakout method. I have added the following codes to open the F port. Should I send this code as a u-boot patch? Thanks diff --git a/arch/arm/include/asm/arch-sunxi/gpio.h b/arch/arm/include/asm/arch-sunxi/gpio.h index 40a3f845d0..9140b35450 100644 --- a/arch/arm/include/asm/arch-sunxi/gpio.h +++ b/arch/arm/include/asm/arch-sunxi/gpio.h @@ -181,6 +181,7 @@ enum sunxi_gpio_number { #define SUNXI_GPF_SDC0 2 #define SUNXI_GPF_UART0 4 #define SUN8I_GPF_UART0 3 +#define SUN50I_GPF_UART0 3 #define SUN4I_GPG_SDC1 4 #define SUN5I_GPG_SDC1 2 diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c index b74eaf2a0e..019c9b9296 100644 --- a/arch/arm/mach-sunxi/board.c +++ b/arch/arm/mach-sunxi/board.c @@ -76,6 +76,9 @@ static int gpio_init(void) #if defined(CONFIG_MACH_SUN8I) && !defined(CONFIG_MACH_SUN8I_R40) sunxi_gpio_set_cfgpin(SUNXI_GPF(2), SUN8I_GPF_UART0); sunxi_gpio_set_cfgpin(SUNXI_GPF(4), SUN8I_GPF_UART0); +#elif defined(CONFIG_MACH_SUN50I) + sunxi_gpio_set_cfgpin(SUNXI_GPF(2), SUN50I_GPF_UART0); + sunxi_gpio_set_cfgpin(SUNXI_GPF(4), SUN50I_GPF_UART0); #else sunxi_gpio_set_cfgpin(SUNXI_GPF(2), SUNXI_GPF_UART0); sunxi_gpio_set_cfgpin(SUNXI_GPF(4), SUNXI_GPF_UART0);