From patchwork Tue Sep 26 00:09:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 9970801 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1E8DB60393 for ; Tue, 26 Sep 2017 00:11:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11B59289F8 for ; Tue, 26 Sep 2017 00:11:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05F6C28DBD; Tue, 26 Sep 2017 00:11:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9551628D96 for ; Tue, 26 Sep 2017 00:11:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966743AbdIZAJ7 (ORCPT ); Mon, 25 Sep 2017 20:09:59 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:38519 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966733AbdIZAJy (ORCPT ); Mon, 25 Sep 2017 20:09:54 -0400 Received: by mail-qt0-f195.google.com with SMTP id o3so6047014qte.5; Mon, 25 Sep 2017 17:09:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OibuL9nlcvx7XAR92B4dz4P/t2hQqeDDKkNbYOq4eqI=; b=KyZP3bs7d/OX0IzRu9wYpbd8/ZUiMOVXIs/t9IjBoz/BUxSeZW1DNkOADQRUpg53vT DbeKHa2nG/54Sfl5Z33ae20DubycJFoRLBjreY0S2hNe7iCVq5LLKzFPFpKahq6F40Ts J/aWcIhsXfH3TVRS44gkxP6D08aFUfY2vxF6p65+gyLhB/UpLSwZVfrdVPzE1FzeE546 3TGcU9zxE2iAlCF8RLVSOsByTWz7hOJaSWfC8f8Fot4UC70BUbDhI4oKnewgu77Ea1Ta a6pGbABwWMn1IaHdNNcgfx914K8C5uOjRpst3uP0ujGVnn3/bCPrEZA7y7mEqjskGTMD esxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OibuL9nlcvx7XAR92B4dz4P/t2hQqeDDKkNbYOq4eqI=; b=dkWMzeCCsBVl0ld0dDaxJj8zij+Jru2siH7f1C2DrDRZqnsJB/3ulPmPaj+HCC2MXh lT0v4KzrydFrs0SKalVHvhvFVgZZiAbaWtV5Sa3XL0pdTcPKdin7KShyqGFqcliBAw09 Kn+3W0sFHnwn+YImanvuHHGwlFXrEVakFpvGTbrA7yPLZRCSlmRYOAZmRuoL83fHQnrh OOtYc8B49CYBTQBIPTXIGwUNT4EZnT/OWRIMKF9DBcA0jVpW6WnsEULJ6Qr0m6wXoYz+ 1C8FtTzb1afTjd65yc2gD+xMeDiB4+dkYzQWdz9hbkqxHaQQUcvcYZdKQ91YUhv7Ah9j HsgA== X-Gm-Message-State: AHPjjUh8VR+VfpalqWBBo5wkflK8lzro6wsXO6zRuMDBVDZAMlHmbDvy gh2RERZLlw7ao9cGMXnLZUI= X-Google-Smtp-Source: AOwi7QBu/0HtK3DPnw8kUCdW1pNa7JDEHr5Ey27/eWqHrYZhxAK6Ws+dBTPb0VD2ctwT0aNixFAquA== X-Received: by 10.237.61.221 with SMTP id j29mr14163158qtf.282.1506384593494; Mon, 25 Sep 2017 17:09:53 -0700 (PDT) Received: from stb-bld-02.irv.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id r28sm6014256qte.81.2017.09.25.17.09.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Sep 2017 17:09:52 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Cc: Florian Fainelli , Rob Herring , Mark Rutland , Ray Jui , Scott Branden , Jon Mason , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC ARM ARCHITECTURE), Michael Turquette , Stephen Boyd , Russell King , Arnd Bergmann , Olof Johansson , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-clk@vger.kernel.org (open list:COMMON CLK FRAMEWORK) Subject: [PATCH 03/10] ARM: bcm: Add support for Broadcom Hurricane 2 SoC Date: Mon, 25 Sep 2017 17:09:24 -0700 Message-Id: <20170926000931.670-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170926000931.670-1-f.fainelli@gmail.com> References: <20170926000931.670-1-f.fainelli@gmail.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add a Kconfig entry point and basic machine board code for the Broadcom Hurricane 2 SoCs used in 1G/10G switching products. Signed-off-by: Florian Fainelli --- arch/arm/mach-bcm/Kconfig | 9 +++++++++ arch/arm/mach-bcm/Makefile | 3 +++ arch/arm/mach-bcm/bcm_hr2.c | 25 +++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 arch/arm/mach-bcm/bcm_hr2.c diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig index 73be3d578851..76807581f9f3 100644 --- a/arch/arm/mach-bcm/Kconfig +++ b/arch/arm/mach-bcm/Kconfig @@ -36,6 +36,15 @@ config ARCH_BCM_CYGNUS BCM11300, BCM11320, BCM11350, BCM11360, BCM58300, BCM58302, BCM58303, BCM58305. +config ARCH_BCM_HR2 + bool "Broadcom Hurricane 2 SoC support" + depends on ARCH_MULTI_V7 + select ARCH_BCM_IPROC + help + Enable support for the Hurricane 2 family, + which includes the following variants: + BCM53342, BCM53343, BCM53344, BCM53346. + config ARCH_BCM_NSP bool "Broadcom Northstar Plus SoC Support" depends on ARCH_MULTI_V7 diff --git a/arch/arm/mach-bcm/Makefile b/arch/arm/mach-bcm/Makefile index 980f5850097c..ec93c849a100 100644 --- a/arch/arm/mach-bcm/Makefile +++ b/arch/arm/mach-bcm/Makefile @@ -13,6 +13,9 @@ # Cygnus obj-$(CONFIG_ARCH_BCM_CYGNUS) += bcm_cygnus.o +# Hurricane 2 +obj-$(CONFIG_ARCH_BCM_HR2) += bcm_hr2.o + # Northstar Plus obj-$(CONFIG_ARCH_BCM_NSP) += bcm_nsp.o diff --git a/arch/arm/mach-bcm/bcm_hr2.c b/arch/arm/mach-bcm/bcm_hr2.c new file mode 100644 index 000000000000..c104f28995d7 --- /dev/null +++ b/arch/arm/mach-bcm/bcm_hr2.c @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2017 Broadcom + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation version 2. + * + * This program is distributed "as is" WITHOUT ANY WARRANTY of any + * kind, whether express or implied; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include + +static const char * const bcm_hr2_dt_compat[] __initconst = { + "brcm,hr2", + NULL, +}; + +DT_MACHINE_START(BCM_HR2_DT, "Broadcom Hurricane 2 SoC") + .l2c_aux_val = 0, + .l2c_aux_mask = ~0, + .dt_compat = bcm_hr2_dt_compat, +MACHINE_END