From patchwork Sun Jan 13 01:32:31 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: 211581 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 1F70E2C00F4 for ; Sun, 13 Jan 2013 12:33:14 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 157384A0FB; Sun, 13 Jan 2013 02:33:11 +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 E5DUAPt9vewg; Sun, 13 Jan 2013 02:33:10 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 28AEC4A0F4; Sun, 13 Jan 2013 02:33:07 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 890A74A0F4 for ; Sun, 13 Jan 2013 02:33:05 +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 l5qp8XIClAhZ for ; Sun, 13 Jan 2013 02:33:04 +0100 (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-ee0-f46.google.com (mail-ee0-f46.google.com [74.125.83.46]) by theia.denx.de (Postfix) with ESMTPS id 35EBF4A0F2 for ; Sun, 13 Jan 2013 02:33:02 +0100 (CET) Received: by mail-ee0-f46.google.com with SMTP id e49so1456333eek.33 for ; Sat, 12 Jan 2013 17:33:00 -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=xyD1Gkql6f2dBGVCRLJTJrr2UPfeLlOCMhloRHsmlZ4=; b=hKmidjunwZ/GmGRcueWI6Ri82XHJcZqNr4uA6j1omoayt+BlkZ2SWGIIfsOQFSiTsU TEQZ/bSIQ1z3n3fEmC3hUY7e6PBrr+znCuS1wSgayczy0byX4CqK+nMV94rSNrV67Nva IyretPRoKg2VAPtwmc+y+s+LSqvtxzsPCAv1vrTOGhkQe7wlp1x5BumbubL/9t0J5GJX bkuGzA7U6w3bLBVP9oRieL3ET2Rh8kjk+D7780bleZnsavQulGKi7eWcPVTPb6NflTN/ uUxhwFcc4HX2Wh1eLuI/PExoD8S0rEzK11ZJSuKVkLb8+eh9itelrJAA7EAuEWgEL300 rJ9w== X-Received: by 10.14.177.1 with SMTP id c1mr214676316eem.8.1358040780700; Sat, 12 Jan 2013 17:33: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 q44sm15132651eep.5.2013.01.12.17.32.58 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 12 Jan 2013 17:32:59 -0800 (PST) From: Lukasz Dalek To: u-boot@lists.denx.de Date: Sun, 13 Jan 2013 02:32:31 +0100 Message-Id: <1358040752-28322-1-git-send-email-luk0104@gmail.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <201301130205.59632.marex@denx.de> References: <201301130205.59632.marex@denx.de> Cc: marex@denx.de Subject: [U-Boot] [PATCH v2] 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 --- Changes for v2: - Reimplement reset_cpu() instead of board_reset() --- 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..738e480 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 reset_cpu(ulong ignore) +{ + /* Enable VLIO interface on Hamcop */ + writeb(0x1, 0x4000); + + /* Reset board (cold reset) */ + writeb(0xff, 0x4002); +} + int board_init(void) { /* We have RAM, disable cache */