From patchwork Sat Jan 12 21:39:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?xYF1a2FzeiBEYcWCZWs=?= X-Patchwork-Id: 211558 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 9C9CC2C0103 for ; Sun, 13 Jan 2013 09:09:16 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3CAE34A092; Sat, 12 Jan 2013 23:09:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LtB3RbE4xw9b; Sat, 12 Jan 2013 23:09:15 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C1D214A0A8; Sat, 12 Jan 2013 23:09:12 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B7AC04A094 for ; Sat, 12 Jan 2013 23:09:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e9hP9sIZc4Y8 for ; Sat, 12 Jan 2013 23:09:09 +0100 (CET) X-Greylist: delayed 1435 seconds by postgrey-1.27 at theia; Sat, 12 Jan 2013 23:09:07 CET X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ea0-f174.google.com (mail-ea0-f174.google.com [209.85.215.174]) by theia.denx.de (Postfix) with ESMTPS id 0AFEE4A0AF for ; Sat, 12 Jan 2013 23:09:07 +0100 (CET) Received: by mail-ea0-f174.google.com with SMTP id e13so1163004eaa.19 for ; Sat, 12 Jan 2013 14:09:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=lpvhJv5JDCuO07MqIRKPdAHD5TeVyUb6KMWf91snyvM=; b=ShPoE/hIAC0qVl8L/DZsjKDTTzbgyY4Ry63lxdqOwLChJ8STaXxXjJNsGbgYaVMbgc QPaj083AQCCwfKGLo4OSYDTFWlSOKKmzuX1DZkg72flA8jfHNsSpVJMx+YuiwMXcAMFF RU61Ku5Z3T4TG1uMAEKnKPEo1NihQKx6q0Z3bYWWbsA0CIzgs6aVDdLsr234Lr5iNWU9 AT72Qz0n9ry0ER36rscOkoHthwUtN/5iBgXfYI7mhj6xafBc0Zr5lTv1Yf10r7TOe6ZG iyFaTVnubu13Yw2m4pivxKIyyUDZyuMLM9/WcpTpXr1bbUeveytGuWH9fBi8yVxUG8X1 f4Og== X-Received: by 10.14.221.5 with SMTP id q5mr213464162eep.33.1358026800202; Sat, 12 Jan 2013 13:40:00 -0800 (PST) Received: from mover.dalas.net (riviera.nat.student.pw.edu.pl. [194.29.137.1]) by mx.google.com with ESMTPS id b2sm14489530eep.9.2013.01.12.13.39.58 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 12 Jan 2013 13:39:59 -0800 (PST) From: Lukasz Dalek To: u-boot@lists.denx.de Date: Sat, 12 Jan 2013 22:39:26 +0100 Message-Id: <1358026767-28130-2-git-send-email-luk0104@gmail.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1358026767-28130-1-git-send-email-luk0104@gmail.com> References: <1358026767-28130-1-git-send-email-luk0104@gmail.com> Cc: marex@denx.de Subject: [U-Boot] [PATCH 2/3] h2200: Add board reset support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Use Samsung S3CA410X01 companion chip to reset PDA. Signed-off-by: Lukasz Dalek --- board/h2200/h2200.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/board/h2200/h2200.c b/board/h2200/h2200.c index 720b06e..a716a3f 100644 --- a/board/h2200/h2200.c +++ b/board/h2200/h2200.c @@ -32,6 +32,15 @@ int board_eth_init(bd_t *bis) return 0; } +void board_reset(void) +{ + /* Enable VLIO interface on Hamcop */ + writeb(0x1, 0x4000); + + /* Reset board (cold reset) */ + writeb(0xff, 0x4002); +} + int board_init(void) { /* We have RAM, disable cache */