From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AB054C433F5 for ; Sun, 1 May 2022 12:25:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1E53B83F1F; Sun, 1 May 2022 14:25:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="fExSBeB3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3C5EF83E0E; Sun, 1 May 2022 14:24:56 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (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 D2F9A83F05 for ; Sun, 1 May 2022 14:24:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7340BB80D3A; Sun, 1 May 2022 12:24:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F39E0C385AF; Sun, 1 May 2022 12:24:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651407890; bh=hbzQHpkgW2WLavzH1DgLJiwPjp4R/bp5hUDRNfPKcEs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fExSBeB3WCor2g1wuA/wjm/PNXf3oQwP8aocQhTUm0s3HnrCZIMxcYKs4bh8whqle tp7dxRQ6PMJVIG+CuypdSd7/Mhfp1xQW0Fp8DSJlNvJMmOeCWsMZ/ySAk3VMYdofiV 6huWkP4ozkIgyltg9JwHm4YyBV4ji+/40g/n3noWRbakV1gitVd69MYgFH5arqICIc WnxW1nXDvNvEQWGdgSOtChHOm4aYfcK+jc9pGmYxeQitKNvop2VhpC7Ew9qXovROB4 1ePdm+x1uSsjxOpRxxDVCo3Mllt4a55eHQSu1YyXJDL0J7GahEOe1U2uN54kHcajrP psWHG8rDC8nCA== Received: by pali.im (Postfix) id 528C7989; Sun, 1 May 2022 14:24:47 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Priyanka Jain , Sinan Akman Cc: u-boot@lists.denx.de Subject: [PATCH 3/3] board: freescale: p1_p2_rdb_pc: Implement board_reset() Date: Sun, 1 May 2022 14:23:14 +0200 Message-Id: <20220501122314.32626-3-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220501122314.32626-1-pali@kernel.org> References: <20220501122314.32626-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean Do board reset via CPLD's system reset register. Signed-off-by: Pali Rohár --- board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c index 24b5ec435e4e..53ff121d3b3d 100644 --- a/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c +++ b/board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c @@ -83,6 +83,12 @@ struct cpld_data { #define CPLD_FXS_LED 0x0F #define CPLD_SYS_RST 0x00 +void board_reset(void) +{ + struct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE); + out_8(&cpld_data->system_rst, 1); +} + void board_cpld_init(void) { struct cpld_data *cpld_data = (void *)(CONFIG_SYS_CPLD_BASE); -- 2.20.1