From patchwork Sat Jul 19 01:37:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Rae X-Patchwork-Id: 33928 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 356A9208CF for ; Sat, 19 Jul 2014 01:37:46 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id j7sf11587960qaq.9 for ; Fri, 18 Jul 2014 18:37:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=chqw7l9yaAKaf6AxgnrhJQqm1U7DMIGliBNMflvIlBA=; b=W/yBoaTJ1ej9zA8rVB4C7zE0YXT8+Fgr0wj4lQE91c5ffvlycWR6qOozgyCtyx1rMO GFymIDBuweOriftIQNm1bQ97COII/5U0GwK2cTcHooWEV3LgUnjj486LV7I+g1eYHdJi /flQf31x9P/s4pXsuG58GFhc5wFHH5FcQKv5A2GM3ZbQaNBMAiPer4hQm1M4vvaBAmIW dDoEQA+VCM/II7g/AIJGjMmRMhROylgIewmoDN2j4AMNR6XI50RpTxreMhwofsqgkYBc qyNYvtQ8Y7u1aTzR6fEgUjaYmvMqJ2eeK+pSGL5dwcpI5jr3UssqELEEOqKFgiGsLLMo Yvfw== X-Gm-Message-State: ALoCoQkmbZDDC5eWioOf34U2XW2o8K9GHEOBQs3bSqfsOskraSbqLDaYFjFW4RAa2PiS81u7R6Os X-Received: by 10.52.114.42 with SMTP id jd10mr3758009vdb.0.1405733866020; Fri, 18 Jul 2014 18:37:46 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.106.119 with SMTP id d110ls942126qgf.47.gmail; Fri, 18 Jul 2014 18:37:45 -0700 (PDT) X-Received: by 10.52.184.199 with SMTP id ew7mr8991854vdc.44.1405733865916; Fri, 18 Jul 2014 18:37:45 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id 16si7264931vdd.92.2014.07.18.18.37.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Jul 2014 18:37:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id la4so8711475vcb.33 for ; Fri, 18 Jul 2014 18:37:45 -0700 (PDT) X-Received: by 10.221.42.135 with SMTP id ty7mr10722985vcb.14.1405733865836; Fri, 18 Jul 2014 18:37:45 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp53324vcb; Fri, 18 Jul 2014 18:37:45 -0700 (PDT) X-Received: by 10.180.221.134 with SMTP id qe6mr13169200wic.66.1405733864762; Fri, 18 Jul 2014 18:37:44 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id w4si14737792wjz.156.2014.07.18.18.37.44 for ; Fri, 18 Jul 2014 18:37:44 -0700 (PDT) Received-SPF: none (google.com: u-boot-bounces@lists.denx.de does not designate permitted sender hosts) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 64725A7562; Sat, 19 Jul 2014 03:37:36 +0200 (CEST) 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 E0aJI0M7N5IW; Sat, 19 Jul 2014 03:37:36 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5259DA75AB; Sat, 19 Jul 2014 03:37:15 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 32561A758F for ; Sat, 19 Jul 2014 03:37:11 +0200 (CEST) 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 8eFLX1D9hxQo for ; Sat, 19 Jul 2014 03:37:07 +0200 (CEST) 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-gw3-out.broadcom.com (mail-gw3-out.broadcom.com [216.31.210.64]) by theia.denx.de (Postfix) with ESMTP id 8E00AA7489 for ; Sat, 19 Jul 2014 03:36:53 +0200 (CEST) X-IronPort-AV: E=Sophos;i="5.01,689,1400050800"; d="scan'208";a="39691107" Received: from irvexchcas06.broadcom.com (HELO IRVEXCHCAS06.corp.ad.broadcom.com) ([10.9.208.53]) by mail-gw3-out.broadcom.com with ESMTP; 18 Jul 2014 18:46:10 -0700 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS06.corp.ad.broadcom.com (10.9.208.53) with Microsoft SMTP Server (TLS) id 14.3.174.1; Fri, 18 Jul 2014 18:36:49 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) with Microsoft SMTP Server id 14.3.174.1; Fri, 18 Jul 2014 18:36:49 -0700 Received: from mail.broadcom.com (lbrmn-vmlnx03.ric.broadcom.com [10.136.4.105]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 012F09F9F9; Fri, 18 Jul 2014 18:36:48 -0700 (PDT) From: Steve Rae To: Date: Fri, 18 Jul 2014 18:37:32 -0700 Message-ID: <1405733854-20194-3-git-send-email-srae@broadcom.com> X-Mailer: git-send-email 1.8.5 In-Reply-To: <1405733854-20194-1-git-send-email-srae@broadcom.com> References: <1405733854-20194-1-git-send-email-srae@broadcom.com> MIME-Version: 1.0 Cc: Steve Rae , Scott Branden Subject: [U-Boot] [PATCH 2/4] arm: bcmcygnus: Add bcmcygnus u-architecture X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srae@broadcom.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Scott Branden Base support for the Broadcom Cygnus SoC. Based on iproc-common and the SoC specific reset function. Signed-off-by: Scott Branden Signed-off-by: Steve Rae --- arch/arm/cpu/armv7/bcmcygnus/Makefile | 7 +++++++ arch/arm/cpu/armv7/bcmcygnus/reset.c | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 arch/arm/cpu/armv7/bcmcygnus/Makefile create mode 100644 arch/arm/cpu/armv7/bcmcygnus/reset.c diff --git a/arch/arm/cpu/armv7/bcmcygnus/Makefile b/arch/arm/cpu/armv7/bcmcygnus/Makefile new file mode 100644 index 0000000..04afcf9 --- /dev/null +++ b/arch/arm/cpu/armv7/bcmcygnus/Makefile @@ -0,0 +1,7 @@ +# +# Copyright 2014 Broadcom Corporation. +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y += reset.o diff --git a/arch/arm/cpu/armv7/bcmcygnus/reset.c b/arch/arm/cpu/armv7/bcmcygnus/reset.c new file mode 100644 index 0000000..53ecc0c --- /dev/null +++ b/arch/arm/cpu/armv7/bcmcygnus/reset.c @@ -0,0 +1,20 @@ +/* + * Copyright 2014 Broadcom Corporation. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include +#include + +#define CRMU_MAIL_BOX1 0x03024028 +#define CRMU_SOFT_RESET_CMD 0xFFFFFFFF + +void reset_cpu(ulong ignored) +{ + /* Send soft reset command via Mailbox. */ + writel(CRMU_SOFT_RESET_CMD, CRMU_MAIL_BOX1); + + while (1) + ; /* loop forever till reset */ +}