From patchwork Mon Aug 11 20:58:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Rae X-Patchwork-Id: 35217 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5760920540 for ; Mon, 11 Aug 2014 20:57:29 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id v10sf31485117pde.10 for ; Mon, 11 Aug 2014 13:57:28 -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=BZor7ZUq2uDSLmy85g5Re7B46L0+sRkMh0r+mKzsV5Y=; b=jYEXrj5mJ6hLVC00Q0oYg7bGPEEiAo4oMAActaH3l0aiDB3lw+AIUG2LD6qw+P8M5o YkAxOkeyhSCyUNE+F7MVihNLu9Tb+xih6rVd7nvSXKNH/J/73aFqFcRGzgDVEKY1+9oE BrENMySTMvuHigfX4whv0FRHjt4MobU9Fl5NmIUP7yIrVlaW2cerxuOYDzVlhL5a0IvV Ud2EyUMpzpj2v3Pf037rDF7o06E3yBn1GTuw+lGV4yKlkvTlMd7mUddHiW615fLii/Ff yjFmNUUtB9FE9gvzOib+q9augHr22W0da8b32XPzZMFybj9T4Id76hLqS0xE2nCArcAc pUKA== X-Gm-Message-State: ALoCoQmEr6dUcYhCSiLr7cpzPkOwcLj1swD9HyXXLJbdi0e041k+kboodgz/LNGD5o/E13ptH8Gj X-Received: by 10.66.100.196 with SMTP id fa4mr161567pab.11.1407790648641; Mon, 11 Aug 2014 13:57:28 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.94.87 with SMTP id f81ls1676182qge.65.gmail; Mon, 11 Aug 2014 13:57:28 -0700 (PDT) X-Received: by 10.52.243.10 with SMTP id wu10mr2641016vdc.45.1407790648430; Mon, 11 Aug 2014 13:57:28 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id tb1si7092780vdc.96.2014.08.11.13.57.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Aug 2014 13:57:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id hy4so12406581vcb.13 for ; Mon, 11 Aug 2014 13:57:28 -0700 (PDT) X-Received: by 10.221.24.7 with SMTP id rc7mr160906vcb.54.1407790648247; Mon, 11 Aug 2014 13:57:28 -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 tc5csp194588vcb; Mon, 11 Aug 2014 13:57:27 -0700 (PDT) X-Received: by 10.194.200.137 with SMTP id js9mr284774wjc.90.1407790647196; Mon, 11 Aug 2014 13:57:27 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id l3si9197420wix.103.2014.08.11.13.57.24 for ; Mon, 11 Aug 2014 13:57:27 -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 1B1CCA7486; Mon, 11 Aug 2014 22:57:24 +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 dGllBvV0kkiT; Mon, 11 Aug 2014 22:57:23 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0FD12A745B; Mon, 11 Aug 2014 22:57:10 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7BABFA744A for ; Mon, 11 Aug 2014 22:57:07 +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 ebTrpei2wHKG for ; Mon, 11 Aug 2014 22:57:05 +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-gw1-out.broadcom.com (mail-gw1-out.broadcom.com [216.31.210.62]) by theia.denx.de (Postfix) with ESMTP id 78259A745B for ; Mon, 11 Aug 2014 22:56:55 +0200 (CEST) X-IronPort-AV: E=Sophos;i="5.01,844,1400050800"; d="scan'208";a="42469396" Received: from irvexchcas08.broadcom.com (HELO IRVEXCHCAS08.corp.ad.broadcom.com) ([10.9.208.57]) by mail-gw1-out.broadcom.com with ESMTP; 11 Aug 2014 14:42:46 -0700 Received: from IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 11 Aug 2014 13:56:53 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP2.corp.ad.broadcom.com (10.9.207.52) with Microsoft SMTP Server id 14.3.174.1; Mon, 11 Aug 2014 13:56:54 -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 6FA0B9F9F7; Mon, 11 Aug 2014 13:56:53 -0700 (PDT) From: Steve Rae To: Date: Mon, 11 Aug 2014 13:58:24 -0700 Message-ID: <1407790706-31842-4-git-send-email-srae@broadcom.com> X-Mailer: git-send-email 1.8.5 In-Reply-To: <1407790706-31842-1-git-send-email-srae@broadcom.com> References: <1407790706-31842-1-git-send-email-srae@broadcom.com> MIME-Version: 1.0 Cc: Steve Rae , Scott Branden Subject: [U-Boot] [PATCH v3 3/5] arm: bcmnsp: Add bcmnsp 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.182 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 NSP SoC. Based on iproc-common and the SoC specific reset function. Signed-off-by: Scott Branden Signed-off-by: Steve Rae --- Changes in v3: None Changes in v2: None arch/arm/cpu/armv7/bcmnsp/Makefile | 7 +++++++ arch/arm/cpu/armv7/bcmnsp/reset.c | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 arch/arm/cpu/armv7/bcmnsp/Makefile create mode 100644 arch/arm/cpu/armv7/bcmnsp/reset.c diff --git a/arch/arm/cpu/armv7/bcmnsp/Makefile b/arch/arm/cpu/armv7/bcmnsp/Makefile new file mode 100644 index 0000000..04afcf9 --- /dev/null +++ b/arch/arm/cpu/armv7/bcmnsp/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/bcmnsp/reset.c b/arch/arm/cpu/armv7/bcmnsp/reset.c new file mode 100644 index 0000000..d79d9aa --- /dev/null +++ b/arch/arm/cpu/armv7/bcmnsp/reset.c @@ -0,0 +1,19 @@ +/* + * Copyright 2014 Broadcom Corporation. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include +#include + +#define CRU_RESET_OFFSET 0x1803F184 + +void reset_cpu(ulong ignored) +{ + /* Reset the cpu by setting software reset request bit */ + writel(0x1, CRU_RESET_OFFSET); + + while (1) + ; /* loop forever till reset */ +}