From patchwork Fri Jun 11 16:13:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491034 X-Patchwork-Delegate: lokeshvutla@ti.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; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=Rtq4lJcx; 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 4G1mBm2zg1z9sX5 for ; Sat, 12 Jun 2021 02:14:40 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 588E480EC5; Fri, 11 Jun 2021 18:14:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="Rtq4lJcx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0BF60803B9; Fri, 11 Jun 2021 18:14:26 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20604.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1b::604]) (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 ED899803B9 for ; Fri, 11 Jun 2021 18:14:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SA0iZ89QcDTc2iezapX7uKfToJpIHfJeEGTGfEpebohrpQAVya12TZYsueOSelB7rH9Cd+ByIpeqioXE2OvyMqsPut3UlDL03oFoBLXFaSNkC8/UtLJd9HgsMymwp9upOKO4GVk+ufbqlYDHIDODoPg1G342y8XnMau5vBx0h830T7E+P4di2LWAham07I3EpNkDc8whFxYyDj9HxvhlSQf4LrZTXVup8xsSVXai1I4pJ9J6qlYxoGx//ZWIciH0dc3YxfTF6LUdYXLI39NsaU6HDQ6QNz82g+D3Ora3RLN5d0wIIyktYz6/4k1DUU9Mdu4zRe8a5GGi8fhSLjVVlg== 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=KjwHD8qlFKOkPmWUKaJkcB+GYs3N5SeIVPXIAT8vuoY=; b=k+i8UzHsSKfrYZDAHUzuEx8FgjULfujcSl+o5CyzRuM48Qj4E96sv+ghyNEkSxu6AJQmSHqGhz3eUlXFGNpZSIXWZJ9ijtdLC67sCrKywaar10BRrtN4s7SDhrm660ylcGvu4HGzzu3u8WZT2sCfUtOZEd4tqezUq4GvpQaGomOvQiegQ5pEjIRjk/dks5tqQSlraqgDlBDdfNxuMb09qMl2UWynTp2+dUCDTsBopzcUSeVlkelEnMFpRvExu3ERnhji7UGObYh7kpwM+xS3BdjxPayYxofRoZQttdWvXs586D3BVgik70aUeYP8g4AAKgAUcHu3WX4Yh0x8Mncx1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.200) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KjwHD8qlFKOkPmWUKaJkcB+GYs3N5SeIVPXIAT8vuoY=; b=Rtq4lJcxyHgkTh2dBzTdxbrkAhMlGCNsO0qkw5h2BeSt2t+5to5ZIGbaXP4Q2891Mfq7/KPwRf2UTkUJRVQMpGVjKBY22hU3hdLRGFdIP15R2GKV4hFxW7xDFdJ07rifA+XG3ibX7OHfdIyr0hHPUH965VSAnlmt9ca2j820DcA= Received: from DB6P192CA0005.EURP192.PROD.OUTLOOK.COM (2603:10a6:4:b8::15) by HE1PR10MB1626.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:7:57::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.24; Fri, 11 Jun 2021 16:14:22 +0000 Received: from DB5EUR03FT032.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:b8:cafe::46) by DB6P192CA0005.outlook.office365.com (2603:10a6:4:b8::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.22 via Frontend Transport; Fri, 11 Jun 2021 16:14:21 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.200) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.200 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.200; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.200) by DB5EUR03FT032.mail.protection.outlook.com (10.152.20.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:21 +0000 Received: from FE-EXCAS2000.de.bosch.com (10.139.217.199) by eop.bosch-org.com (139.15.153.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:09 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by FE-EXCAS2000.de.bosch.com (10.139.217.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:09 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:07 +0200 From: To: , , CC: , , Subject: [PATCH v4 01/18] configs: am335x_guardian: Enable clock driver Date: Fri, 11 Jun 2021 16:13:33 +0000 Message-ID: <20210611161350.2141-2-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 24a653c1-4d11-409b-6339-08d92cf3f907 X-MS-TrafficTypeDiagnostic: HE1PR10MB1626: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1284; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dV+h6ki1aPbkjevPj4xyZhzDUY6WI2TiDfsT3L/BSD1g4jI9Xctc4YDTpHvqzjyoHn/qF99LwdWdLYeJXiCXGPaP2GzcJ7NHNm077BovvGs4k5NZAz6aXebq95/z6JAlDTz6R2N79mtrRWxt8pnlNyshYjk4QfsC0Hbe+ev7tyJsF0xMDTw67b6donsZVjQanJVfl1F963Xy18XNmOsVqdVTMd5Dm8mj73ouaF5ADop5o0luKqM6Nb11NFoguq76WavJv7hLAUt7JxZsc2KOibpwCPRD7MyBSSAVcmPXcSy41AOg3rGrTjQ3awF/48gYF2OSEAq5NelXuZFG0jWvFhwr+TulPjuMIFGmp1zSg4HYqm7NRCQ+ho6YXE8P+DPmMvFUWBav+Apox80JFOHjiwm9tSEblcCE5GrErEj2uL9ZH3N8L//qliemrygDDEPuCIfqUdzKw/rP2Xy9OTEi07gAUXSLinDypBGszlf9bYM9PAnzbozQnKHFs2vwt6aOKyImXbjySdXsvZJSx6uRElhhWeZS2IZIWPrO7y1ZlfjkLIjG5ZgWcB8zk+SmJ7ydzK3m6j5nrHluw6pMx94j1j+gRtrDkUFd0lYintHGvMVN05yqu2/3QaKyHCkNTwyzIH/+8EU495blLON80CzofAVbkuk0igPGAfTSuQVXARG1sWUcGrvcG1jhJnAQzxJb X-Forefront-Antispam-Report: CIP:139.15.153.200; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(498600001)(356005)(8936002)(81166007)(8676002)(6666004)(70206006)(47076005)(82310400003)(5660300002)(70586007)(86362001)(2876002)(83380400001)(336012)(4326008)(26005)(107886003)(110136005)(4744005)(54906003)(186003)(36860700001)(2616005)(16526019)(2906002)(1076003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:21.5242 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 24a653c1-4d11-409b-6339-08d92cf3f907 X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.200]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR10MB1626 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath Enable TI clock driver support for guardian board Signed-off-by: Gireesh Hiremath --- configs/am335x_guardian_defconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configs/am335x_guardian_defconfig b/configs/am335x_guardian_defconfig index d412311cec..791bbba26e 100644 --- a/configs/am335x_guardian_defconfig +++ b/configs/am335x_guardian_defconfig @@ -69,6 +69,13 @@ CONFIG_VERSION_VARIABLE=y CONFIG_BOOTP_SEND_HOSTNAME=y CONFIG_SPL_DM=y CONFIG_BOOTCOUNT_LIMIT=y +CONFIG_CLK=y +CONFIG_CLK_CCF=y +CONFIG_CLK_TI_AM3_DPLL=y +CONFIG_CLK_TI_CTRL=y +CONFIG_CLK_TI_DIVIDER=y +CONFIG_CLK_TI_GATE=y +CONFIG_CLK_TI_MUX=y CONFIG_LED=y CONFIG_LED_GPIO=y CONFIG_MISC=y From patchwork Fri Jun 11 16:13:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491036 X-Patchwork-Delegate: lokeshvutla@ti.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; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=KncivjlD; 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mBx4rKFz9sWD for ; Sat, 12 Jun 2021 02:14:49 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DE0F080C85; Fri, 11 Jun 2021 18:14:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="KncivjlD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 43B8380F28; Fri, 11 Jun 2021 18:14:31 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20630.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::630]) (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 54E66803B9 for ; Fri, 11 Jun 2021 18:14:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=km9BV7iJp3ghdC7CnIHRpGcKCYFmy3THubdMFVPnsrnH94m+n8pVJzjVcRR64Q1A0C6pZo5UfTaf7L182EdTZ42e7MhJFVt9IOe3bveAn2G8JRnQpBMcqJfzQ4kUufP6tKasA4KyxE5gJ1K9Vkrz25giVOe/u8n0nSL95gee+rM03QZOkt1tGJmlGMhaZePFdQPJL3Md/LJd1ZkJapmaFnMBVTlqzdnkDsdprffoGqJGmmSxerdyzbCrQr6Q1bAf04dG9ejMf9p+5mqkf5GNEuscrnLxW+mGijqWLyoI2WPb8pRY75mC0fw/sX/5GEwQV5oy6nqwJLBdTBNY57JtLA== 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=vSUICgS6q37SGUU4yTOAFa1dF7AdG2RNdn1woEwd/t0=; b=WW6v8sU3PudqtWCMVni0bniV5q+ObryhfK43QMO/Cbv7YhC4fxBhoZumHU7NGjkhPwr/iEvsALNUORk7TUNtsd2JmzVtEgQXb9zleWDI6oZAtruP0LKEa9zWBwSD2KAQkwP/7LVeeNUKG946hFjnSVeGnwlRwAZjJERtwxlTH1KsgRJ+51pONkBM00TFfb4d3wfztO/BpsWuVO2YHk+3TxY8O1K2kyarxcV3lpgFclr58WEYIL190GYRiklfj+8zsnq3dsg7X1Alr5K1kImbQkAbUm1pvyz143636+mPJGXDSs+KINphRTNeh4rhz4ic+gRf5u372kq7GGNBsQ1iug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.203) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vSUICgS6q37SGUU4yTOAFa1dF7AdG2RNdn1woEwd/t0=; b=KncivjlDcmZkE4v7iu2DLDQFMoemHckphneT6Mq7efS48LwXoOtrOYiKIQgJA5/RIByk34S5ACLk2W/AWX/vPoMJfQWK908Pi8rZRf5r3fVY5MTxu0y39gCmMuYxsnIuCqGZM5gznMmStouZBrNEoN6gVOjU4jWh4E+3CWFnrTI= Received: from AM7PR02CA0028.eurprd02.prod.outlook.com (2603:10a6:20b:100::38) by DB7PR10MB2396.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:41::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21; Fri, 11 Jun 2021 16:14:26 +0000 Received: from VE1EUR03FT030.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:100:cafe::f9) by AM7PR02CA0028.outlook.office365.com (2603:10a6:20b:100::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.20 via Frontend Transport; Fri, 11 Jun 2021 16:14:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.203) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.203 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.203; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.203) by VE1EUR03FT030.mail.protection.outlook.com (10.152.18.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:25 +0000 Received: from SI-EXCAS2000.de.bosch.com (10.139.217.201) by eop.bosch-org.com (139.15.153.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:12 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by SI-EXCAS2000.de.bosch.com (10.139.217.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:11 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:09 +0200 From: To: , , CC: , , Subject: [PATCH v4 02/18] am335x, guardian: mem: Add board dependent mem values Date: Fri, 11 Jun 2021 16:13:34 +0000 Message-ID: <20210611161350.2141-3-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b320ac1d-9e2f-43ac-e620-08d92cf3fb8e X-MS-TrafficTypeDiagnostic: DB7PR10MB2396: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jHWld4UxTr21QqWE4kJyuxkEFPJ3PVeUPcRsIUTQA3UPoGaVEhtdyPKRPYbshp90GVH/f6NJo8wYnHDvZbw0TrS+MhxYolZt9zNVbVWk+Q2ymwrYc4kX+BN0+OTArc0BmzXy6uRSF0mMjNZYgHzuzGGaPOa809wIUOAQeTwdkct0htYNEkxcUHU/Ax/07dVwqP3gJ8qPZE9BG+ycjID9aqwbqPthM1n8F9/sitGhAYIX3h1oJ0IV+8dDN++50EXZSgWufm5Ob8OXhRazYRmwRqLkKUGn4KrnRASaWtTAI2UJnrgAkZs+yr+9SmB19LjgCfNn/Nzlvcyh1StBQjLHZ9kqwT+mQ/m5/1eJTHRt37H3wC4H2Brcs7Ew3pHj85RoFYl7BKvZ4PrYIB4I5K0H89hvZjnc5QwJ14OWa8dA4lIAvSWtMBTu6zjjJ9+RbMDTy8BD9QiT0WDf8e6PRfxUZ28DiR/KemC7PcsR3iUWk+VQTbKCC8lgouixW0uhzuXt4VSZ/med1Nk/LBe9ICcRIjrDkSslG8vF/+d0Yy+JNuuGRzP47BROqJPpNt57SAN65sflPSTk/i2kfTPv+d+JXMCXnyJkf2rAwl9bOlbUzKsJEZQyjEXfwCNtBK00xY/4mjqqBunhJccECeSCsA9yIbWPh3gsXC2Xjz/EDlNMbho+TqgW8ImkB0nHDnFki4/bedvNCnJtXw8TQLvU/m5UkwNdJYFcWmPDeP4o7WwgBFwrHzQs5MNqzZq8r1QNFlUjlURuKixpNK0Wmoy6g6MCBQybDNXXW0DR1dXDcabEq1slPzU+F9eEC0Sjo9lKLzLo X-Forefront-Antispam-Report: CIP:139.15.153.203; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(2876002)(356005)(107886003)(82310400003)(2906002)(5660300002)(1076003)(4326008)(83380400001)(47076005)(110136005)(36860700001)(8936002)(498600001)(86362001)(16526019)(186003)(26005)(6666004)(336012)(70586007)(2616005)(70206006)(8676002)(81166007)(54906003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:25.7667 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b320ac1d-9e2f-43ac-e620-08d92cf3fb8e X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.203]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT030.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR10MB2396 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Moses Christopher - Add mem-guardian.h derived from am33xx/mem.h * Add GPMC config values optimized for Bosch Guardian Board * NAND Chip used by Bosch Guardian Board is Micron MT29F4G08ABBFA Signed-off-by: Moses Christopher --- .../include/asm/arch-am33xx/mem-guardian.h | 63 +++++++++++++++++++ arch/arm/mach-omap2/am33xx/board.c | 4 ++ arch/arm/mach-omap2/mem-common.c | 4 ++ board/bosch/guardian/board.c | 2 +- 4 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 arch/arm/include/asm/arch-am33xx/mem-guardian.h diff --git a/arch/arm/include/asm/arch-am33xx/mem-guardian.h b/arch/arm/include/asm/arch-am33xx/mem-guardian.h new file mode 100644 index 0000000000..e864a0fd36 --- /dev/null +++ b/arch/arm/include/asm/arch-am33xx/mem-guardian.h @@ -0,0 +1,63 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * (C) Copyright 2006-2008 + * Texas Instruments, + * + * (C) Copyright 2020 + * Robert Bosch Power Tools GmbH + * + * Author + * Moses Christopher + * + * Copied from: + * arch/arm/include/asm/arch-am33xx/mem.h + * + * Initial Code from: + * Mansoor Ahamed + * Richard Woodruff + */ + +#ifndef _MEM_GUARDIAN_H_ +#define _MEM_GUARDIAN_H_ + +/* + * GPMC settings - + * Definitions is as per the following format + * #define _GPMC_CONFIG + * Where: + * PART is the part name e.g. M_NAND - Micron Nand Flash + * x is GPMC config registers from 1 to 7 (there will be 7 macros) + * Value is corresponding value + * + * For every valid PRCM configuration there should be only one definition of + * the same. + * + * The following values are optimized for improving the NAND Read speed + * They are applicable and tested for Bosch Guardian Board. + * Read Speeds rose from 1.5MiBs to over 7.6MiBs + * + * Currently valid part Names are (PART): + * M_NAND - Micron NAND + */ +#define GPMC_SIZE_256M 0x0 +#define GPMC_SIZE_128M 0x8 +#define GPMC_SIZE_64M 0xC +#define GPMC_SIZE_32M 0xE +#define GPMC_SIZE_16M 0xF + +#define M_NAND_GPMC_CONFIG1 0x00000800 +#define M_NAND_GPMC_CONFIG2 0x00030300 +#define M_NAND_GPMC_CONFIG3 0x00030300 +#define M_NAND_GPMC_CONFIG4 0x02000201 +#define M_NAND_GPMC_CONFIG5 0x00030303 +#define M_NAND_GPMC_CONFIG6 0x000000C0 +#define M_NAND_GPMC_CONFIG7 0x00000008 + +/* max number of GPMC Chip Selects */ +#define GPMC_MAX_CS 8 +/* max number of GPMC regs */ +#define GPMC_MAX_REG 7 + +#define DBG_MPDB 6 + +#endif /* endif _MEM_GUARDIAN_H_ */ diff --git a/arch/arm/mach-omap2/am33xx/board.c b/arch/arm/mach-omap2/am33xx/board.c index 62178f1e70..4bf0535e3c 100644 --- a/arch/arm/mach-omap2/am33xx/board.c +++ b/arch/arm/mach-omap2/am33xx/board.c @@ -23,7 +23,11 @@ #include #include #include +#if IS_ENABLED(CONFIG_TARGET_AM335X_GUARDIAN) +#include +#else #include +#endif #include #include #include diff --git a/arch/arm/mach-omap2/mem-common.c b/arch/arm/mach-omap2/mem-common.c index 50d5f3e9eb..2dcf0cf9c3 100644 --- a/arch/arm/mach-omap2/mem-common.c +++ b/arch/arm/mach-omap2/mem-common.c @@ -15,7 +15,11 @@ #include #include #include +#if IS_ENABLED(CONFIG_TARGET_AM335X_GUARDIAN) +#include +#else #include +#endif #include #include #include diff --git a/board/bosch/guardian/board.c b/board/bosch/guardian/board.c index 113838f8b7..9429454a74 100644 --- a/board/bosch/guardian/board.c +++ b/board/bosch/guardian/board.c @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include #include From patchwork Fri Jun 11 16:13:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491039 X-Patchwork-Delegate: lokeshvutla@ti.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=jSulIN7s; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mCg0CQDz9sWD for ; Sat, 12 Jun 2021 02:15:26 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 08F9A80EC6; Fri, 11 Jun 2021 18:14:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="jSulIN7s"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1F1DC80F27; Fri, 11 Jun 2021 18:14:37 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-ve1eur02on061a.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe06::61a]) (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 0107380F22 for ; Fri, 11 Jun 2021 18:14:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jSqXmST96ahWFQzW2quZaEaKto5zz3JykE3Uxqc6i9A9dkPnCH1Ul55PpAIRJ1DAGCrmV7NgvX9UL6RkrqddI8ihKuJ4abU5v9HKuDq9WTszcw0paRjBfIc614AxBFckzTK+eabtOR+XfbxMf2YfYrT2htzDywrRYv7XaxfXxHq0KObQSjrRp3LuIFJlVL+rBulSjlFst3xEu0vZuK8I9V2uBPCb9HzCZ91+JPrUi7vV5YIEavB6WqoWTancnmdIbWw69TMiwLc9nnBNAU0YOcznCkt9BVU/m2wJBAtohFcyDE91+4vuz+9MkZ213WrA2utonP2spcioe78MeAZUHg== 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=7KvUiFxcxoZ4WexUbDGzLTCmaXJP2JdKKc7wi9ywX/w=; b=ZCpxxPITFFElZTc7VEw1sU6W+GRE4GwVX/hXTuRQGzNOcNl5B7jyJbkenwNszxcL3rz3oMmTQQl+xWo4Tc5vDJwUh4DQyG2xyW06fWmCJgYpqvW8mtgeB3h5r5FgPebc0nINUxfVwzAOV85Heiz8GDiX/ayNDPJUyJJQLDJb23IXyo3VlUQtSAABQ0JaW1qBIp19f/JplwhJReoxe1ghZA+MFDEP/StVzQO4QBSj36VTiE4d/w3wSuTvLf15/wb0m1DhBDvaddrHJKzYx576RRyBbHqbF1spFoGu93n3tEZlGABG+T/gD/AXyL7xOtr9CU2eJyqcwgC1pThtXo6uOg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.201) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7KvUiFxcxoZ4WexUbDGzLTCmaXJP2JdKKc7wi9ywX/w=; b=jSulIN7svpcZe6LzmUwZqdBeUBUYMpD5ZEsjq4vrtezxe2dT4cXeQIu/JtpUvdq5J9k0jICGjD/Me4oX0oLJK+66NP/tgrNAtHOrcN3ZVdzYGtwdcPFmjjXKKfP88l65HMd//zBsew9hWWrbsASszBXrjhDSun1vYh5egqlZOqk= Received: from AM6P193CA0042.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:8e::19) by DBAPR10MB4010.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:1c8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.23; Fri, 11 Jun 2021 16:14:30 +0000 Received: from AM5EUR03FT034.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:8e:cafe::da) by AM6P193CA0042.outlook.office365.com (2603:10a6:209:8e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.20 via Frontend Transport; Fri, 11 Jun 2021 16:14:30 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.201) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.201 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.201; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.201) by AM5EUR03FT034.mail.protection.outlook.com (10.152.16.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:29 +0000 Received: from SI-EXCAS2001.de.bosch.com (10.139.217.202) by eop.bosch-org.com (139.15.153.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:14 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by SI-EXCAS2001.de.bosch.com (10.139.217.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:14 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:12 +0200 From: To: , , CC: , , Subject: [PATCH v4 03/18] configs: am335x_guardian: add ubi fastmap support Date: Fri, 11 Jun 2021 16:13:35 +0000 Message-ID: <20210611161350.2141-4-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dc403483-6f98-48e0-c605-08d92cf3fdc4 X-MS-TrafficTypeDiagnostic: DBAPR10MB4010: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:203; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PviD33UnUn6UqmPhf0Ql5/fdtXzETldHp+fuzpFlmIMlBe/RUe6q6XX6MGZSNBrj0R7E1AcepDKZMZ46nywAb6l027fLqxoct9tEKaP+a1+LIof0okDRn5bxjYiRoRy2hyfhpehKnblSgc4QLApAjyWT09NuG2xkesnfOG2rbVy5O2CQcL11fUT0cBsJ3AlAnl7R+22WL7MxKdzV9aZ8SwibWedAwVKABCJwXHAVmN0tWj60uGFDALQNWmf1zf07CBmk48KuGolMKj5ivDCR654ad/E8dlRcaUfnyk2Fqak1jD4pgrUawCKEsRJ5ZOFdZSXj3Qu/DFR8HOIVWPLlt+r3GO/oeLPeMd0qJa+VQuTAG+OY5eJMMza0Z5Xh6NqaQRlVAd6CXUq/tAs96k1lfiAu+bbbmEWVPyF4FFWQGaJH/yx85LLtL5Nm3Oc3iRouqTGXpQcoNxI+41iT0cNE+XILrePnUkdvPmGrIQ77SphNICXeKJMA/LUeOGLfxAU2h8MR3ZTQZtfuhFOD7KLMZdh7ZLcSMMaDT25P0KBTKvCEbq7FTH71N44x/lgwScxLJHwWDvjq+vGu9D3CVgNRWwGWrznUlCuZx3CEqHmHjcqFR2mJfLnuJqo71TT70NK8Buz39PeJjahcSCXb+pcM7+tZCg3aXpGR05EJPM8bDauBAGGvpHrYTRGa3KN2nvUd X-Forefront-Antispam-Report: CIP:139.15.153.201; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(2876002)(70586007)(70206006)(110136005)(86362001)(1076003)(186003)(16526019)(4326008)(5660300002)(6666004)(2616005)(4744005)(356005)(26005)(36860700001)(81166007)(82310400003)(8936002)(47076005)(498600001)(2906002)(54906003)(107886003)(336012)(8676002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:29.5052 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dc403483-6f98-48e0-c605-08d92cf3fdc4 X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.201]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT034.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR10MB4010 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath - Trigger fastmap automatically Signed-off-by: Gireesh Hiremath --- configs/am335x_guardian_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_guardian_defconfig b/configs/am335x_guardian_defconfig index 791bbba26e..a96cdf734c 100644 --- a/configs/am335x_guardian_defconfig +++ b/configs/am335x_guardian_defconfig @@ -87,6 +87,7 @@ CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y CONFIG_SYS_NAND_U_BOOT_OFFS=0x100000 CONFIG_SYS_NAND_U_BOOT_OFFS_REDUND=0x200000 CONFIG_MTD_UBI_FASTMAP=y +CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 CONFIG_PHYLIB=y CONFIG_DM_ETH=y CONFIG_PHY=y From patchwork Fri Jun 11 16:13:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491037 X-Patchwork-Delegate: lokeshvutla@ti.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; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=fSo0kFc1; 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mC91y8gz9sWD for ; Sat, 12 Jun 2021 02:15:01 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2E5F880F22; Fri, 11 Jun 2021 18:14:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="fSo0kFc1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 15AD280F30; Fri, 11 Jun 2021 18:14:33 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20605.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::605]) (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 B74EA80EC8 for ; Fri, 11 Jun 2021 18:14:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FW0V9FroNZk7rqVQM6j/jbfjT/kKEUs6xpzEbdEgpcj8fqPkLXVMptCxEVgWfVG4Qq7hVbVM0ujF7PCBfLBf/UipJiGEMYD9dFuLbmB5eyBAmCdpZ4Luf2lvr6Q8cnm52wiK1HY+s9BbVUWpbgjAw5417pBZJNSZwHTwic6nymhlbvvVFnwyZ49guVyu7aYU4fDjG/Von9z5UjFcRGrQ4CjHfcl9hljhylqpLY5KO1fRqsq9pVnZFWwZgCL/s/AT1D7Weq1cjCu+732EPMogV+ewsr6M8j/5wqLIZo1lqQiAptJnV/AuPySrHPJ8DOb+FblMj0+FhxcLPJinUIb6MQ== 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=835FPiBJeZZZeuuxAQbMSu315LvwInA6FmhFjjoY+tA=; b=XjU4BvimPug2ms3koKNsBZgXMiTh+aCArGkfxb4KgBRFDoGGhtCE9TY9FYyCyJg3i3n2KpMDz8E4S+uk0yuJISH8SA4UtZOOLlTsWUbsI1LyjSyJLELrY5sNGdtBYVm6DjmDU61F7xUoOvsndPvJawbJrpSsEZ/DQZS1ennzDJb4hkbKTa0PANQovAkld7qWH+qC2+ETZArHmqLlvT2ibQVHqyIVWIuNY2M4AiQrAT//jcwM7hG+BiFhHaZrvMiBXhQrKcFq8jQpSJISkfekyy0gbqzV2GLGCvCJhjyiJR2+0XAvTW0djWRd+5aHZitm6BgkJx9mNZuZZVChu1NNBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.200) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=835FPiBJeZZZeuuxAQbMSu315LvwInA6FmhFjjoY+tA=; b=fSo0kFc1iaqiKVmhrcpyltWZrE7e46nGsIJbqTsoDFtUjzyicfp4BJPeq5f4S4JEi02dS2pbgxH14mbGyuzKwNyuEgrZA1B5JjtnW4DvwKQOBUZlmeGVWx+IcwFNxPKAiFHX526D8pV1kyX13/Lz5rKy+vNf83OwuH05a+4HJxM= Received: from DU2PR04CA0283.eurprd04.prod.outlook.com (2603:10a6:10:28c::18) by AM5PR10MB1747.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:206:1d::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.23; Fri, 11 Jun 2021 16:14:28 +0000 Received: from DB5EUR03FT025.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:28c:cafe::a9) by DU2PR04CA0283.outlook.office365.com (2603:10a6:10:28c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.200) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.200 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.200; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.200) by DB5EUR03FT025.mail.protection.outlook.com (10.152.20.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:28 +0000 Received: from FE-EXCAS2000.de.bosch.com (10.139.217.199) by eop.bosch-org.com (139.15.153.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:17 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by FE-EXCAS2000.de.bosch.com (10.139.217.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:17 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:14 +0200 From: To: , , CC: , , Subject: [PATCH v4 04/18] am335x, guardian: set tftp_load_addr in environment Date: Fri, 11 Jun 2021 16:13:36 +0000 Message-ID: <20210611161350.2141-5-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a04efc63-c6e0-49ca-40c0-08d92cf3fd44 X-MS-TrafficTypeDiagnostic: AM5PR10MB1747: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PklBA5CQk3wOjv8XqyP6iwe7+w1RuuirAb2IyDK4vrcKyCzit1ov6B328E4bncpPBULUJpL8TR3MfsTPaQz+gLSVzr9g5GG2gDoDoqIRvY67lnn8O8b3mB77GrmYdDwnFgdXzePMn1+R6Glvmf2qSQwijP7SRoVB1h/OfAl/drhtwgQnOCEPJvpKjGB5yiXL9T0rTNwEbYI1D6vY5EXmKREFnV57syFjrHk3kTe14wo/x/Qf0lByV4621UeNB+hyomWZPdMzICF9jvU+BPc/RpyHEzbPhCfTtIDQTK9/WzhNBAO7l2KXl9SQAoK9eZfYmP8G4bumpLITUaxF5Z9JzAviFfMVBhvgHcPPf3M83FG8p+yAb9r7h2CPw6A7SNO4fj7nIN7beaJwU2QGgo8YTiAuAwtiRZzR0k0D6EO8cPnZi8cjUpve7H0qP1T4JMzYFNac9hCX0yq19ThcdqZm1DykVmxXDlTwoZZGb0f1wAoW+ntXROEPSA0DLqQo1VuInw4LEF/+g6mIAKBIErfiEfjVIZrb6u7kwGVv9B41+EybRG/64yymqbVvsJYGlt1i64i2w6CHXn81+DdACQOg/76I7glGPGzJ2ZijbeClsL4FuxdNW195ntlV6g3S/j6tDr4APgFJZ1TiB/+j5oRI5eYkX4MjvOAaxYC+fT2zjX3lOuS5wKO9kM9eIvTk8l3i X-Forefront-Antispam-Report: CIP:139.15.153.200; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(16526019)(81166007)(36860700001)(4326008)(5660300002)(1076003)(86362001)(356005)(26005)(2906002)(4744005)(186003)(47076005)(8936002)(2876002)(6666004)(70586007)(336012)(70206006)(54906003)(110136005)(82310400003)(2616005)(107886003)(498600001)(8676002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:28.6310 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a04efc63-c6e0-49ca-40c0-08d92cf3fd44 X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.200]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT025.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR10MB1747 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Moses Christopher Set tftp_load_addr to 0x82000000 in MEM_LAYOUT_ENV_SETTINGS Signed-off-by: Moses Christopher --- include/configs/am335x_guardian.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/am335x_guardian.h b/include/configs/am335x_guardian.h index c34c07a493..fe36e34c7d 100644 --- a/include/configs/am335x_guardian.h +++ b/include/configs/am335x_guardian.h @@ -29,6 +29,7 @@ #define MEM_LAYOUT_ENV_SETTINGS \ "scriptaddr=0x80000000\0" \ "pxefile_addr_r=0x80100000\0" \ + "tftp_load_addr=0x82000000\0" \ "kernel_addr_r=0x82000000\0" \ "fdt_addr_r=0x88000000\0" \ "ramdisk_addr_r=0x88080000\0" \ From patchwork Fri Jun 11 16:13:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491038 X-Patchwork-Delegate: lokeshvutla@ti.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=LdULyzkS; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mCQ0yjwz9sWD for ; Sat, 12 Jun 2021 02:15:14 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 91AD680F47; Fri, 11 Jun 2021 18:14:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="LdULyzkS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0B65080F32; Fri, 11 Jun 2021 18:14:35 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on0613.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0e::613]) (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 D20AD80F03 for ; Fri, 11 Jun 2021 18:14:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F9jTVNKuYqa6bdU3XmHdHFiyGg2b+skC8z00K1GbTZ8PEGwHwFTqiMfSCQQb3XOCUJjG+5pmC1kux4Tu00tuQ0KiQQy550RZoLJgUzCBR+hkhjCFBFOdiOOTPmNBD+WNRzAt+dbhrn67NVVp+DidQs8jKUpURZhNxVdkWmJRCVLTIEsa0o7sShckbF1yajIeWpdiIKQRdkY+w11vp1inrAICL6MQiiT4WJBWeplhrr1XW0j5+neA1XnVB7DaWFGCfAoXIbKuMG43e1B82zmc9snzN4k77zaFAPtUEdZ5vtecPV3fjtqoakDSMZEyQlGm/KweeeF3lnuXPUuxhSgi1A== 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=l4kIrR4/BDT5xqq5VF+d8vzveEJULYhqf7ZrPT9uphU=; b=kz9Oj+x3f4GuzDALTNOHEH01+s13gb33VfBzNwfNK6oY9ANEkMIVhLJ0t6zRbINAFV6Cv615O7jzLzbul9gmsu0YXgtCRNv/MT2UwbcEk15mOh+p0/wQi9YOYUIbiIi8pWhBxflnAVXIlT+axgjTMXVtTfJhT2reJOylBq3eU95CamdT24+GPNLhJnJLCP7LsYxxlvufguiScVREAcXwuxyusyASkQaPh+xm0kYjGbZrsTTcRkcZrWejrPOHJClDYRPOIRMTAAsq4GyUd66k1dREDZCFcNbAP6BTPTthylf0HoRxhHRYvlSLJ048mPVR98iUg3NnVmTd13dErpPkYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.200) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l4kIrR4/BDT5xqq5VF+d8vzveEJULYhqf7ZrPT9uphU=; b=LdULyzkSNB7TTu76/dI2+M7FxhpTi0wCOHLj3hmH/LSifaj570gGoU1lMglVxUsgo3eDNExhm5iJR0lt38IT/QjIYny9e14mqo1hiCZt6c/loR1fAEGmetlbGi9MyHqlBooC4qUvo/ZcHJFtes7hWACsApuorvnPmh/3SjTCeB8= Received: from DU2PR04CA0053.eurprd04.prod.outlook.com (2603:10a6:10:234::28) by AM8PR10MB4689.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:316::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.22; Fri, 11 Jun 2021 16:14:30 +0000 Received: from DB5EUR03FT008.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:234:cafe::72) by DU2PR04CA0053.outlook.office365.com (2603:10a6:10:234::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.200) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.200 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.200; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.200) by DB5EUR03FT008.mail.protection.outlook.com (10.152.20.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:29 +0000 Received: from SI-EXCAS2001.de.bosch.com (10.139.217.202) by eop.bosch-org.com (139.15.153.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:19 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by SI-EXCAS2001.de.bosch.com (10.139.217.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:19 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:17 +0200 From: To: , , CC: , , Subject: [PATCH v4 05/18] configs: am335x_guardian: add memtest configs Date: Fri, 11 Jun 2021 16:13:37 +0000 Message-ID: <20210611161350.2141-6-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 10c4a52a-cf06-4cf2-7871-08d92cf3fdfe X-MS-TrafficTypeDiagnostic: AM8PR10MB4689: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2449; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uGXnrtci9w0BsvM/9gaoqH6jSwIPVKDEOGc54avQijqtn4yNapRJxgE2f/MXwb6oDyfn0wrvJnhSAWdjAr0uW0LvcQEkxy98s7LkjKQttjvJJO75vWmqRQrwmfx4KDwLD7K19R+DKXABMW244X5oXuOIckkpc8KCuMhsRSzwFNktRlJf4P/Jll++QmehClj09p+e3ZpdClhXhaXvmk7CuxXbpzvKZyrBeGtDIOZ2LGUnUlpOL87AgmnuGvfoSJfozbMo5xELfaY1jjL0zZ49XQBJyR6H/Vq+WV8dCODbxTcJyKnkpFKiDNv18c061m0MobEFB+1lUMOeuBvLic+w9o1ggjSp8aul73j18mt9V6lkutTRTEqYtM+If9YEt0UG+3v50NpY8vMJXuYCZ96pvswwRhNiMriYSikC9wn2VXL3XmXzDiXzqnsmDG3EYx6p8mW98rPzdOEwXc7vMc07fJ5dwd2YcZUSBdo+t1zjiOOUJSUEGVBojlcPLpgCz/gDvsjsJRPo6hlI6SYCTMon/M4bK3nVk03bp8ZnuKeN4erWABUhOQyNxuECcpJ53/CvY5RIu1wcugj/H7NIJSjBEtz+bsvs8So61eLxvr3W5XOo41o9X3/MifH5HEN/BHOM4jhJ78NAWhABk/Dmifx28vRJa7PtTov5wUxNbeochaq+oatApbeGZCKjhEMNDCjx X-Forefront-Antispam-Report: CIP:139.15.153.200; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(2876002)(47076005)(36860700001)(5660300002)(107886003)(82310400003)(356005)(54906003)(498600001)(110136005)(2616005)(81166007)(70586007)(86362001)(336012)(70206006)(4744005)(8936002)(16526019)(2906002)(186003)(1076003)(8676002)(4326008)(6666004)(26005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:29.8540 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 10c4a52a-cf06-4cf2-7871-08d92cf3fdfe X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.200]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT008.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR10MB4689 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath - Add mtest, meminfo commands Signed-off-by: Gireesh Hiremath --- configs/am335x_guardian_defconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configs/am335x_guardian_defconfig b/configs/am335x_guardian_defconfig index a96cdf734c..000b198440 100644 --- a/configs/am335x_guardian_defconfig +++ b/configs/am335x_guardian_defconfig @@ -6,6 +6,8 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_ENV_SIZE=0x40000 CONFIG_ENV_OFFSET=0x500000 +CONFIG_SYS_MEMTEST_START=0x80000000 +CONFIG_SYS_MEMTEST_END=0x81000000 CONFIG_AM33XX=y CONFIG_TARGET_AM335X_GUARDIAN=y CONFIG_SPL_SERIAL_SUPPORT=y @@ -43,6 +45,8 @@ CONFIG_CMD_SPL=y CONFIG_CMD_SPL_NAND_OFS=0x0 CONFIG_CMD_ASKENV=y # CONFIG_CMD_FLASH is not set +CONFIG_CMD_MEMINFO=y +CONFIG_CMD_MEMTEST=y CONFIG_CMD_GPIO=y CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y From patchwork Fri Jun 11 16:13:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491041 X-Patchwork-Delegate: lokeshvutla@ti.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; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=N/dJCko2; 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mD96jKtz9sX5 for ; Sat, 12 Jun 2021 02:15:53 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 50FF282877; Fri, 11 Jun 2021 18:14:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="N/dJCko2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1D39C82845; Fri, 11 Jun 2021 18:14:43 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20603.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::603]) (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 780EF80F43 for ; Fri, 11 Jun 2021 18:14:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MiUxy+vNDSfYK9SEy694phqtkZGOD8U//yK2uuYXD0ylVkUysc0eNPcKqp7BURsXWvSzAXGR/ViT+Ss1QwsS61rVChqUsiRhipjpDVHDE1Wg62QqNoZuCvWVIh0Vsk/pGqRsxcj1v4LwiqV5Y6ADsEK1mck6zcqc8dUIMpf6efPbbZ1BJ6FvVzbVWKz/oVC/TJbJmLRCcPSBqDS2/hKBBVMUQCIRS9r2gcjpl3sQFrW96DudD8OwKSt4sYSK3COFiZB0AwzZ74vA0mmaepQNb8YFlfY+/dMWF+I6k1QaCisMytndtwakOcGxp3jAZ9GrAgd9VW7gYFU6KZq6Uqn+Bg== 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=e5c4R9s3GmjXnbnPZDddkeuQPQGG89jRv4rDeIYksbE=; b=oXgBZ0Tv6jHTqO/GepAg77pggnnGAGJSJBzouxIUaYpLQAXTPSyMReNGx0bBKJWNZWS0XsIGM4qZi9TFwKRzy9DZHxGdJP0vKkvYTBSwpob7CZSfkCAakDUy2zHvvnHgtjmRBBfr/lmm54xRJOuQS0kNW4KmV2ur0VL4QMLBrmbwYF6QlSc5ohKRRZhYKSA4EarShHdtWWuR9DmNZau1QTLtd6dCbWbZBplNMLvDmnVzBWF82gMHo9nTOly8m6/TrCrdVXOxkRP/Zf9hFLLuVdUXe80xH66aOwJZQv4vqs+s6nEwMhuINzvkyvZGG5tbvMpDFJ9bLIBDv6CwWv23QA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.201) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e5c4R9s3GmjXnbnPZDddkeuQPQGG89jRv4rDeIYksbE=; b=N/dJCko2DFmZ8VIPiZypl95uxJcVCvl0ERtUqSBFhTzIoJ0nDQEHSMtEMwZBuvwvKXbOv+J/GNsTD5v1m0GnZI+qlGTInyQtEWtJU0enMq3VlLsN/AQnxtSPJYP2fsBupQZ5lE8RS1pmE3eZ0D4j3zk22d0yPRoOH4q3p8vJPjY= Received: from PR2P264CA0011.FRAP264.PROD.OUTLOOK.COM (2603:10a6:101::23) by AM6PR10MB2613.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:a3::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.23; Fri, 11 Jun 2021 16:14:38 +0000 Received: from VE1EUR03FT050.eop-EUR03.prod.protection.outlook.com (2603:10a6:101:0:cafe::c8) by PR2P264CA0011.outlook.office365.com (2603:10a6:101::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.201) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.201 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.201; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.201) by VE1EUR03FT050.mail.protection.outlook.com (10.152.19.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:36 +0000 Received: from SI-EXCAS2000.de.bosch.com (10.139.217.201) by eop.bosch-org.com (139.15.153.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:22 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by SI-EXCAS2000.de.bosch.com (10.139.217.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:22 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:19 +0200 From: To: , , CC: , , Subject: [PATCH v4 06/18] am335x, guardian: Update pinmux configuration Date: Fri, 11 Jun 2021 16:13:38 +0000 Message-ID: <20210611161350.2141-7-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 37f7c3b7-c55f-41b3-0d38-08d92cf4022e X-MS-TrafficTypeDiagnostic: AM6PR10MB2613: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3173; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MIqNTOO83AhcDP4KvbmTyUHPPd3bJHemATsan4rQaB675cr1LYTgi3w8SzSSDn56XxATWwJ36kpBA3r4UNGz0gb4LMTgdridjE+bVYNZwI0OH1Y6ai8VpWPutyNOC+xPgVseuULJx06c9P8KKVf1zLculOLH/lyeyWZN8IVvgrO0SUOJsgeNvWNiiG7x332aD1onS/K0KGh0RfjMioCDnu86nBBhyhOPTrzY52OrhJNBhHRkoIoWxEeGldznDwh/t/NMFbGJrCuJms3tFyO21eWGRvLm/8xzF7DeEwf9HIseRffabaHbByBBvSypnvsUOZglxCm3j5OkcXrQoNCQ6bt2unvVbJqLU/bQeiCJwA67M0H2YreXAj9Imx9KLTcYrDY2wr4jYWL0UFCyLu+xdJMyPmAexUDIsfHYVoS2zbTUZMj15M13SqNhUXIfvRm5XGKZAra4H76aCbx/4COBSVpH93gZ9rVOHSqDM+rrdHJs6Wen0PKGN92/FtmwB8HMmX+PqqIVNs00k1xA3VUa9GYcEgTG47ZXB4pa4fMMo/TQowuKP5EGjKr5XsZH+OoG+AHy5Tkwn1SeIBhAOYThG4UF1QxGeOvWxmXC2A8WcB5gUymScqHB/1MBvuRxaXWYTS4woiXs1kGsnGdReHZohizxcLRUj8k3qIupTXXe0tH9TziuWM+OR+taujV7u9PK X-Forefront-Antispam-Report: CIP:139.15.153.201; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(107886003)(4326008)(110136005)(70206006)(2906002)(54906003)(2616005)(70586007)(336012)(5660300002)(15650500001)(1076003)(16526019)(186003)(26005)(86362001)(36860700001)(81166007)(356005)(8676002)(8936002)(47076005)(83380400001)(498600001)(6666004)(82310400003)(2876002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:36.8861 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 37f7c3b7-c55f-41b3-0d38-08d92cf4022e X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.201]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT050.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR10MB2613 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Moses Christopher pinmux update for guardian board - control ASP Board Power: GPIO, on/off ASP Board Power - control Coincell Voltage Measurement: GPIO, enable/disable ADC measurements - powerOff Device GPIO-PowerOff, cut the PMIC supply Signed-off-by: Moses Christopher --- arch/arm/dts/am335x-guardian.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/am335x-guardian.dts b/arch/arm/dts/am335x-guardian.dts index 7e70a96d25..207246b4e0 100644 --- a/arch/arm/dts/am335x-guardian.dts +++ b/arch/arm/dts/am335x-guardian.dts @@ -401,12 +401,12 @@ guardian_interface_pins: pinmux_guardian_interface_pins { pinctrl-single,pins = < - AM33XX_IOPAD(0x928, PIN_OUTPUT | MUX_MODE7) - AM33XX_IOPAD(0x990, PIN_OUTPUT | MUX_MODE7) + AM33XX_IOPAD(0x990, PIN_OUTPUT_PULLUP | MUX_MODE7) AM33XX_IOPAD(0x9ac, PIN_OUTPUT_PULLDOWN | MUX_MODE7) + AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE7) AM33XX_IOPAD(0x980, PIN_INPUT | MUX_MODE7) AM33XX_IOPAD(0x984, PIN_INPUT | MUX_MODE7) - AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLUP | MUX_MODE7) + AM33XX_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE7) AM33XX_IOPAD(0x90c, PIN_OUTPUT_PULLDOWN | MUX_MODE7) AM33XX_IOPAD(0x944, PIN_OUTPUT_PULLDOWN | MUX_MODE7) AM33XX_IOPAD(0x91c, PIN_INPUT | MUX_MODE7) From patchwork Fri Jun 11 16:13:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491042 X-Patchwork-Delegate: lokeshvutla@ti.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=DWvnuxuf; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mDN5g3Kz9sWD for ; Sat, 12 Jun 2021 02:16:04 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8F7DB828C2; Fri, 11 Jun 2021 18:14:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="DWvnuxuf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1118081249; Fri, 11 Jun 2021 18:14:45 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20613.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1b::613]) (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 0D9C981D1F for ; Fri, 11 Jun 2021 18:14:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KqiGbXtrUicOlbnVBrt+Ew5+pgKzV5HkzoymFw0lzNylh3LLL7/Bve108jAn6X47bu6GHaQ9JN1v4CEtgQ5lNYK6sn2sXatmtvDZMhmGizrVHeIzyXM+4+K4mmBgjpT4QoqGjttd9Ub25RF3yjfPnyTHNPrOZTcyfEOy+JlC9RG1bl+mBCyyKVKk1+c0mzp7V1T9+B2gbEha8qcgmPnzI01IzhkW9Bz/NqZ5BtMygcd7k+kXIl7LFgpFFD8JA+dxpdqX+cdCAjezVLw7O3umei0g4K0qMxpjhLRi4dgcshSGK0TLHYxvvTloEZ5m8jzTzjNy0wfoqNWljYDdHJcZ1w== 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=qDsU1UbKoCbYoFim9qGVgmHOy1uu0U/DPCkpccVK6qg=; b=YibnuZvDOd8c/qZPekna/mHhmodxJ8kDLdT9QVIKuDAEE27MyPG4Ke7KT07PgBa7hXqrGDZU4tQDYINR8D+kUa/R55mu6o6vQQMaT37ZcCK/evaIwCTxc6PG18c1wFHilAybqon8LVjNFb3R4oR1pRZl3a4q2QQu7qEaR1SmOTAGGpZQzHs/aWkaFFNjQVL6qbXraPY10TUYDJsSy8/MtjYsOMgCiLzH5OzMlHc8DZJZy3eCCtst+ghFZ8HAtwbKlcCHeDFXkdu57C1Ago/q7EOwdm0ZLY11Qt1EjW6SZexRd2p3Xc1EM5VSQ7LAI6od5fJ8CL+F9CaY76fxvTGrqg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.203) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qDsU1UbKoCbYoFim9qGVgmHOy1uu0U/DPCkpccVK6qg=; b=DWvnuxufkqEu2dQkZSDXYSkWeqMSkBhyR0rZOZuEBJXTBjhFhrqa/h0GNR+fc+CGCBrQZ0T8xSsOCmU87jeQR0smzXTQwugLKr2nXhx07iGyHhYfErVpxp52s9Q1/jQ2NfoJhFFuriNNvX6zPsTWpPdIaLHyTLbqK5GW/NJHJy8= Received: from PR0P264CA0261.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100::33) by AM4PR1001MB1441.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:200:96::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21; Fri, 11 Jun 2021 16:14:40 +0000 Received: from VE1EUR03FT014.eop-EUR03.prod.protection.outlook.com (2603:10a6:100:0:cafe::c7) by PR0P264CA0261.outlook.office365.com (2603:10a6:100::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:40 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.203) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.203 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.203; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.203) by VE1EUR03FT014.mail.protection.outlook.com (10.152.19.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:39 +0000 Received: from SI-EXCAS2001.de.bosch.com (10.139.217.202) by eop.bosch-org.com (139.15.153.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:24 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by SI-EXCAS2001.de.bosch.com (10.139.217.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:24 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:22 +0200 From: To: , , CC: , , Subject: [PATCH v4 07/18] am335x, guardian: set environment variable autoload to no Date: Fri, 11 Jun 2021 16:13:39 +0000 Message-ID: <20210611161350.2141-8-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6116aa33-323c-488c-cddc-08d92cf403ed X-MS-TrafficTypeDiagnostic: AM4PR1001MB1441: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dC0GQzEmWWkYoN5jgbLxZ6DZ7HyNf98k+XUawhkTrdIfR2IPk6qzvlKysm1MqeFUW8nSc+V1IU5Qc9TqqK5gOlgqtMEP8IKZMRcDKMoRxkYFJh6YRo7gV3DcZA8Uu7ha5AWzI6EsZqpT+Ewz9U6rpxWEtsRFymTh030qDgnFStG9ppG3MJCkNFvMiQe/faqAduW8OFVfIQiTTSolyn1pA0jq//uuUpUY5dJ1bvrZhiP0szKsCASxwDSZAljmoxUCCF3ViqGtwuvnfZ2rPDFnVU46ixF9isZJ8Zz/95tqKx6KcreSjoC66+q3PosHxgajjR/nqsFnFL1ptd+fABlN6fnj8w6A/qEf5hooeVK5zHXqwyBXLT4ahVZLdPzQ2bIg/pVFpk2DdPk+RCsIER8lEmQX3bYFFluG7jCFYb8BctDUitDeEK3Si+Onco4xYTGrspsdziyzdaG0wZ9pEQ8HqRxRqoTnPoo12Cys1seMMdZdUE8DFQLWovun6/YwamrtMgFpcAc+SK/Hj8aGuPmS+OO2FAylbt/Lut6DruKj8V3yMHRlE+bui1v4SnGUM2ils/vqNHLTqmXcx/RT0ng4nJJCUzgs5TGCXPYl3e669wFQFpt1wkXkUua5vyAfuBClM6JkqXRXNjYx+3ZowQhkOtGhD8+iRsHx3etN86mVYBou2IjaCTnkwyLQL0bCTbS7 X-Forefront-Antispam-Report: CIP:139.15.153.203; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(356005)(81166007)(186003)(4326008)(16526019)(83380400001)(47076005)(6666004)(1076003)(26005)(107886003)(498600001)(70586007)(8676002)(336012)(2906002)(2616005)(86362001)(2876002)(36860700001)(54906003)(110136005)(4744005)(70206006)(82310400003)(5660300002)(8936002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:39.8075 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6116aa33-323c-488c-cddc-08d92cf403ed X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.203]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT014.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR1001MB1441 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath autoload: if set to "no" then rarpb, bootp or dhcp commands will just perform a configuration lookup from the BOOTP / DHCP server, but not try to load any image using TFTP Signed-off-by: Gireesh Hiremath --- include/configs/am335x_guardian.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/am335x_guardian.h b/include/configs/am335x_guardian.h index fe36e34c7d..814048bf86 100644 --- a/include/configs/am335x_guardian.h +++ b/include/configs/am335x_guardian.h @@ -58,9 +58,9 @@ MEM_LAYOUT_ENV_SETTINGS \ BOOTENV \ GUARDIAN_DEFAULT_PROD_ENV \ + "autoload=no\0" \ "bootubivol=rootfs\0" \ "distro_bootcmd=" \ - "setenv autoload no; " \ "setenv rootflags \"bulk_read,chk_data_crc\"; " \ "setenv ethact usb_ether; " \ "if test \"${swi_status}\" -eq 1; then " \ From patchwork Fri Jun 11 16:13:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491044 X-Patchwork-Delegate: lokeshvutla@ti.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; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=ToOWb6Hr; 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mDn5SGrz9sX5 for ; Sat, 12 Jun 2021 02:16:25 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5F662828E1; Fri, 11 Jun 2021 18:14:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="ToOWb6Hr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 77C658284C; Fri, 11 Jun 2021 18:14:48 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-am5eur03on0628.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe08::628]) (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 E884682052 for ; Fri, 11 Jun 2021 18:14:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DwEmprS8UXUsE/lY+zZXuv6N5VFf3P9rYrWsCocqe6QfX5S014cv2+1ResX23W8Nf/nQJM9p0yDeeSKlWZO3IAxbzjMkJ3DR8NvA2Gx9KF1CJO1gzoL/pJWGfs74CSplhIFINK5P7Xo/CsHqgk+ZAVfnqfkB5w0Ogu4AJPYWsZh7TgLXcc7fEp0hANEIpqRy6Dv93kYMKC0xH2SLihPYhcAkJBc2H2haU6bLVM375VTHccWMm0L3fV5IxS8wlUxu/VxyYLnGoD8NbNynFY02ADhvbwANg9kp13Yq6BFccNCwFcw+vF+efmXYrucECr58XfAntlOPEOmyMmDabMvw+w== 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=L3ogb9vZpnzjOmP2lO6Az1az9c1Tn9oO0v09ZDudbFI=; b=KOdfLZ7n/nvEqAnNbvJ2SwmTU8d5XprhanPsPwAdAJlyViAlIxSiq/kMY79ne0CyIMxPknJH3INWD+FblT1wG6o/OVtCu0TthrHPeAgzd0Dqk/wvQuJQf1Lpnq5gqMt1z4r1f+bf0wJ836/+OkEqWysflcRBXexWRkm6lc+Abui2YwL48cvI+V8PF5tKduP6Jee8r1Z+6sRkkYRNqtwqmuzFhxKzzovn8dSx0hkxOaGViGTpNvKIVdHnj4O+BvkNuLNqhLIqXmRvPq1lnTxCOO2B8B8VflZ3eMv25uwmV06SeouBkLPFxAZ59lWZ7TeO3cNtpICdVyuFXOEOW4vQhw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.203) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L3ogb9vZpnzjOmP2lO6Az1az9c1Tn9oO0v09ZDudbFI=; b=ToOWb6Hrixe/C+YDT6DkXyrsVocAGaqHoz/fhc7enXn0vb7XZ7l4PEDzN7DvkpBU5gd5iPjxWEtrcQ/sKRX8heSzJCAWDyPkh2HnsaF9dtjPLw+s9TN7KUMcj7JKm3Ic/Yhp/qRDwFdzHD8aYZNdrUf8zCnRXxeUXZU+v2miqBY= Received: from AM5PR0601CA0055.eurprd06.prod.outlook.com (2603:10a6:206::20) by AM8PR10MB4098.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:1ca::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21; Fri, 11 Jun 2021 16:14:42 +0000 Received: from VE1EUR03FT060.eop-EUR03.prod.protection.outlook.com (2603:10a6:206:0:cafe::b5) by AM5PR0601CA0055.outlook.office365.com (2603:10a6:206::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.203) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.203 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.203; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.203) by VE1EUR03FT060.mail.protection.outlook.com (10.152.19.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:41 +0000 Received: from SI-EXCAS2001.de.bosch.com (10.139.217.202) by eop.bosch-org.com (139.15.153.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:27 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by SI-EXCAS2001.de.bosch.com (10.139.217.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:27 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:24 +0200 From: To: , , CC: , , Subject: [PATCH v4 08/18] am335x, guardian: code cleanup and boot optimization Date: Fri, 11 Jun 2021 16:13:40 +0000 Message-ID: <20210611161350.2141-9-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3373788f-efb1-4819-c2b0-08d92cf40534 X-MS-TrafficTypeDiagnostic: AM8PR10MB4098: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3383; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: euQcFV8reOC/e7/328E5MTclCreTzMB0mfEuUJJSvUomJSDYqxUDxGjxsL6Ed1xpuIgxCB9gY3oYYkKjKEfvXMEIlFbkZby9A9Y8hvEcYkxe1QFf+8kXTQxkVdfxi0jCwOmjs9FxwkWyPAe9392/RT6WTSB19l2NGjBIja056eDUJ4p+BpQAnQXE/Ia3mXu02J05zEY3NdBcTYGEvdSeznlitj8meSp4c1CbrgBk3ABO91iaK9Qpyeu3ETRoy8Kg237jhSIF1aI1Xd1nrrucsYW5QCARA+loZijll90lITopPUdOoul+1RMaTBR5SSMwIpyeblVV3/OATHqZFdkd/BqwBjHn/8d5XlhMvB1chB4VAVHTT5KmG4KrXCnb9zfbj1y2oy7mxq726j3hej+Moas34DfdSn4xYmg2a5WOBwlPt577flpCtL5EM1h8POL/0mxXMjFVN3zZDrHoayW6PLmqQr0i1Mo3Y7iUIzONOvXy53TJKNi1p2Gr7dWtE3DUE9/YJvFIQcdnXItEfE9s2M6c1FayoWQ07MnKPfqG5oD6kFzioQ/XduKZ1VzF9VRRLScyHoxTVajUFaesyGNToWFyX5wqFEw7NMudxDtlj3/QtMHn2TklMt0aRTcsh7CBgaMoP0yWlNf/4FZQi5SQod+vFKJxhNvZPgcrLuq88YCLpBsS1aqgdhC46D1KoMbM X-Forefront-Antispam-Report: CIP:139.15.153.203; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(2906002)(8676002)(70206006)(107886003)(70586007)(356005)(6666004)(2876002)(82310400003)(86362001)(8936002)(498600001)(16526019)(36860700001)(2616005)(336012)(1076003)(4326008)(83380400001)(47076005)(54906003)(186003)(110136005)(81166007)(26005)(5660300002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:41.9492 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3373788f-efb1-4819-c2b0-08d92cf40534 X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.203]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR10MB4098 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath - remove redundant headers and boot modes from board file Signed-off-by: Gireesh Hiremath --- board/bosch/guardian/board.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/board/bosch/guardian/board.c b/board/bosch/guardian/board.c index 9429454a74..12d047b74b 100644 --- a/board/bosch/guardian/board.c +++ b/board/bosch/guardian/board.c @@ -9,19 +9,14 @@ */ #include -#include #include -#include #include #include #include -#include #include -#include #include #include #include -#include #include #include #include @@ -193,27 +188,11 @@ int board_init(void) #ifdef CONFIG_BOARD_LATE_INIT static void set_bootmode_env(void) { - char *boot_device_name = NULL; char *boot_mode_gpio = "gpio@44e07000_14"; int ret; - int value; struct gpio_desc boot_mode_desc; - switch (gd->arch.omap_boot_device) { - case BOOT_DEVICE_NAND: - boot_device_name = "nand"; - break; - case BOOT_DEVICE_USBETH: - boot_device_name = "usbeth"; - break; - default: - break; - } - - if (boot_device_name) - env_set("boot_device", boot_device_name); - ret = dm_gpio_lookup_name(boot_mode_gpio, &boot_mode_desc); if (ret) { printf("%s is not found\n", boot_mode_gpio); From patchwork Fri Jun 11 16:13:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491040 X-Patchwork-Delegate: lokeshvutla@ti.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=MRaToMNG; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mD262qzz9sWD for ; Sat, 12 Jun 2021 02:15:46 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E45FA8214C; Fri, 11 Jun 2021 18:14:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="MRaToMNG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D100582052; Fri, 11 Jun 2021 18:14:40 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on0626.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0e::626]) (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 CD85080F27 for ; Fri, 11 Jun 2021 18:14:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f2rpgLm84DmgEIToZ9ELQK2gnavwD1qe2vqIQoYOF86kCg/RtJl36qHx7cbAkWJtTZQx2jayUpDYMsmq98XotR2HPHS0y9OhnrTuD9EZboGGD8j0aQpIxBRu1BGdLtQXd/pzTLKDyXdjb18XTqb47NT5Hz2Mc9LIHjrbcK+ivX7JHpGkKpPQVaBlz7dkpUnAhU5Z9jNA5/jAt03LisL32ZJHGM+0mVvoGEtBuqOT4Yx8oIHl9bnatp2jGhaWd+sey1KL1cY1+LixzV1ZrIC/prqq/pVMQ+gHOwreC7tnbQE20WZROIbu5bvbrjjxkhlUPjjwQMaaLLO5FPUaRwFFzA== 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=tahYYg5xpfR20FJM01Dhq7xU462WGMT1Xoy7706iifQ=; b=TYIeO8nLd6iv7Ayftwwn6dCf/mi70bs90xoavUBaJZ9s77vzNWCen8qFCzbZLe9xajpV2uL8Z0dp51Wask9S3r7XFwzA2naUChweNlepPTdNbzvOcX1Fq3LMM6TqCFuCXSgbF9a4/m8eSAzi7+dCb7AY3TiNPKry0Du8xCvAQMQ8CEO6bHT+bZoYxmHorEKswnwKNBbZajhKT+LCNTCbnDLmE62Zi5Qns1zzhG00PYXqh5BBHtTLQBjIu0Sq6t1e0xKRRMpPENdcYQCJ3T/xbUTYJ0ApQZLEsin1r1CgaHMs/J0yzSB1e1S8V3BNKIqqchYV0xkA6UvyedfYHBpcwg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.200) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tahYYg5xpfR20FJM01Dhq7xU462WGMT1Xoy7706iifQ=; b=MRaToMNGfDi4apgXfOWN+whD9gUgQyngQMnYtLLmI13gOIWJLi4+r8VJ2bHHElgDvkd4dd8vpQvBkqptIud56WarX9NwkD6ZxtvoFU7a1V8OPfg7ZnUBMhaf/IGDpmmb1ExuctSg932Wajtygdlhy+NiOxShrDvz589ERh+0yvM= Received: from DB8PR06CA0011.eurprd06.prod.outlook.com (2603:10a6:10:100::24) by AM0PR10MB2402.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:e2::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.23; Fri, 11 Jun 2021 16:14:36 +0000 Received: from DB5EUR03FT026.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:100:cafe::1d) by DB8PR06CA0011.outlook.office365.com (2603:10a6:10:100::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.20 via Frontend Transport; Fri, 11 Jun 2021 16:14:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.200) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.200 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.200; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.200) by DB5EUR03FT026.mail.protection.outlook.com (10.152.20.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:36 +0000 Received: from SI-EXCAS2000.de.bosch.com (10.139.217.201) by eop.bosch-org.com (139.15.153.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:29 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by SI-EXCAS2000.de.bosch.com (10.139.217.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:29 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:27 +0200 From: To: , , CC: , , Subject: [PATCH v4 09/18] configs: am335x_guardian: set boot delay Date: Fri, 11 Jun 2021 16:13:41 +0000 Message-ID: <20210611161350.2141-10-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9b2e8486-f090-44cb-d735-08d92cf4021b X-MS-TrafficTypeDiagnostic: AM0PR10MB2402: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1775; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iqjoNWFhpakaBujLmCeY7/Ufh17VXcUzv99GeRr8GxDIErndcOB0NK0Rb6GwmsDotpT9i4JDAzdS1tPkxpL+TPaY3dz2H/XHNWw6as8P3J3V8kF90eA5h+YO3dNxHgsZ0+2XeqUwTp9qEVr4c+vyPpQ8z8fdjnHsqz+mFta4Vi94s4BL0pRmbmeoGRw+SEuz79rpQ+VjT2nmIVWUqOLOUJYkROQvocqiRsERMvpifsoBipRuHSYycOcDyL0iAspex9PNzzKJljVd/y8s4dZjDbg2Tby6eBBVBlZGJdJlUPM8JBj9Q+kH7LKkDpYoA0VTzSxdlyHNq9SITNVPUHVDJCRR+x6r3XqjsiuXSXbKvo6sZPCg+JPUh4aGljrMR0y0OUA+fBhZySdWiLy7KoFaTMbf72W3c6Ksj1UA9T54BOFOtfOLsMIaCdymj1UqCHreWvGnUUNJzm3GxUKYHWRvcgzkMsFvsKTTHIX33FyhY9TbHaokchUQHzjWSDRGIiSPCaztXxLv+mmd4L1TqKQxZ0H7I4jBl1HvxTX7RcmV0CkPlnAoxPWddHGk1b461i0crXNsR+cLmuRv0f3uzhS7qoSMErozP3QaEIxE4zx9nlJ4qEFcfG4qgFgQpTLsc55n448dWpgr1Nppbi4yFPcfLHBMTwAiyY7gzfxvMwnTO5ficrHTbfopW66tF1sVc52+ X-Forefront-Antispam-Report: CIP:139.15.153.200; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(4744005)(47076005)(5660300002)(6666004)(2616005)(186003)(70586007)(8676002)(16526019)(26005)(336012)(70206006)(36860700001)(8936002)(4326008)(356005)(81166007)(498600001)(2876002)(82310400003)(2906002)(1076003)(86362001)(54906003)(107886003)(110136005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:36.7517 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9b2e8486-f090-44cb-d735-08d92cf4021b X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.200]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT026.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR10MB2402 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath - set boot delay to zero, to increase boot speed Signed-off-by: Gireesh Hiremath --- configs/am335x_guardian_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_guardian_defconfig b/configs/am335x_guardian_defconfig index 000b198440..52fa58ae7b 100644 --- a/configs/am335x_guardian_defconfig +++ b/configs/am335x_guardian_defconfig @@ -19,6 +19,7 @@ CONFIG_ENV_OFFSET_REDUND=0x540000 CONFIG_SPL_LIBDISK_SUPPORT=y CONFIG_DEFAULT_DEVICE_TREE="am335x-guardian" CONFIG_DISTRO_DEFAULTS=y +CONFIG_BOOTDELAY=0 CONFIG_AUTOBOOT_KEYED=y CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n" CONFIG_AUTOBOOT_DELAY_STR="d" From patchwork Fri Jun 11 16:13:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491043 X-Patchwork-Delegate: lokeshvutla@ti.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=bc9KgxBe; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mDb45jXz9sWD for ; Sat, 12 Jun 2021 02:16:15 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3C4F0828EB; Fri, 11 Jun 2021 18:14:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="bc9KgxBe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6305181D1F; Fri, 11 Jun 2021 18:14:46 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-ve1eur03on0611.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe09::611]) (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 26039827C7 for ; Fri, 11 Jun 2021 18:14:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NhKrqaAzkHOoGXIOEAYiS16OvYEEh3eArSaPWv/Wxk5QTnlGObv7EdyAUOKo/jz55r/P7dSb+azcNrsQFo0jR4jgqIeEOPYUsVXoo0i0NlOZFPlYHBxVQeCi38Rwjp1RFwoJJsHq143qBPmlXtqJcPsb2dMVd3gc6LV0gWXd7/lwXL2B362laILZKBl7in+rDcCyqOSvVbigU3tntYNDNkcWx5foi7JVATzFYykp19GdvKsW5Uh0oszcqJwCcAjt4g0+81MPzc06d5BT3HaR38zr75mWumkXL3yyLvg7IMbkVPbubSJZmuQrnH/JDKMFxaz7KzbKKO8Qe0688qVF6g== 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=O5CAnFs1MF7bWJ3RaENSRhhk7qIIJBd7xM0BbJ23DDc=; b=CENoaf73Vh9b6D3KjX2bWg7b/MuM1YFsqGHKfThU1te2ai6aergl8I8BXKKBiBSabKswB9e+2PpKW9xSBUUMgJ/k3freDnOkTYB+HjU2zF7VsXTmhznIJ5Mdjpgy31GlKeHZ6nvOYYSc6Lviy14hbI1Zd2eJkBifek5ha8U4xxONuoJDJ7vbDsJOdAyHabQJKPGtea6GhzCgI8mvh5TYhTc4ggt/MOuVIiqMkorHlv/ByOV/kdoy1ue4hgzAtX1Oesayi9jlo1C8LpPP5iX+o3pJvsFJYBnzF97nQz+IwMxOPrug6DkweiKMN4NCJCFcX9h0Afw/oDlMR2LRddAJVA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.200) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=O5CAnFs1MF7bWJ3RaENSRhhk7qIIJBd7xM0BbJ23DDc=; b=bc9KgxBecLMkB6W1545qiRobd9EyUOcPgl4uc+DFl3Btm8AUZYkm9vZDc4byz2+QeTnL8bHU4XU6iX+Vlt3A7VUQm/8IHm/AnPBZDaEMmGgASEaZA7p58uWLkgfdkcqCgwz14bAOeufJ6Vad5YyrrR6E7id1NjZ6n0VdtKPiya8= Received: from DB3PR06CA0033.eurprd06.prod.outlook.com (2603:10a6:8:1::46) by DB6PR1001MB1463.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:b6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.24; Fri, 11 Jun 2021 16:14:40 +0000 Received: from DB5EUR03FT059.eop-EUR03.prod.protection.outlook.com (2603:10a6:8:1:cafe::90) by DB3PR06CA0033.outlook.office365.com (2603:10a6:8:1::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:40 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.200) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.200 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.200; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.200) by DB5EUR03FT059.mail.protection.outlook.com (10.152.21.175) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:40 +0000 Received: from SI-EXCAS2000.de.bosch.com (10.139.217.201) by eop.bosch-org.com (139.15.153.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:32 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by SI-EXCAS2000.de.bosch.com (10.139.217.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:31 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:29 +0200 From: To: , , CC: , , Subject: [PATCH v4 10/18] configs: am335x_guardian: disable spl command Date: Fri, 11 Jun 2021 16:13:42 +0000 Message-ID: <20210611161350.2141-11-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 930b48b3-9b28-4189-df65-08d92cf4041a X-MS-TrafficTypeDiagnostic: DB6PR1001MB1463: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:261; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: muUxFzglyY6IpDuWcruZihfs7X/Q985zx5CkXyPBgtyTw66D/4jh4j0zc/eyqZVgYNAAudRMIoqeAmUcrA21XIYi925cKs/Ib0GOKj/Tr7dT0OFzX3JC9lm3DVgHc9yRJl7XgwhZoqQd2k5MD3V6xCXx/Gghgz5W/E7JQqoO3LM46GzZ8GAWPZQVivOuYXWsmheaQZ++g3LzdpnSOsrRfZIi26x/p4jgt0GZG+aczLy+CiEMwbutprpxUuoReA2kRrngkWLksHo3151307+Yrfk3ZIOi4YJX1xUF0kUTKdFog1ACGmQU6C+JbVfN0Tal9NezPT0bD92HHUMxjYUgof9tZQZMUpSNpAeb8BRV+XzM5pJnXEOzLK9iOQ8DSCvLXGc/YzSKAMUsgG4BZjAT6MDCKgKSfrKdqWZg6EWKL0tvqkoFYPEbgJuGV4jbHjBZ9QTNpciS793+D5EEYgepKlWlqXzaT3OO5TRSkwmO1TfgIMS0VzJtIruqB59IKUTmTibj0hz+rInEzBf0+5KeG7b9eXFdfgFKHnwnDafLc5j2nz+/oe+8QGjket4wWwsVSId+myd1JbUSwvS14nReh1NF1Rxmzp+l5FttzdFy/AflYNfVKBLnjv7aYVNfB66imFfVtZZH+en3dGoCsdR32A9XUfpVcMFbpE/F3y8xr88Qo2mISp4yDyI5DFLmpk7c X-Forefront-Antispam-Report: CIP:139.15.153.200; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(83380400001)(498600001)(110136005)(4326008)(70586007)(36860700001)(336012)(70206006)(2616005)(81166007)(107886003)(5660300002)(47076005)(54906003)(1076003)(86362001)(356005)(4744005)(8936002)(26005)(6666004)(16526019)(8676002)(186003)(82310400003)(2876002)(2906002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:40.0988 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 930b48b3-9b28-4189-df65-08d92cf4041a X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.200]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR1001MB1463 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath - disable support for spl command Signed-off-by: Gireesh Hiremath --- configs/am335x_guardian_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/am335x_guardian_defconfig b/configs/am335x_guardian_defconfig index 52fa58ae7b..6e57fefaa8 100644 --- a/configs/am335x_guardian_defconfig +++ b/configs/am335x_guardian_defconfig @@ -42,7 +42,7 @@ CONFIG_SPL_NET_VCI_STRING="Guardian U-Boot SPL" CONFIG_SPL_POWER_SUPPORT=y CONFIG_SPL_USB_GADGET=y CONFIG_SPL_USB_ETHER=y -CONFIG_CMD_SPL=y +# CONFIG_CMD_SPL is not set CONFIG_CMD_SPL_NAND_OFS=0x0 CONFIG_CMD_ASKENV=y # CONFIG_CMD_FLASH is not set From patchwork Fri Jun 11 16:13:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491045 X-Patchwork-Delegate: lokeshvutla@ti.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; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=Zpd1yuA7; 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mDz4X5Xz9sX5 for ; Sat, 12 Jun 2021 02:16:35 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6C5AC82918; Fri, 11 Jun 2021 18:15:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="Zpd1yuA7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 394DA828E1; Fri, 11 Jun 2021 18:14:54 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on061b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0e::61b]) (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 F1A9D8284C for ; Fri, 11 Jun 2021 18:14:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cUnLDg/SUyz6p73yCsuY2Wes9vxYiS+t0Z71Bgd0a9TRdxPkzZ4AQdrK0Q8/ShQK+ZsiZ+Qa2eQx9Qr+Rs9eX4VIeKRnoKOMEJfzWj0zwlPCfm4TC427Qbwsz6nNBE6L/jsf0Qvw5Oe68cZlNWEqAs/s0I3M0+MLaE3b9WMoj0QTYXsGuO56yz1TcQsNS9h2FQ3JF4AmV3EPUkgsq5PFN3JbScLS5HFr8/Nk77PbTHSSqujkTxVyNT27Vf8W4aQpl7beaA1e1b/J5c76MCfqMOL1X75j2I5Fnh4qYLUfCJyZ6hbhBWT1xg2vIWRlJ/kjZQ+GRMVTTFROEeYXN7nATw== 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=zXbJnGuYSX+gD13HlBYG0W59U8EAGG5uM6qRJJrwF5w=; b=eezU17G2e+7W8s/i/ra5mbroLCMZHYCQ00ErtiAbCyrVTEWmZnYdOYK9cvZp1ejzKApGBnyRs3xR0A/zUeIHzWgu40Qp0WmCiytlM0qH4x/6tasnMLQG1ckGInz0o8DxXsAJsKlumprtcW4LmzcQnj66yjaRuSpUulm7PeIcizHD1lZOS4QaAwSqMlLDIHiUo2BaUI9PfBvF3lebC3ZXM5PuTWrqwPHV2dr51d+uibYUi+CzDcnx7IzpjTHD+jj1ZW1RCMrZf2mhXYc1LMBWA4hKTDVEKi5dyNT61zBIOeQ450snHsev8W01bn7pC664yNz1c9AT4xtCOJceLckDSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.200) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zXbJnGuYSX+gD13HlBYG0W59U8EAGG5uM6qRJJrwF5w=; b=Zpd1yuA71sXFqnq7oF2bceHBFOd/2QFQfnRxAPx84pxRnk2cztqZXbSk52qoB5myVCu5kua4kaeB0Of7PURPaMm5zIIaz4OXMwGfarhBN6ilFd7TBlVKCpjjHv5Kv0RtpEWe0OqueB/grmcD9jc7kxXStdJhfFDJB90hXH+8Xlk= Received: from DB6PR07CA0022.eurprd07.prod.outlook.com (2603:10a6:6:2d::32) by AM5PR10MB1665.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:206:1e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.27; Fri, 11 Jun 2021 16:14:46 +0000 Received: from DB5EUR03FT008.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:2d:cafe::16) by DB6PR07CA0022.outlook.office365.com (2603:10a6:6:2d::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.9 via Frontend Transport; Fri, 11 Jun 2021 16:14:46 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.200) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.200 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.200; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.200) by DB5EUR03FT008.mail.protection.outlook.com (10.152.20.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:46 +0000 Received: from SI-EXCAS2001.de.bosch.com (10.139.217.202) by eop.bosch-org.com (139.15.153.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:34 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by SI-EXCAS2001.de.bosch.com (10.139.217.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:34 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:32 +0200 From: To: , , CC: , , Subject: [PATCH v4 11/18] am335x, guardian: update swi logic Date: Fri, 11 Jun 2021 16:13:43 +0000 Message-ID: <20210611161350.2141-12-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eaeaf266-a0d9-456d-e960-08d92cf40806 X-MS-TrafficTypeDiagnostic: AM5PR10MB1665: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:669; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AvadKnO0Bk/AtF9jtz9cnYwgjvPecTjVwM5zXC0Y4hr2C6yRDc1/wmwOknDqbny4oqiY8sZSvmDbdaO+82Rsw3NpUcczoJuCqMmsIvgYKoL3K35up2Mf36iyaDrJzlxis8oAok4gDPxLq/TiRX17w9FeUQWdckgEUXfgLhfMTDerXUC0k55l+Ga4nqVFRecJMfbSHLMSIP/lCPcRUPYwEhD5mUfo+krFQfvya1R7wINbY2zOuCa4QMLT/+PwjXbMetxjBFTFewBSbnjpO88vBasgi88SeYXBZ/Ek5nBu/ammdDcPTRzqegi04ANUm0XfCNu7EBlcueM0/7do6YrMEVTjOxcLk70S1iTk1BBxUGvf4rQeU7+YuQ72X+Pbxg+czCALljIKGHu4CWGaiKtF3bhBMAXE/2Z9KExwP2CKqf4lNYSuRVWl2FNMtlIML0D5MJ1ome9+xfrZygcfgl8Ly5RiygmwQmvR2bXcENAM1VZLErrFUuKIRmQUYSK8s7cu5JkaeqLnNxe4V1P+VTuTKr9WfTUOgupqwy2GYyHpdOyUitXdUEZD9LRtXTOweY9BYj61ttiZ6CsZzRPSOhsr7lsrDlcdS7bWn7EcMHJlpCx/XUaq3znqAlR4p7Ogb+DI/viJCDbMpyAvdQRfh70973iIj9pZiqW3xkuAU5XY97VsTAskIAkL18unh5DkAeC7SswiG6eZIjft252d+VCDYQ== X-Forefront-Antispam-Report: CIP:139.15.153.200; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(47076005)(4326008)(2616005)(54906003)(8936002)(110136005)(5660300002)(82310400003)(83380400001)(8676002)(336012)(36860700001)(356005)(498600001)(2876002)(16526019)(86362001)(2906002)(70206006)(70586007)(6666004)(81166007)(107886003)(1076003)(186003)(26005)(36900700001)(139555002); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:46.6880 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eaeaf266-a0d9-456d-e960-08d92cf40806 X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.200]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT008.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR10MB1665 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath read boot mode gpio and set the swi status Signed-off-by: Gireesh Hiremath --- board/bosch/guardian/board.c | 16 ++++++++++++++-- include/configs/am335x_guardian.h | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/board/bosch/guardian/board.c b/board/bosch/guardian/board.c index 12d047b74b..f14ceaa1f9 100644 --- a/board/bosch/guardian/board.c +++ b/board/bosch/guardian/board.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -205,8 +206,19 @@ static void set_bootmode_env(void) goto err; } - value = dm_gpio_get_value(&boot_mode_desc); - value ? env_set("swi_status", "0") : env_set("swi_status", "1"); + dm_gpio_set_dir_flags(&boot_mode_desc, GPIOD_IS_IN); + udelay(10); + + ret = dm_gpio_get_value(&boot_mode_desc); + if (ret == 0) { + env_set("swi_status", "1"); + } else if (ret == 1) { + env_set("swi_status", "0"); + } else { + printf("swi status gpio error\n"); + goto err; + } + return; err: diff --git a/include/configs/am335x_guardian.h b/include/configs/am335x_guardian.h index 814048bf86..c76f9b26fb 100644 --- a/include/configs/am335x_guardian.h +++ b/include/configs/am335x_guardian.h @@ -64,13 +64,13 @@ "setenv rootflags \"bulk_read,chk_data_crc\"; " \ "setenv ethact usb_ether; " \ "if test \"${swi_status}\" -eq 1; then " \ - "setenv extrabootargs \"swi_attached\"; " \ "if dhcp; then " \ "sleep 1; " \ "if tftp \"${tftp_load_addr}\" \"bootscript.scr\"; then " \ "source \"${tftp_load_addr}\"; " \ "fi; " \ "fi; " \ + "setenv extrabootargs $extrabootargs \"swi_attached\"; " \ "fi;" \ "run bootcmd_ubifs0;\0" \ "altbootcmd=" \ From patchwork Fri Jun 11 16:13:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491046 X-Patchwork-Delegate: lokeshvutla@ti.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=PE9e8rV8; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mF96bfRz9sWD for ; Sat, 12 Jun 2021 02:16:45 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EA209828FB; Fri, 11 Jun 2021 18:15:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="PE9e8rV8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 563B8828A4; Fri, 11 Jun 2021 18:14:57 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20610.outbound.protection.outlook.com [IPv6:2a01:111:f400:7d00::610]) (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 914FA828D0 for ; Fri, 11 Jun 2021 18:14:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FaB2n+kwar31gRgM0LaxSsnqjcc6hJR9616S02JfcjAawEXaLUhs8huqdANPvFnWYGA24BFklWcfAr68T+r0IOCKty5W/LFoZCzfNG3LgR0GK0KpIewkB8wVdCGiZ/7wGcJsWTN+OzP0tvi7/D+zEd1p9goMtMsT0nuJRAMseAFqGwHJOVsDFhWyDalGMiEmz2uUTSSC08dJ8mwKUJgA4GUCz29kl5rMXw210s3Bjh08C/gBFFd6c9h5lRXOyxDgC/9m+bGsOlaPNGznJJdUIkM5HG8BDw2jdwLbkRlr/H2f4AOL55okZTpXTQQDIUnrp1f2H3j2S5uu1dDT/2aGfg== 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=iipVa7b/Yd2kDsM91GwMXIjgd1VLk4QPJySMgT5WEdY=; b=TIBU941D3bAzWMaKL8B8sbeUh2T3xcc8ukbAXTtD7uqXwnxTTT95VHCzxnpz0IjHPA7RsVHpTKbFMf6QdoasOPOhu9yje0kd1/9TWsWa9IsGKA2YH5KFQfsHLXjxGcJ+myRcATa4fz1Hwp7dewEE+33s2Velqarolp/rnmmR9GHG9OqZ19Xf2y48BJmHaLDu5wAx5xGIKgEvkZdofT0oRvuAhSaGjx4tPMOIhjvrWlQeQNWuC5B5y9DQq53VjoRoUixjyH8ZwhuhyqvF9xuD1qhf6gHyNthTK79lPMev0n+Bt0JAvnnBrzVF5nVhUK0T3vsfKrgYCC5XTll95R+nsA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.199) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iipVa7b/Yd2kDsM91GwMXIjgd1VLk4QPJySMgT5WEdY=; b=PE9e8rV8Q3qF5LTyvdNpqe7tG9hZQL5hP2kE4jXsuW5FXtzQ/8goU211J9M1TOUyYgodtswgbJ9lF5qpARYdMtA4elzLlEF0U2gy6pWRmUSx01UAqfQD2a6rRWlBKxPYFJkKqq9NR9PvuyoUsNPmYEfafYjNtQWaaCP/a70eJmU= Received: from AS8PR05CA0020.eurprd05.prod.outlook.com (2603:10a6:20b:311::25) by VI1PR10MB2477.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:87::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.22; Fri, 11 Jun 2021 16:14:52 +0000 Received: from VE1EUR03FT025.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:311:cafe::42) by AS8PR05CA0020.outlook.office365.com (2603:10a6:20b:311::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.199) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.199 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.199; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.199) by VE1EUR03FT025.mail.protection.outlook.com (10.152.18.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:52 +0000 Received: from FE-EXCAS2001.de.bosch.com (10.139.217.200) by eop.bosch-org.com (139.15.153.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:37 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by FE-EXCAS2001.de.bosch.com (10.139.217.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:37 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:34 +0200 From: To: , , CC: , , Subject: [PATCH v4 12/18] am335x, guardian: Enable backlight Date: Fri, 11 Jun 2021 16:13:44 +0000 Message-ID: <20210611161350.2141-13-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3b466641-13f3-42c3-c4c7-08d92cf40b3a X-MS-TrafficTypeDiagnostic: VI1PR10MB2477: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1265; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: U2tUczOMIymgBC3TGTUoHGbOX49hyPBrHE8R5hPUUFh/VxONwnBy0GLMR7pxJxAFkwmYYMbprlyEqnwsbKnLjdLMEaX0tgEu9OET9CSH8iaCh6o2UgifI/ej19E4THSKZ5Pjlgmj9kOAsGcTN9ZDRElXD5ZlbtcIGUXlCZIldiNgyeB7MjJ2jSLi6maVmIWGKLBuXdC9B5CnLtCk4YqB8pes/hEk9pvh2wcCtuox8sHaXV+Z0vQjgAEK7sUzdCLKkwzeEtV6mw4hebDQvRxveMQJ9F1wfhC54pCAlUBl7g/txvjTDfsT1UwFjBxIMyBUpX6lUnJK+dMH1SyV9MjNX+L/wkrmMmslYT8Jg3SEl65KwuMQPXcVieTMe1eMo/ZabG+s/Zia8MXssner8aUgGvYCoaaAN4/vd/5wJNZQaDafd8nyBNYXoQRZgLY99lj1bz2YlQrOFODHZfFtbc0X7OP4x4NTIHmygMBrDdqhmp9+Syux3o0CG7gr4S7ljKRMxKSmPDQxgIYzQUcAH0Wa9OXan1ZRxs8LkLWdHt9TUs+tx89IsrANPUAvjQsgfEM2F0hHcV8Mfva+eoUoKO8z5OuTRGnrXR3JCXcRZWjutv+1EsuOjWM60PKrQY34cm/qrlflYT2QNC0ujpJ4QvSben6lbxjpqbXpE7Hyrc49LbLLVpvV9ubz+dqLngbzdPh5 X-Forefront-Antispam-Report: CIP:139.15.153.199; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(498600001)(2906002)(8936002)(47076005)(54906003)(336012)(8676002)(107886003)(86362001)(2876002)(70586007)(70206006)(110136005)(186003)(16526019)(4326008)(1076003)(2616005)(36860700001)(82310400003)(81166007)(5660300002)(356005)(26005)(6666004)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:52.0605 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3b466641-13f3-42c3-c4c7-08d92cf40b3a X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.199]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT025.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB2477 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath Enable backlight, set brightness value and dimming frequency Signed-off-by: Gireesh Hiremath --- board/bosch/guardian/board.c | 26 ++++++++++++++++++++++++++ include/configs/am335x_guardian.h | 1 + 2 files changed, 27 insertions(+) diff --git a/board/bosch/guardian/board.c b/board/bosch/guardian/board.c index f14ceaa1f9..4388ef70d2 100644 --- a/board/bosch/guardian/board.c +++ b/board/bosch/guardian/board.c @@ -225,12 +225,38 @@ err: env_set("swi_status", "err"); } +void lcdbacklight_en(void) +{ + unsigned long brightness = env_get_ulong("backlight_brightness", 10, 50); + + if (brightness > 99 || brightness == 0) + brightness = 99; + + /* + * Brightness range: + * WLEDCTRL2 DUTY[6:0] + * + * 000 0000b = 1% + * 000 0001b = 2% + * ... + * 110 0010b = 99% + * 110 0011b = 100% + * + */ + + tps65217_reg_write(TPS65217_PROT_LEVEL_NONE, TPS65217_WLEDCTRL2, + brightness, 0xFF); + tps65217_reg_write(TPS65217_PROT_LEVEL_NONE, TPS65217_WLEDCTRL1, + brightness != 0 ? 0x0A : 0x02, 0xFF); +} + int board_late_init(void) { #ifdef CONFIG_LED_GPIO led_default_state(); #endif set_bootmode_env(); + lcdbacklight_en(); return 0; } #endif /* CONFIG_BOARD_LATE_INIT */ diff --git a/include/configs/am335x_guardian.h b/include/configs/am335x_guardian.h index c76f9b26fb..73248292f2 100644 --- a/include/configs/am335x_guardian.h +++ b/include/configs/am335x_guardian.h @@ -59,6 +59,7 @@ BOOTENV \ GUARDIAN_DEFAULT_PROD_ENV \ "autoload=no\0" \ + "backlight_brightness=50\0" \ "bootubivol=rootfs\0" \ "distro_bootcmd=" \ "setenv rootflags \"bulk_read,chk_data_crc\"; " \ From patchwork Fri Jun 11 16:13:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491049 X-Patchwork-Delegate: lokeshvutla@ti.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=IXwtYQaJ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mFn6Fcxz9sWD for ; Sat, 12 Jun 2021 02:17:17 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A7EA382916; Fri, 11 Jun 2021 18:15:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="IXwtYQaJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 413D08290A; Fri, 11 Jun 2021 18:15:00 +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,SPF_HELO_PASS,UPPERCASE_50_75 autolearn=no autolearn_force=no version=3.4.2 Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-he1eur02on062a.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe05::62a]) (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 19A74828EE for ; Fri, 11 Jun 2021 18:14:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oMOkMgwFV7aBLfv1yQktF3PKd0CfgqPnxGX4yilFQZ7eNv1qLCxlFZ/oHWe6WpK0yFe9sf/bgarzFkaSWv1DVeW0QDnt0mW/F/888K4/OH33OP/CU3OCl5qYxxUZSAbi9q97dtBIgBoCSGQIj+SyFPj4xHMtfOW5pNvrfTn3bQsSAbqarfbDBRit/u0UQIMSYkJ1tcjQOtDasZsXwuXcpU+QS6h1NZjuLs4Y0487srQj+AsluitUzAlbWzT8bg36FFiVSy7dn1wmqA/gjNIoJpXJxRqIj5G/x+c+XhkGcecBosb1DhiU5FgZKp8ojabCpLv3cy2k4xJbmLmNW8B+iA== 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=PoWoM0eAwf0c6B2J8F3WMXz6AJk3W5fLZ1XhKoEJ7c8=; b=XOuC/Xcv4U8Dw+YNZjtC7BVyaoHur1gF4nXm1KAwYQScOdFbZnzJ0kPAcBxv6dwQYKlD9kSZLlHCufImp7iDxQwS7SnNnl6DhY4v87pEO+cPiPSrSSiKhjTvK7dWJVhnuK4bf9rfrSOY+jgSBv5VAY5OwDoxwGa5uuObIu6C/IkAPB33pfLFAtyNvZO6+SWvyInAEsLOLibskTz5W7m8JCDS9m81U57ybe4cQSOF/IWCkp3GXd0X7bFN4d/RcYXXn8F/HBb8DQzozMGu4Ak2rG/QveABVMXGbsqtGM/l5yKQPQnqWOq9NZOdt010J5GAKrtGqrM7mRwdnwQtxXo7+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.199) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PoWoM0eAwf0c6B2J8F3WMXz6AJk3W5fLZ1XhKoEJ7c8=; b=IXwtYQaJaT24043jaFspOBLpOdURYNV+p4dIQP4426St19zsvE2LGTvpLFDv06UY1mNddoZ1h+VdyM/WPnKpGnyuvZ6+uSmj3o3Dk26fDQPUaLrs9HW7SiMSbMgwv3T6P42E724ga8jS1EqImCLwWMsqqcbScfDFLPQqtuBs8IU= Received: from AS8PR05CA0007.eurprd05.prod.outlook.com (2603:10a6:20b:311::12) by VI1PR10MB2365.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:89::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.27; Fri, 11 Jun 2021 16:14:55 +0000 Received: from VE1EUR03FT025.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:311:cafe::bb) by AS8PR05CA0007.outlook.office365.com (2603:10a6:20b:311::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.20 via Frontend Transport; Fri, 11 Jun 2021 16:14:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.199) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.199 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.199; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.199) by VE1EUR03FT025.mail.protection.outlook.com (10.152.18.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:54 +0000 Received: from FE-EXCAS2000.de.bosch.com (10.139.217.199) by eop.bosch-org.com (139.15.153.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:39 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by FE-EXCAS2000.de.bosch.com (10.139.217.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:39 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:37 +0200 From: To: , , CC: , , Subject: [PATCH v4 13/18] configs: am335x_guardian: Enable display config Date: Fri, 11 Jun 2021 16:13:45 +0000 Message-ID: <20210611161350.2141-14-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d91c49cf-374a-4479-29f7-08d92cf40cd0 X-MS-TrafficTypeDiagnostic: VI1PR10MB2365: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:208; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 95B7zbU8CTAsb2r1fsSrItBG/zbUOmjDYFmKsyiEBo2LxnJPx/h04BwbSxw3si1NT7EMB0oKa2iuom/6lf5ak1mpNVe/zhygSZffuO3+2qkcWUYuzF//uffHBLsOUsA3gROHdHeLVumJA1i1VnsOrST6pnC8cWucv6bs6iRB7+3xqjLCrG8B6EgoPjKHT3h887oHcNegVmI38e5/cRBlbErNoyOU2cm6PdGgPTK4gld8qlIdRzHDGGO1yZwdrfGPZSs8NvYWSSJ4f+CdSfEYknbKiefYywTyc4E/LnaTO/FrE1Cc4UFdW29Xi2B/LqE3Ef1jOIv6MzMXwDlvsnvD84Sq7zJooEmvBtZo43J4OU+oXUuyR4eoxYhiLgPl8heuFkOG5j8d3upgVxHyFcm+0oQHV7O2JIueXwDyRqxL3vWSor3TwdVcRKZGOKC0kuqaTOVx5XwdzRjtT44p1Tt73gt2WB9GpO14DXKnrWSyjcMlGgsXD1YqjOXyvCauwc10Ynq69WroIIJZ4xgeKJME4dBzyWp4lP8gPt/e24oT/8RNePjTLICbEoA5rqRQVM1cK2KdDX8byLKAYuMtC94Z7LXhMjhz6XwvH6ytDeDaov4fVQ0gp0/iX5xQqpJvsJjulrujYMRZOqRp6kTw4n6VvPk1v7nVFCgDBZkRRyvly9jzdgwOxJzFBX9ox4Nsefrh X-Forefront-Antispam-Report: CIP:139.15.153.199; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(26005)(2906002)(107886003)(54906003)(110136005)(16526019)(4326008)(1076003)(498600001)(356005)(83380400001)(8676002)(186003)(70586007)(81166007)(6666004)(336012)(47076005)(2616005)(2876002)(82310400003)(8936002)(5660300002)(36860700001)(86362001)(70206006)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:54.6924 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d91c49cf-374a-4479-29f7-08d92cf40cd0 X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.199]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT025.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB2365 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath -Enable configuration for display driver -Disable support for SPL GPIO, CMD LED & SPL GPIO Signed-off-by: Gireesh Hiremath --- configs/am335x_guardian_defconfig | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/configs/am335x_guardian_defconfig b/configs/am335x_guardian_defconfig index 6e57fefaa8..38c5c47c16 100644 --- a/configs/am335x_guardian_defconfig +++ b/configs/am335x_guardian_defconfig @@ -1,7 +1,7 @@ CONFIG_ARM=y CONFIG_ARCH_CPU_INIT=y CONFIG_ARCH_OMAP2PLUS=y -CONFIG_SPL_GPIO_SUPPORT=y +# CONFIG_SPL_GPIO_SUPPORT is not set CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y CONFIG_ENV_SIZE=0x40000 @@ -55,8 +55,7 @@ CONFIG_CMD_MTD=y CONFIG_CMD_NAND=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set -CONFIG_BOOTP_DNS2=y -# CONFIG_CMD_LED is not set +CONFIG_CMD_BMP=y CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_MTDPARTS=y CONFIG_MTDPARTS_DEFAULT="mtdparts=nand.0:256k(SPL),256k(SPL.backup1),256k(SPL.backup2),256k(SPL.backup3),1m(u-boot),1m(u-boot.backup1),1m(u-boot-2),1m(u-boot-2.backup1),256k(u-boot-env),256k(u-boot-env.backup1),256k(splash-screen),-(UBI)" @@ -99,6 +98,9 @@ CONFIG_PHY=y CONFIG_NOP_PHY=y CONFIG_PINCTRL=y CONFIG_PINCTRL_SINGLE=y +CONFIG_SPI=y +CONFIG_DM_SPI=y +CONFIG_OMAP3_SPI=y CONFIG_USB=y CONFIG_DM_USB_GADGET=y CONFIG_SPL_DM_USB_GADGET=y @@ -111,6 +113,11 @@ CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" CONFIG_USB_GADGET_VENDOR_NUM=0x0451 CONFIG_USB_GADGET_PRODUCT_NUM=0xd022 CONFIG_USB_ETHER=y +CONFIG_DM_VIDEO=y +CONFIG_DM_PANEL_HX8238D=y +CONFIG_VIDEO_BPP16=y +CONFIG_SYS_WHITE_ON_BLACK=y +CONFIG_AM335X_LCD=y CONFIG_SPL_WDT=y # CONFIG_SPL_USE_TINY_PRINTF is not set CONFIG_SPL_OF_LIBFDT=y From patchwork Fri Jun 11 16:13:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491047 X-Patchwork-Delegate: lokeshvutla@ti.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=Q0Pfyp2M; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mFN1mTPz9sWD for ; Sat, 12 Jun 2021 02:16:56 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8E0678290A; Fri, 11 Jun 2021 18:15:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="Q0Pfyp2M"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7CA1582916; Fri, 11 Jun 2021 18:14:58 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2060f.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::60f]) (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 F2C988284C for ; Fri, 11 Jun 2021 18:14:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e0pQ1y8n0xEX9tVycNwUuJgiphorg+SbsarCBoImzVzWwadaTAIitZMv3VQuTaALbXCFu9MDF4IjjkuiBnZEmhtxzYK7VUUy5ib7IYj0QSlTQvqf40jK/YzFmbmlI4anT8HBdnUhRFMqKjSj1Zk280F6jiHSrVIUZiiegXtedosOZxsZ2FElnJLo8fkWj7tgJlhcKHriW/z5915SqeQm0+KOTmlrANLVIdhdwrgjAQQLjDGMEztnuBUASwpU0Xul7vS2qtb+xApdNa3vXk1Fxa5wpV0kd+UE7IOSrRLhTtYE6QgeikLQt4hD44QQAsa3UwLOtGKmp7ooQhoKRZf40w== 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=6Hb0S3QOZfbuQ2I2EokZ7Bx+HeavptEnQSkdm+FybIw=; b=YGw4Hidb8oYPsiyE1mkEEjqykI+ePxHaHIQ69uVBjXxjq5o5uAt0jJumQzDtDIY7fDTUJl63xmnIsaMe6GRlusaZ+7tbKpeYfOeKzstnaEvG75tcB/J5zLTAt1KTEnrdfdmmtNPHQPYa8Ud34UvgU5JgIi8F7hcDKDW3gM6DskyvllthXvJF10gmsmJVgaUaf9fSZwT8UfXrCLYxxGd/9VIxbt4U117anL8CzSlekt4IFTmPGk2QsntEdAG1jiSfCSw34P/VVDZR2iZzeKBuKlwfz4fuSaORfpT4TvMGO2qDNvt11ZJoTYgUovn8+XOX7vioL/tFFfjtSZvmMcO7uw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.201) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6Hb0S3QOZfbuQ2I2EokZ7Bx+HeavptEnQSkdm+FybIw=; b=Q0Pfyp2MiV+bKdv403ZX7yFKow+akT/9/Yzxtj81xuHU9x+JFAIEz+XYMGvYo+3bMYgQXwp5kwKKV0cAMfdUhfEgmEmdHbgDb+s9s+sKrVjtnxSVAWtWjIUPQ4XpnYgTLbUP7P/zHpdQ0O+5Zhm48QoRqK6WezBhKPLguqiWeVo= Received: from PR2P264CA0019.FRAP264.PROD.OUTLOOK.COM (2603:10a6:101::31) by AM0PR10MB2724.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:12f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.23; Fri, 11 Jun 2021 16:14:54 +0000 Received: from VE1EUR03FT038.eop-EUR03.prod.protection.outlook.com (2603:10a6:101:0:cafe::dd) by PR2P264CA0019.outlook.office365.com (2603:10a6:101::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.201) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.201 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.201; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.201) by VE1EUR03FT038.mail.protection.outlook.com (10.152.19.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:53 +0000 Received: from SI-EXCAS2000.de.bosch.com (10.139.217.201) by eop.bosch-org.com (139.15.153.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:42 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by SI-EXCAS2000.de.bosch.com (10.139.217.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:42 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:39 +0200 From: To: , , CC: , , Subject: [PATCH v4 14/18] drivers: video: hx8238 fix build bug Date: Fri, 11 Jun 2021 16:13:46 +0000 Message-ID: <20210611161350.2141-15-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0909b103-4b07-4955-92f6-08d92cf40c21 X-MS-TrafficTypeDiagnostic: AM0PR10MB2724: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:293; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3IBv5NRRodWwqiosfsFYB1a/ldX6ZiQFnAwQ6ysqfH+I6slMjsKNZx3IayC3bScRlAJyrq+Zws7Pkx6uT1bNb8pS9mL4lzeEHeKn9JCEf//uuYrc2zuRNiupkX1B045JUOhjeeHCpuy8y57xQPvszkgVlO/DU0QISzPaLLbuAUVPXcOxlPE4e2n0chGWN0ZDrsc2fbK4os0woDz2vLjBzy4YuwO1vOPWRcCEgAXBjZ2sssfHWx3DyuzJmLvArj7ywY5nKlGpYCvlIMWhZVIhKKNCbeuLvypnHD9WrmsaUrAZ//SgP/7oi8dbSTGe4tOm0lfxxOhGrdh9hQ2yECGrbjpUOX1wNz5zqLbum1Qk363NJdgfLzO1QFLpH2V6+nBLIbOQkHN1xyrkILneOMW4W4A3c3dEfjKhazhG86rNy1QhwbeC80Muye/0PD/+MjwTAAWnXfCk209Y8oStEI1abuVoOTvJZrQs5O2pmCuz5F7Ev1+ow9oZrwNMSp+uN5qfG42aYqoUEjipaG97r3J/aJGQie5rz3kQ1XBMd4597pN3F+m8c2tUsCMCTmDxX7IpZ6D7uMf62gZaTBFUOc2wVmSHJ/KnVPGWbG6aJrt8/Iy7+z2c8vaXk62CF06ojZ33aNyJbn3ShC7fwBBrag1s1bxQgDLH993D5nDbK6btFjqOTMmx/cqlONQlhfNwp7iD X-Forefront-Antispam-Report: CIP:139.15.153.201; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(82310400003)(8936002)(1076003)(8676002)(2906002)(26005)(2876002)(4326008)(47076005)(498600001)(356005)(107886003)(83380400001)(86362001)(36860700001)(16526019)(2616005)(186003)(5660300002)(336012)(81166007)(6666004)(70206006)(110136005)(54906003)(70586007)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:53.5755 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0909b103-4b07-4955-92f6-08d92cf40c21 X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.201]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR10MB2724 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath update panel driver hx8238 fix build bug Signed-off-by: Gireesh Hiremath --- drivers/video/Makefile | 2 +- drivers/video/hx8238d.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/Makefile b/drivers/video/Makefile index 933f06e9d8..1c534a6f9a 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -15,7 +15,7 @@ obj-$(CONFIG_VIDEO_MIPI_DSI) += dsi-host-uclass.o obj-$(CONFIG_DM_VIDEO) += video-uclass.o vidconsole-uclass.o obj-$(CONFIG_DM_VIDEO) += video_bmp.o obj-$(CONFIG_PANEL) += panel-uclass.o -obj-$(CONFIG_PANEL_HX8238D) += hx8238d.o +obj-$(CONFIG_DM_PANEL_HX8238D) += hx8238d.o obj-$(CONFIG_SIMPLE_PANEL) += simple_panel.o endif diff --git a/drivers/video/hx8238d.c b/drivers/video/hx8238d.c index f7e7753a53..6ee97cb4ff 100644 --- a/drivers/video/hx8238d.c +++ b/drivers/video/hx8238d.c @@ -191,7 +191,7 @@ U_BOOT_DRIVER(hx8238d) = { .name = "hx8238d", .id = UCLASS_PANEL, .of_match = hx8238d_ids, - .ofdata_to_platdata = hx8238d_ofdata_to_platdata, + .of_to_plat = hx8238d_ofdata_to_platdata, .probe = hx8238d_probe, - .priv_auto_alloc_size = sizeof(struct hx8238d_priv), + .priv_auto = sizeof(struct hx8238d_priv), }; From patchwork Fri Jun 11 16:13:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491048 X-Patchwork-Delegate: lokeshvutla@ti.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=etMVtqXO; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mFb24g8z9sXG for ; Sat, 12 Jun 2021 02:17:06 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A5F3E82925; Fri, 11 Jun 2021 18:15:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="etMVtqXO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 25D6A82917; Fri, 11 Jun 2021 18:15:00 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on0613.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::613]) (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 5691682893 for ; Fri, 11 Jun 2021 18:14:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GU3P9PfFiXTfMi8mErh+Y9tLqLZf6CFMT8190zNMdV2NShWmgBYeWwFfZ9lchBbuA24oN2B/yZe1dDDNlZTowJAAayW1y+1F1lrMcotacFnsbY555pjqD4LDgr6ujQNREnGoxa3BF3Ig0hiKTLcSwPeexIzJp2G+6W6VmHrss2fGQ6Yzm+04w5ZL3FY8wdbDkhTkpXwlm+K+YRwd87HE6H1nDH6FPWKwhuQNit7pywZXMjZRvuoD7dMvLzAKJW/nVmsShdls6puCTOyseh3kM51LO0NsB1DTg/AXvRtm/r8433iGYp23Fux64F5hRpwK1CeffkzuQq6gAHETtK7ybQ== 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=iA4tEAmfT/B07FPYIIB5Tar2s/VimtE3kFDYmBafgBQ=; b=aQLnWjcv7GRXzDTbx61+8o3kjFXdx+UkBHvUdPHkHPKh6rW9KFnokAZrGo79OKIdLpzaiZuca55CNw+QqnQ2Q5YYY0HxNG3TC49rEbWpPEAUUeRHywyjf7JaPHxXoUufXcKLIdXwwTrsmIf5m4eaOK1P9aS1g0YgWmV02e+cIWXwn35pWd5wRTYClRtM974Jqi44jJ0UgrKiHKPbdG0Jf7iQydVkpgd4CKbGFNZHVz7qi0X5EADJeF9swvetn/WjzGBzyHjPBTR26zF4UCefZu7sSscQguh+imd1RAGw0tqflGS+ze0hRK8Ycl5SfYozNrBTH5MPS6gYusJXzavDpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.201) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iA4tEAmfT/B07FPYIIB5Tar2s/VimtE3kFDYmBafgBQ=; b=etMVtqXOK5Db/ipZib5pYbO2Ww4SnCLHprVMiwPiyez0a+agNq92qh01gH68jF8fFbdQZyBe1p2s+ufAHRUMNKDZyqWA/fbHtNlOKwZ3Me64lD6iWGE6tcuDDKZv2qDSRTMSQYkpiF8ISuslUj31vX0OBcBKsZTWyezH+zgNZlc= Received: from AM6PR0202CA0062.eurprd02.prod.outlook.com (2603:10a6:20b:3a::39) by VI1PR10MB3487.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:800:132::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.22; Fri, 11 Jun 2021 16:14:54 +0000 Received: from VE1EUR03FT022.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:3a:cafe::cf) by AM6PR0202CA0062.outlook.office365.com (2603:10a6:20b:3a::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.20 via Frontend Transport; Fri, 11 Jun 2021 16:14:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.201) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.201 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.201; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.201) by VE1EUR03FT022.mail.protection.outlook.com (10.152.18.64) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:53 +0000 Received: from FE-EXCAS2000.de.bosch.com (10.139.217.199) by eop.bosch-org.com (139.15.153.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:44 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by FE-EXCAS2000.de.bosch.com (10.139.217.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:44 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:42 +0200 From: To: , , CC: , , Subject: [PATCH v4 15/18] am335x, guardian: Enable panel driver Himax HX8238D Date: Fri, 11 Jun 2021 16:13:47 +0000 Message-ID: <20210611161350.2141-16-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 77243fc7-018b-4df7-c9b1-08d92cf40c3f X-MS-TrafficTypeDiagnostic: VI1PR10MB3487: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WGOvxQ1Razj2tfmibF8vVEa54Arv+I30ucmmbaRh5jrs/lzu3GeAe+v7zA2ToBXW2YqlotPpK1X9F2ObQc9c1ZKHtc26dDsL8Ax7GWsFIJ9yDVg6XuHCn+LbhgqReQ0SSjo3b1r9Tstm6LbijYK4XO4omSYhQU9WkoEQc1VkRZZIYXyQLuxtDOlGATxsJe3Qu7EMNttwV7R9tLbyop9ujM6vJkcrmKsltt9CfcA0lUx20sghcPOcj8b32P5NxkGd9JGAGN/56KNyrAW+qyq2bdeiWhAjhBvPGa2Yw7kPMUt6LO7zpBt69PIOBh3Hcd3iuK4yWbZyq0XD/WSuSv2sgPikv6X+mEpVMeJpGIJATRMuNFlvmMF0YflHIbN6cEK1z0RVTkhSif2iVmIzB6HRrFsE/1OjAfjXUtBrseLLgFvGnuSkgy79SYdKHYcxCwqRiNY3z/8Iv0hKf2IQwuIH1JKDjYv2Gnf6qA/GoztTFwZsdG5KzqfgqZUNisIh7hgufGR+nvBDgQFrLUQab56IyWq1Y4vzHhRTdyWm5ysuh4+uRipcp543ajz4DXn1kf4RpaNTeLWzDePAp0LgzIcNM+wUzqHhxergO4sCM6mqRXcW2wSN5jjwPB33iPQM0ilMl0USJq7+sF99DAfVuKwaGyxy/ZU4jce3tz108PqHC0iV1ggxYc+QvTvA1dLH0BW8 X-Forefront-Antispam-Report: CIP:139.15.153.201; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(186003)(8936002)(26005)(356005)(498600001)(16526019)(81166007)(70206006)(54906003)(82310400003)(8676002)(5660300002)(86362001)(2876002)(36860700001)(336012)(107886003)(83380400001)(2616005)(2906002)(4326008)(1076003)(70586007)(110136005)(47076005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:53.7727 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 77243fc7-018b-4df7-c9b1-08d92cf40c3f X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.201]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT022.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB3487 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath - Enable lcd controller - Display splash screen Signed-off-by: Gireesh Hiremath --- arch/arm/dts/am335x-guardian-u-boot.dtsi | 11 +++ arch/arm/dts/am335x-guardian.dts | 8 ++- arch/arm/mach-omap2/am33xx/Kconfig | 2 + board/bosch/guardian/board.c | 87 +++++++++++++++++++++++- board/bosch/guardian/mux.c | 3 +- include/configs/am335x_guardian.h | 11 +++ 6 files changed, 119 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/am335x-guardian-u-boot.dtsi b/arch/arm/dts/am335x-guardian-u-boot.dtsi index 986f58e664..a1a7913de8 100644 --- a/arch/arm/dts/am335x-guardian-u-boot.dtsi +++ b/arch/arm/dts/am335x-guardian-u-boot.dtsi @@ -42,6 +42,17 @@ u-boot,dm-pre-reloc; }; +&spi0 { + lcd0: display@0 { + compatible = "himax,hx8238d"; + pinctrl-names = "default"; + pinctrl-0 = <&lcd0_pins>; + reg = <0>; + label = "lcd"; + spi-max-frequency = <100000>; + }; +}; + &uart0 { u-boot,dm-pre-reloc; }; diff --git a/arch/arm/dts/am335x-guardian.dts b/arch/arm/dts/am335x-guardian.dts index 207246b4e0..69bee45848 100644 --- a/arch/arm/dts/am335x-guardian.dts +++ b/arch/arm/dts/am335x-guardian.dts @@ -87,7 +87,7 @@ ac-bias = <255>; ac-bias-intrpt = <0>; dma-burst-sz = <16>; - bpp = <24>; + bpp = <16>; bus-width = <16>; fdd = <0x80>; sync-edge = <0>; @@ -247,6 +247,12 @@ &lcdc { blue-and-red-wiring = "crossed"; status = "okay"; + + port { + lcdc_0: endpoint@0 { + remote-endpoint = <0>; + }; + }; }; &mmc1 { diff --git a/arch/arm/mach-omap2/am33xx/Kconfig b/arch/arm/mach-omap2/am33xx/Kconfig index 11e54cd293..65f43944fe 100644 --- a/arch/arm/mach-omap2/am33xx/Kconfig +++ b/arch/arm/mach-omap2/am33xx/Kconfig @@ -95,6 +95,8 @@ config TARGET_AM335X_GUARDIAN select DM_SERIAL select DM_GPIO select DM_USB + select DM_VIDEO + select DM_PANEL_HX8238D config TARGET_AM335X_SL50 bool "Support am335x_sl50" diff --git a/board/bosch/guardian/board.c b/board/bosch/guardian/board.c index 4388ef70d2..179511a670 100644 --- a/board/bosch/guardian/board.c +++ b/board/bosch/guardian/board.c @@ -26,12 +26,16 @@ #include #include #include -#include #include #include #include #include #include +#include +#include +#include +#include +#include #include "board.h" DECLARE_GLOBAL_DATA_PTR; @@ -250,13 +254,94 @@ void lcdbacklight_en(void) brightness != 0 ? 0x0A : 0x02, 0xFF); } +#if IS_ENABLED(CONFIG_AM335X_LCD) +static void splash_screen(void) +{ + struct udevice *video_dev; + struct udevice *console_dev; + struct video_priv *vid_priv; + struct mtd_info *mtd; + size_t len; + int ret; + + struct mtd_device *mtd_dev; + struct part_info *part; + u8 pnum; + + ret = uclass_get_device(UCLASS_VIDEO, 0, &video_dev); + if (ret != 0) { + debug("video device not found\n"); + goto exit; + } + + vid_priv = dev_get_uclass_priv(video_dev); + mtdparts_init(); + + if (find_dev_and_part(SPLASH_SCREEN_NAND_PART, &mtd_dev, &pnum, &part)) { + debug("Could not find nand partition\n"); + goto splash_screen_text; + } + + mtd = get_nand_dev_by_index(mtd_dev->id->num); + if (!mtd) { + debug("MTD partition is not valid\n"); + goto splash_screen_text; + } + + len = SPLASH_SCREEN_BMP_FILE_SIZE; + ret = nand_read_skip_bad(mtd, part->offset, &len, NULL, + SPLASH_SCREEN_BMP_FILE_SIZE, + (u_char *)SPLASH_SCREEN_BMP_LOAD_ADDR); + if (ret != 0) { + debug("Reading NAND partition failed\n"); + goto splash_screen_text; + } + + ret = video_bmp_display(video_dev, SPLASH_SCREEN_BMP_LOAD_ADDR, 0, 0, false); + if (ret != 0) { + debug("No valid bmp image found!!\n"); + goto splash_screen_text; + } else { + goto exit; + } + +splash_screen_text: + vid_priv->colour_fg = CONSOLE_COLOR_RED; + vid_priv->colour_bg = CONSOLE_COLOR_BLACK; + + if (!uclass_first_device_err(UCLASS_VIDEO_CONSOLE, &console_dev)) { + debug("Found console\n"); + vidconsole_position_cursor(console_dev, 17, 7); + vidconsole_put_string(console_dev, SPLASH_SCREEN_TEXT); + } else { + debug("No console device found\n"); + } + +exit: + return; +} +#endif /* CONFIG_AM335X_LCD */ + int board_late_init(void) { + int ret; + struct udevice *cdev; + #ifdef CONFIG_LED_GPIO led_default_state(); #endif set_bootmode_env(); + + ret = uclass_get_device(UCLASS_PANEL, 0, &cdev); + if (ret) { + debug("video panel not found: %d\n", ret); + return ret; + } + lcdbacklight_en(); + if (IS_ENABLED(CONFIG_AM335X_LCD)) + splash_screen(); + return 0; } #endif /* CONFIG_BOARD_LATE_INIT */ diff --git a/board/bosch/guardian/mux.c b/board/bosch/guardian/mux.c index 9c81f29f9f..12c3eb666f 100644 --- a/board/bosch/guardian/mux.c +++ b/board/bosch/guardian/mux.c @@ -28,8 +28,9 @@ static struct module_pin_mux i2c0_pin_mux[] = { static struct module_pin_mux guardian_interfaces_pin_mux[] = { {OFFSET(mcasp0_ahclkx), (MODE(7) | PULLDOWN_EN)}, + {OFFSET(mii1_txen), (MODE(7) | PULLDOWN_EN)}, {OFFSET(mcasp0_aclkx), (MODE(7) | PULLUP_EN)}, - {OFFSET(mii1_txd0), (MODE(7) | PULLUP_EN)}, + {OFFSET(mdio_clk), (MODE(7) | PULLUP_EN)}, {OFFSET(uart1_rxd), (MODE(7) | RXACTIVE | PULLUDDIS)}, {OFFSET(uart1_txd), (MODE(7) | PULLUDDIS)}, {OFFSET(mii1_crs), (MODE(7) | PULLDOWN_EN)}, diff --git a/include/configs/am335x_guardian.h b/include/configs/am335x_guardian.h index 73248292f2..c161b93352 100644 --- a/include/configs/am335x_guardian.h +++ b/include/configs/am335x_guardian.h @@ -82,6 +82,17 @@ #endif /* ! CONFIG_SPL_BUILD */ +#define CONFIG_BMP_16BPP +#define SPLASH_SCREEN_NAND_PART "nand0,10" +#define SPLASH_SCREEN_BMP_FILE_SIZE 0x26000 +#define SPLASH_SCREEN_BMP_LOAD_ADDR 0x82000000 +#define SPLASH_SCREEN_TEXT "U-Boot" + +/* BGR 16Bit Color Definitions */ +#define CONSOLE_COLOR_BLACK 0x0000 +#define CONSOLE_COLOR_WHITE 0xFFFF +#define CONSOLE_COLOR_RED 0x001F + /* NS16550 Configuration */ #define CONFIG_SYS_NS16550_COM1 0x44e09000 /* UART0 */ #define CONFIG_SYS_NS16550_COM2 0x48022000 /* UART1 */ From patchwork Fri Jun 11 16:13:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491050 X-Patchwork-Delegate: lokeshvutla@ti.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; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=PoI1Y7Xx; 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mFz3HSQz9sWD for ; Sat, 12 Jun 2021 02:17:27 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F21418294B; Fri, 11 Jun 2021 18:15:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="PoI1Y7Xx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2E0A0828FB; Fri, 11 Jun 2021 18:15:01 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-am5eur02on0620.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe07::620]) (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 6E5B282900 for ; Fri, 11 Jun 2021 18:14:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E9ANJ+DvD5o+kTfGdbFFpN1rD1MZNXgGoQ0teYuas2dW8NocmG3F/kVKvwu++7ah+ECp/gaG2s96IzY1Q6HfBSRKvwln0eqQnYtqA7X/XnWKnE6s3TdM8nurXPZXv5g82sIfVG9tMh6OXV1xVWKYxHfXMsZwDirSDD34C2T8RYk2eQJzyKehgShzrWCME35i/F+eXJIm+DzuGPmHCLpHa4ejdh7+/RQ+QyyMWYsMYqcDvvY2iclp61kylHiPppxhzT0xLbWH9w54PyOGq4wtWUxoYHCHlzzQmUnZsfSutosXA6qGFPg5ylAyNth7X3s/aaqgW5qOvEXugXN1NO7pFA== 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=mKj8qbeel88dsqltGo5V+kzA3UptS9MBNKw5QGwWP18=; b=kxElkLLWMfE54uIAOjTgil8AQYuBb7VIyPq11XDr0jDfioXfYbbIBpjA68n2vp6znstkk86Q6xyJL6w2m4sbjs8RQH0LMr07gkhGa8o2StUNRtsinKvcXdXOjGaPyanVKfPDJ3qs4zKDeng9ZnVkcZAyXhCD2gNJU1DPrzCL6GGf7QZydZA+r19VAKvTp+oHSI/MdYSe+YopgbRfpF9sdZJ2kK4K9f3viBPRSa9GUosOZV7cSvNPx2NYERU2Fh3IcF5zPBX9/uSF97pvHAvxdrasqk4Jpv4Z5Y+RIkX/H6u2/vGsw/13cOk/MObpjpiNc7TprowdpMGgZ13ZBspTeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.201) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mKj8qbeel88dsqltGo5V+kzA3UptS9MBNKw5QGwWP18=; b=PoI1Y7XxDK6ehFzWTIg5QYXM0LwRhxvH3i+liqYjw0uTHWKZg2/k6+ADnqtvFXP+tlZX+y69wgVkhC760BeXA8Ca+4RvdUto+N0GhWbITW5YQIe5tydPriog5Dn+nodhKkSMJnISUqCVde3/vo/7lRIzsRIbOkCmCv3Egj/YV/c= Received: from PR2P264CA0008.FRAP264.PROD.OUTLOOK.COM (2603:10a6:101::20) by AS8PR10MB4833.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:344::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.23; Fri, 11 Jun 2021 16:14:55 +0000 Received: from VE1EUR03FT038.eop-EUR03.prod.protection.outlook.com (2603:10a6:101:0:cafe::30) by PR2P264CA0008.outlook.office365.com (2603:10a6:101::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.20 via Frontend Transport; Fri, 11 Jun 2021 16:14:55 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.201) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.201 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.201; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.201) by VE1EUR03FT038.mail.protection.outlook.com (10.152.19.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:55 +0000 Received: from FE-EXCAS2000.de.bosch.com (10.139.217.199) by eop.bosch-org.com (139.15.153.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:47 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by FE-EXCAS2000.de.bosch.com (10.139.217.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:47 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:44 +0200 From: To: , , CC: , , Subject: [PATCH v4 16/18] am335x, guardian: software update available status is stored in AM3352 RTC scracth register Date: Fri, 11 Jun 2021 16:13:48 +0000 Message-ID: <20210611161350.2141-17-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5ecadbde-44fa-40b0-8480-08d92cf40d38 X-MS-TrafficTypeDiagnostic: AS8PR10MB4833: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iU+PZqVOCb/XLR5rfivelhTQT67kdrHg4tgRa3zx4H3YsWK85KBW2mWl1kaQQUSpwuJsguqfpdak1NFisIaSifeyDtTZlS8wA2fHaux5E84d+mPNe7rpVJdiudhkToEipJ7GTQuMM5X+yHw+xGd5ONTJkchP7mG5BM8TOtNqkphhDiQm40U9RTBBT434ly0wMpuaGu4hHYvHXV2nRIzY2lK0VIYaMqaZiGGKA5SlwLh4r4VuOeAKZF5+s3alxnvPW0LFmV53cPwm4gQKh2BbFZdUH/Do71YLYSH5fpY9IIwARiHbUKBg17BCiPxVIGYkV0YJALcsu70xw2AU/rz/eZUtvVLfxYqIYr7XeAtutjq8JkyfnT4hYWcj9O6a+ec4IRzpgXwEDbSJISuSbz16cVoP4hzZG2o7uaYZq8p5ryVCGhGaXCskrgmUIVepLmp6kon4WqL6kipKrqg/pEkA5paqHzdnzA2rBURLQgl8bwMW1amLBdp1YFD4quTwKzhGj/zBNlS9OybwG33CgDgEX2gNGcxqvMUVhIb3zPjV1M/yhOI4uG/NgkQ8A/MzICSrbKparKOyRwqKgdwjHUqr2lES3dBzDbTvxT9sfQCiA6eq8fTnAzd2Kf0ujoqN3Y1+tIBenRznFe2ef16uGd2KvQMH2arVlNPvcP0tmXvNyjSNpH326N13i0DWji2M1iH8 X-Forefront-Antispam-Report: CIP:139.15.153.201; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(1076003)(2906002)(186003)(16526019)(4326008)(336012)(26005)(110136005)(86362001)(15650500001)(356005)(70206006)(81166007)(5660300002)(70586007)(498600001)(83380400001)(82310400003)(2616005)(2876002)(47076005)(8936002)(54906003)(8676002)(36860700001)(107886003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:55.4086 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5ecadbde-44fa-40b0-8480-08d92cf40d38 X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.201]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR10MB4833 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath RTC second scratch register[32-bit]: -zero byte hold boot count value -first byte hold update available state -second byte hold version -third byte hold magic number Signed-off-by: Gireesh Hiremath Gbp-Pq: Topic apertis/guardian Gbp-Pq: Name am335x-guardian-software-update-available-status-is-store.patch --- drivers/bootcount/Kconfig | 34 +++++++++++++++-- drivers/bootcount/Makefile | 1 + drivers/bootcount/bootcount_nvmem.c | 57 +++++++++++++++++++++++++++++ 3 files changed, 89 insertions(+), 3 deletions(-) create mode 100644 drivers/bootcount/bootcount_nvmem.c diff --git a/drivers/bootcount/Kconfig b/drivers/bootcount/Kconfig index b5ccea0d9c..0de2b7bd78 100644 --- a/drivers/bootcount/Kconfig +++ b/drivers/bootcount/Kconfig @@ -42,6 +42,25 @@ config BOOTCOUNT_AM33XX This requires the RTC clocks, etc, to be enabled prior to use and not all boards with this IP block on it will have the RTC in use. +config BOOTCOUNT_AM33XX_NVMEM + bool "Boot counter in AM33XX RTC IP block with upgrade_available flag" + depends on AM33XX + select SPL_AM33XX_ENABLE_RTC32K_OSC if AM33XX + help + Add support for maintaining bootcount,upgrade_available, + version and BOOTMAGIC in a AM33xx RTC IP block + scratch register2. + + A bootcount driver for the RTC IP block found on many TI platforms. + This requires the RTC clocks, etc, to be enabled prior to use and + not all boards with this IP block on it will have the RTC in use. + + If there is upgrade in software then "upgrade_available" is 1, + "bootcount" is incremented otherwise "upgrade_available" and + "bootcount" is always 0. So the Userspace Application must set + the "upgrade_available" and "bootcount" variable to 0, if a boot + was successfully. + config BOOTCOUNT_ENV bool "Boot counter in environment" help @@ -177,16 +196,25 @@ config SYS_BOOTCOUNT_EXT_NAME config SYS_BOOTCOUNT_ADDR hex "RAM address used for reading and writing the boot counter" - default 0x44E3E000 if BOOTCOUNT_AM33XX + default 0x44E3E000 if BOOTCOUNT_AM33XX || BOOTCOUNT_AM33XX_NVMEM default 0xE0115FF8 if ARCH_LS1043A || ARCH_LS1021A depends on BOOTCOUNT_AM33XX || BOOTCOUNT_GENERIC || BOOTCOUNT_EXT || \ - BOOTCOUNT_I2C + BOOTCOUNT_I2C || BOOTCOUNT_AM33XX_NVMEM help Set the address used for reading and writing the boot counter. config SYS_BOOTCOUNT_MAGIC hex "Magic value for the boot counter" - default 0xB001C041 + default 0xB001C041 if BOOTCOUNT_GENERIC || BOOTCOUNT_EXT || \ + BOOTCOUNT_AM33XX || BOOTCOUNT_ENV || \ + BOOTCOUNT_RAM || BOOTCOUNT_I2C || \ + BOOTCOUNT_AT91 || DM_BOOTCOUNT + default 0xB0 if BOOTCOUNT_AM33XX_NVMEM + depends on BOOTCOUNT_GENERIC || BOOTCOUNT_EXT || \ + BOOTCOUNT_AM33XX || BOOTCOUNT_ENV || \ + BOOTCOUNT_RAM || BOOTCOUNT_I2C || \ + BOOTCOUNT_AT91 || DM_BOOTCOUNT || \ + BOOTCOUNT_AM33XX_NVMEM help Set the magic value used for the boot counter. diff --git a/drivers/bootcount/Makefile b/drivers/bootcount/Makefile index 51d860b00e..12658ffdce 100644 --- a/drivers/bootcount/Makefile +++ b/drivers/bootcount/Makefile @@ -8,6 +8,7 @@ obj-$(CONFIG_BOOTCOUNT_RAM) += bootcount_ram.o obj-$(CONFIG_BOOTCOUNT_ENV) += bootcount_env.o obj-$(CONFIG_BOOTCOUNT_I2C) += bootcount_i2c.o obj-$(CONFIG_BOOTCOUNT_EXT) += bootcount_ext.o +obj-$(CONFIG_BOOTCOUNT_AM33XX_NVMEM) += bootcount_nvmem.o obj-$(CONFIG_DM_BOOTCOUNT) += bootcount-uclass.o obj-$(CONFIG_DM_BOOTCOUNT_RTC) += rtc.o diff --git a/drivers/bootcount/bootcount_nvmem.c b/drivers/bootcount/bootcount_nvmem.c new file mode 100644 index 0000000000..5f266d5ec8 --- /dev/null +++ b/drivers/bootcount/bootcount_nvmem.c @@ -0,0 +1,57 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2011 + * Heiko Schocher, DENX Software Engineering, hs@denx.de. + * (C) Copyright 2018 Robert Bosch Power Tools GmbH. + * + * A bootcount driver for the RTC IP block found on many TI platforms. + * This requires the RTC clocks, etc, to be enabled prior to use and + * not all boards with this IP block on it will have the RTC in use. + */ + +#include +#include + +#define BC_VERSION 2 + +void bootcount_store(ulong bootcount) +{ + u8 upgrade_available = 0; + ulong val = 0; + struct davinci_rtc *reg = + (struct davinci_rtc *)CONFIG_SYS_BOOTCOUNT_ADDR; + + val = raw_bootcount_load(®->scratch2); + upgrade_available = (val >> 8) & 0x000000ff; + + /* Only update bootcount during upgrade process */ + if (!upgrade_available) + bootcount = 0; + + val = (bootcount & 0x000000ff) | + (upgrade_available << 8) | + (BC_VERSION << 16) | + (CONFIG_SYS_BOOTCOUNT_MAGIC << 24); + + /* + * write RTC kick registers to enable write + * for RTC Scratch registers. Scratch register 2 is + * used for bootcount value. + */ + writel(RTC_KICK0R_WE, ®->kick0r); + writel(RTC_KICK1R_WE, ®->kick1r); + raw_bootcount_store(®->scratch2, val); +} + +ulong bootcount_load(void) +{ + unsigned long val = 0; + struct davinci_rtc *reg = + (struct davinci_rtc *)CONFIG_SYS_BOOTCOUNT_ADDR; + + val = raw_bootcount_load(®->scratch2); + if ((val >> 24) != CONFIG_SYS_BOOTCOUNT_MAGIC) + return 0; + else + return val & 0x000000ff; +} From patchwork Fri Jun 11 16:13:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491052 X-Patchwork-Delegate: lokeshvutla@ti.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; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=MX5EyoGi; 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mGN3NwMz9sWD for ; Sat, 12 Jun 2021 02:17:48 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3528182970; Fri, 11 Jun 2021 18:15:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="MX5EyoGi"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9D6AB8291E; Fri, 11 Jun 2021 18:15:05 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0627.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe02::627]) (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 641E681249 for ; Fri, 11 Jun 2021 18:14:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GRzs0F0i2C6OOkqyh1zqWHR+1kwICpou42KjaNSgPfStM37tR61YHrgSI5B3OqnKOZN/b0B5S1GxWAQSupGofy0IbZrY2mBBbRkzsBI+Q8fEhCdtyyOOAK2nP2z1B0NX5H5CRzN2ZDze17qHHyiBmkPa+5CB+E/DJblazWfsEbrJhSfEo1oZWQEXLKobIT28NyRbPGWrFk0eeWKB+aHdEGcmf76VZ3qK88OSD9MXz5ALULB42nw85lC1bWGKxwqYdV1HiPzzM2R5aBM9ns0dylitXNd9/+MUzlK0e5QJ7vYk/HiPIi0kHBG5XVCVCKe+4r/D4VOvWI7ICl4fWHPMQA== 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=qVRw6td06mKeW44yc9iAcsH8d3rT4QJ1rm20CL3cCiQ=; b=Kf1rKU4T+gXnR/Y2oo0sAyIfGQOflAYR4edfzu5kMojAIPQmdOLKVIu/7I8tFepnpvvGGGX8AjzlKqm1C4kHriERo61GN5MYWXE1dR7SyM/PKv8vyUGOi+B3qh/IoOtq/DP7JzkN2MMk06mtbur2jxNjYFbXi02T26X+ndvqfz1qf0uB6hP0MaB+zHeib7m3OkY7PGyh0Mo28AZk7L4fzbgM5vFkh2Su3GlVq8PxjnHL/Ua31DNMsv/Wj0wvvvgJ8+Z7T1rfuTzyTkxTYklED3TUtm4o1pwnOgb3xChv9OkX6TdnY5Glseldcq2T+SLteD+jqeLN12jxZswojC17fg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.201) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qVRw6td06mKeW44yc9iAcsH8d3rT4QJ1rm20CL3cCiQ=; b=MX5EyoGih4F47n/4rjcPoqE+l1XPMB4Dj6k3azuqtvgbY/oFp3LStyVCgBeZAFxXGEiZTJFstwWurUYk9uZ6OqI7J5kg0OqPrhvaVUTwgGIuMsqhZyaM13sRwFtg+klPCZDyiNkO1iFCf9vsSPKC3cZUYdJXCO3JWh0XKElCtIA= Received: from AM6PR0202CA0039.eurprd02.prod.outlook.com (2603:10a6:20b:3a::16) by PAXPR10MB5086.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:215::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21; Fri, 11 Jun 2021 16:14:57 +0000 Received: from VE1EUR03FT022.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:3a:cafe::51) by AM6PR0202CA0039.outlook.office365.com (2603:10a6:20b:3a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.20 via Frontend Transport; Fri, 11 Jun 2021 16:14:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.201) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.201 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.201; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.201) by VE1EUR03FT022.mail.protection.outlook.com (10.152.18.64) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:57 +0000 Received: from FE-EXCAS2001.de.bosch.com (10.139.217.200) by eop.bosch-org.com (139.15.153.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:50 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by FE-EXCAS2001.de.bosch.com (10.139.217.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:49 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:47 +0200 From: To: , , CC: , , Subject: [PATCH v4 17/18] configs: am335x_guardian: Enable bootcount nvmem support Date: Fri, 11 Jun 2021 16:13:49 +0000 Message-ID: <20210611161350.2141-18-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 68344dbd-504f-4873-6a30-08d92cf40e5f X-MS-TrafficTypeDiagnostic: PAXPR10MB5086: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1002; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4uTePHSFHnFvKCrno/gkPIVnHQnAdUqS/a+icrAp30YLGN+Ivr1VXU5JL3q4oldp4i4abC8grYeMioxQRN4LOb/aJhC8pHdvDDONiLSLvgxFH2UUHC7++40l7W9/I3iwibU+Po9ixdluHyltxr+YKoKsRE0PXBzcLEB0AS3H9YpIY++osgrci2h7t6/D3EFyriWdWoQBXVxql2kg+S+0CrDux/S74wkqseUR0Z9qHRoks/aCiPhfaD8rPk8DMgWXqigkcJOkuDXP36NlI6Gycr+9uUCN4hnfrh7/7azJoWCltpL3LzYCfsSDiUuFEaCUQI8MyfdJBFMBxZud+/liD3DeJxCokYWKOnTfAhSeU4QKvAa6r4DtCWjIf5SKg6RTM2R/piuFanNdcPu6d97y4RRp44fMoTAPO4q31h9D8DidDBQLzWpz7Ev/Jrz/COlnti581X28lwtV8nnA0T6PCfEKYrOeyY6b6bhjrqYyYIQJk5ROUR0/OcBkQT26OKTtpIc5N9xmc51z8z81iMgUAmKfDf3pxy4Txm2PZp+wjp22vS9TG24dVz4tffGW8wO0fnUC7xgseMvy6ITsP3Vuu8EkMzNXFK2SpuBsfP8vk+Cjof5gT5USraASmD/31BjQ7c5a1rYRmRfMK7rEfPKxrXMxTPpWtm/hPDtp9qJh9ySOQZEWpHxsBOPf9uWg7LIV X-Forefront-Antispam-Report: CIP:139.15.153.201; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(54906003)(8676002)(498600001)(356005)(107886003)(186003)(81166007)(82310400003)(8936002)(4326008)(16526019)(26005)(70206006)(5660300002)(70586007)(47076005)(2616005)(336012)(86362001)(2876002)(2906002)(4744005)(36860700001)(83380400001)(110136005)(1076003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:57.3419 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 68344dbd-504f-4873-6a30-08d92cf40e5f X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.201]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT022.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR10MB5086 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath include bootcount nvmem support Signed-off-by: Gireesh Hiremath --- configs/am335x_guardian_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_guardian_defconfig b/configs/am335x_guardian_defconfig index 38c5c47c16..3dc478d4e0 100644 --- a/configs/am335x_guardian_defconfig +++ b/configs/am335x_guardian_defconfig @@ -73,6 +73,7 @@ CONFIG_VERSION_VARIABLE=y CONFIG_BOOTP_SEND_HOSTNAME=y CONFIG_SPL_DM=y CONFIG_BOOTCOUNT_LIMIT=y +CONFIG_BOOTCOUNT_AM33XX_NVMEM=y CONFIG_CLK=y CONFIG_CLK_CCF=y CONFIG_CLK_TI_AM3_DPLL=y From patchwork Fri Jun 11 16:13:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gireesh Hiremath X-Patchwork-Id: 1491051 X-Patchwork-Delegate: lokeshvutla@ti.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=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.a=rsa-sha256 header.s=selector1 header.b=WMtCOPXp; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G1mGB06cXz9sWD for ; Sat, 12 Jun 2021 02:17:37 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9558E82956; Fri, 11 Jun 2021 18:15:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=in.bosch.com header.i=@in.bosch.com header.b="WMtCOPXp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9DEFC82934; Fri, 11 Jun 2021 18:15:04 +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,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on0625.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0d::625]) (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 A710B82903 for ; Fri, 11 Jun 2021 18:14:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=in.bosch.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Gireesh.Hiremath@in.bosch.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ORtakV0Il9ZTD6yl/A63rbp65D1tlEJukIGWONBm1o2hqPady3fGvdyOczS4BOV3s70RrYlMNfIZVDOMJW12YWuKZwlg8h7OLK4BG0LN6f8bCR/CTlc/jtbmAeodvnv1l62fUPz9YNyebvYzqIRLPbTHmGMVv4WJ/DqM3HWB/KckSgmPd3kQ8oB0wbamFzufB8ZJ/KeUZTGX6RMQq4k510C5p3tNQVcq6hcLz5ceWXmG0IT1S9pvgo9PcsTCAhkA1e6pf2cGWnHxEyY+YhL7YDHvlTz/GuUw6StYcyu5ZGIuoedJOFUOXwag2qWQCTgZ/FM9c6qB/kb7n8zkQn4tSQ== 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=niXd5kecoZMPcDWsQ8mgT1DP7OBG1pANEpxoy0qvAYQ=; b=C1eTCqIO+LvVkdK1UcpZ5db7g0sB7Tc4hP/Ctz9BLV0vHV8QAKUCYSGjYTUre+YdxE9+OEMa/trM1AGw0kv45xEP7C94bRoef7ffha8asGkc8nIb+sh6JjtRH0OWPkymeVJH0Wvg85L0S08/2PaaaSQU9yN+S4VMuRZiBEHT0ZHcez41Sr6YpOUrJMMVlI9oeFIqdt2eeMnD2WgtBm5ZT2iCCB6nNZ8RCPyk/vX73f29hSqiwxd6MiEXMGJiP1f4IHl7E6WWEAxtTZ+vYZkzWlQQMzjh56GCnSyWnIuCVQ6kzAWS//eTPsngHurrBwMmM/j+D/QzlY1m5OJk+KMuBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.201) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=in.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=in.bosch.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in.bosch.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=niXd5kecoZMPcDWsQ8mgT1DP7OBG1pANEpxoy0qvAYQ=; b=WMtCOPXpB6J0Ly49ao0abJQJ0YlSRF9atpTLBvs7U1/wm7WQYXsLXNWLRBC1NZ0uxEifnhTeiNSUXXYXBpPUTIOCI14SdBAS/8EYSwtachPy/TVfSQSDMSHSgVV4rkjoco17HEAAxoIRBMnS4N73rw1mHoFgbDJvXuO9C+l/QcY= Received: from PR2P264CA0002.FRAP264.PROD.OUTLOOK.COM (2603:10a6:101::14) by AM9PR10MB5036.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:433::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.23; Fri, 11 Jun 2021 16:14:58 +0000 Received: from VE1EUR03FT038.eop-EUR03.prod.protection.outlook.com (2603:10a6:101:0:cafe::e1) by PR2P264CA0002.outlook.office365.com (2603:10a6:101::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:58 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.201) smtp.mailfrom=in.bosch.com; lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=pass action=none header.from=in.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of in.bosch.com designates 139.15.153.201 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.201; helo=eop.bosch-org.com; Received: from eop.bosch-org.com (139.15.153.201) by VE1EUR03FT038.mail.protection.outlook.com (10.152.19.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 16:14:58 +0000 Received: from SI-EXCAS2000.de.bosch.com (10.139.217.201) by eop.bosch-org.com (139.15.153.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:53 +0200 Received: from SI-HUB2000.de.bosch.com (10.4.103.108) by SI-EXCAS2000.de.bosch.com (10.139.217.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.14; Fri, 11 Jun 2021 18:14:52 +0200 Received: from localhost.localdomain (10.141.230.85) by SI-HUB2000.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 15.1.2176.14; Fri, 11 Jun 2021 18:14:50 +0200 From: To: , , CC: , , Subject: [PATCH v4 18/18] configs: am335x_guardian: add register maps support Date: Fri, 11 Jun 2021 16:13:50 +0000 Message-ID: <20210611161350.2141-19-Gireesh.Hiremath@in.bosch.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> References: <20210611161350.2141-1-Gireesh.Hiremath@in.bosch.com> MIME-Version: 1.0 X-Originating-IP: [10.141.230.85] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4f5d560b-7239-4a36-0796-08d92cf40f1f X-MS-TrafficTypeDiagnostic: AM9PR10MB5036: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:843; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jdXo50a7iyMMQVOZdIA7wrhpuEKsDh8yh0W1XKjkMMd/OivdMza/c/na3vSpBzKOj71zwmpHR2Aq9vr/7Hslhn52L6mfrAGtGuomglLsqO0um+DkTYNBiFgfhiXdG/JsBwNvcavCq1JcT05YAkEBIiBwgcfJbUK9aHoQ46VbMrRqHB7ZwC46FJG/HAt0viGklHoiO3sTwwjLULvdZ6Sj4/rFm1YRzKSoB43VucwKUUCxLucsfSspheQU3PcoUFSxeqHeV2tks/lm6vvgRd5J2dLi0IRPu/l13J5ncUWtSSEB/H2Uo7pvna2FlBBdsf7AyjR9jhdUkJW5SCaL+x66Slb+gOXi6V9+qrRYy5XML9jsXLd/540VJi0DN9Q69iWEABLygJUR3RysiLnacCfPoki8wI6Z4YE2Q4Ufx3NDWIT+2j9q+QBtSOpSpsx4aZOW5BL36y2aOzIbN0qkKytycwcZG2TlgREqQQTfCgK5IPpgvY70jb4s9d2qERGWyHbxmL6sHYzGjsffFt10DkSM25DYnppgdg0NUAshx8iHjENEBH/CHM8sV5DklsrLVd80qBw2WxaF+oJJNl2QKW6jNqfW0H3IqxiZIJYCTmCv46uqkkJI1qhpahleEMPlEh4UDSsenqyStARPnN0HBRidYV0J0GDmLI2Ev9/MHIMks9Hi/90CacmXIxXCYmh0Q74V X-Forefront-Antispam-Report: CIP:139.15.153.201; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:eop.bosch-org.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(2906002)(5660300002)(47076005)(16526019)(8676002)(186003)(54906003)(26005)(4744005)(36860700001)(83380400001)(110136005)(86362001)(1076003)(81166007)(336012)(82310400003)(498600001)(4326008)(70586007)(70206006)(8936002)(2876002)(107886003)(2616005)(356005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: in.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 16:14:58.5980 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4f5d560b-7239-4a36-0796-08d92cf40f1f X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4; Ip=[139.15.153.201]; Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR10MB5036 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Gireesh Hiremath add support to direct memory access of hardware peripherals registers Signed-off-by: Gireesh Hiremath --- configs/am335x_guardian_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am335x_guardian_defconfig b/configs/am335x_guardian_defconfig index 3dc478d4e0..4c1200840f 100644 --- a/configs/am335x_guardian_defconfig +++ b/configs/am335x_guardian_defconfig @@ -72,6 +72,7 @@ CONFIG_SPL_ENV_IS_NOWHERE=y CONFIG_VERSION_VARIABLE=y CONFIG_BOOTP_SEND_HOSTNAME=y CONFIG_SPL_DM=y +CONFIG_REGMAP=y CONFIG_BOOTCOUNT_LIMIT=y CONFIG_BOOTCOUNT_AM33XX_NVMEM=y CONFIG_CLK=y