Received: by 10.223.185.116 with SMTP id b49csp1170366wrg; Fri, 23 Feb 2018 13:13:18 -0800 (PST) X-Google-Smtp-Source: AH8x225Aq2AUPGEAknLGaaP6eXFXGCRqh9oOnB+vRQpTFlOF/AIbOcs0BXuKG7UhpZiew7t+f4K9 X-Received: by 10.98.149.138 with SMTP id c10mr3022514pfk.143.1519420397957; Fri, 23 Feb 2018 13:13:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519420397; cv=none; d=google.com; s=arc-20160816; b=CnOflmoWBtz+fOHZ/Pk7LKkPq8xmvl5apRLgHXnmS5D642fJrLIohbuywJN+oj9QNd DB2TyVFFSfvYUBO+tkvYajFxyV4rQ0b5jEHz0BvHaJDRfIfkNf9EvDEuLpd5ppCWAUo/ MFGh9jJf3DNc5nuUZSy1gEoFddb0/clHZoXmxZY3FfWg2va+qDBKoU85/OGbA2VyQYc7 3xhZ5a/IKIpaEANT5R7vJmW3VKh3vuX+FSkM+EYylhCfItGdW0dQYwVp7rGEKESU/9ih 5TGHBSsuDaRCRgNTnpsx61DGbEKRPIt5WymHMlMgaxxbVddbh0rutr51PhoQtqcT88tW pL0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=XvlsRPeeuk5bkVPvGsEReHare0jjT+yutFTyu2wXZVk=; b=vLOfIdgf0MLAKNpIQHhozwfMr4r/gysG0hE/JKWqQE/svFR+Cvw1tdKePdCdYvKO/b LzUAhJOhHl3TFUfWH3JbOJDxq4zqVYTdZSbhDlhlTm26R+q5iP6etzDF3TqaYetUmVmA HiIWNxVIHsFpBHU+FVUk8URIIypA4i8gS3yWN4/MF3JBI6f25dTylVt+HJq/XZ29HLmD GVKCKUfz4FplpkvQ703YZliypcvrP0lt6/4aeKcxatop350K8dt8LGVj/JDwmKZS+c2k PAnaUpYEehBlkwecUfLzLv1QOD0FR1K23bkBQ/6ye8qr1W0aoNS0c+1a73az1G8VJI5U et6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fJiCvM0T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6-v6si2411930pli.790.2018.02.23.13.13.03; Fri, 23 Feb 2018 13:13:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fJiCvM0T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752328AbeBWVJr (ORCPT + 99 others); Fri, 23 Feb 2018 16:09:47 -0500 Received: from mail-qt0-f194.google.com ([209.85.216.194]:35289 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752247AbeBWVJn (ORCPT ); Fri, 23 Feb 2018 16:09:43 -0500 Received: by mail-qt0-f194.google.com with SMTP id g14so12185978qti.2 for ; Fri, 23 Feb 2018 13:09:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=XvlsRPeeuk5bkVPvGsEReHare0jjT+yutFTyu2wXZVk=; b=fJiCvM0TrIoQtbIW3nY/dRWOvi4vyESSFbkcGXiKAZawJovotplpoGRlQbzC7VujVE f2fx2VoeAjAEYoy7IBTKQeUj9PG+svhN1e9PXaisIbliluGmbLkW8+Ho8dPdC7GB0bUw NDL5HlmWVm+U/qPcdOjr2pwkmRe7XviTF9P1pK51DlcT9QR69rCgmg/CMWPJ3mD46kFs X1ayTC1CvXVVe8dLcsbiFBcZA3SiucbakcUDG9qCyiHAin2pWXeyNJxuZiLAqpRIdG9z stIeIztL0qu3hTzXUM5/Nc06AsR0BwSOEOuwcTuU078w3wK2+BHKkdXPcOqenZZKIqVJ gNuQ== 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; bh=XvlsRPeeuk5bkVPvGsEReHare0jjT+yutFTyu2wXZVk=; b=TL3Rp2ZBF8zJQOsHRC2W3oTlxKS6CcXi+iUtvcWehCH17rZWDJhJtfBuKYAEt3W6HB wRtVPPsFFxKmLB/fD9QyaNxCGHDNSwn6O4l+5fqF6GLqYkqiKZoTMs/FUMaZSCVZ4d9M UMStegvNscDbE2a//1O1I37eMv+CGNw4hdX4LgRG4gAveMqoSUwJvBc0THznRx3BEfIH YGg/vv/12G2jjch13J6LYFOY4M+I78QnxM0IUcGNcPvg1c9MPP/V+hcCMzXoYGaLjCtm ynsMlrPcbykMA5wl/JoAawtfnCpGgLNh24wZeoW2SzEpWOTA1yIUDu0gA6nWJoI5GzjG ViUA== X-Gm-Message-State: APf1xPBAlFqS/yPbVATYC35Ei8fkbr6ce8hu9mH33X09zPDRuhz1PIGE kte1fMsMDeQlsM/3If/DQo8= X-Received: by 10.237.33.75 with SMTP id 69mr4596204qtc.21.1519420182435; Fri, 23 Feb 2018 13:09:42 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id m13sm1912561qtf.31.2018.02.23.13.09.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Feb 2018 13:09:41 -0800 (PST) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Cc: Florian Fainelli , Russell King , Brian Norris , Gregory Fong , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE), Doug Berger , Vladimir Murzin , Philippe Ombredanne , Greg Kroah-Hartman , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 0/4] ARM: brcmstb: Add support for the V7 memory map Date: Fri, 23 Feb 2018 13:09:19 -0800 Message-Id: <20180223210923.544-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This patch series updates the brcmstb.S DEBUG_LL routines to dynamically detect one of the latest STB chip: BCM7278. This chip has a different memory map which requires use to lookup the main ID register to know whether which register physical offset we must use. As a consequence of doing that, we do a number of things: - allow the inclusion of cputype.h in assembly files to reduce the duplication of constants - define the Brahma-B53 and Brahma-B15 main ID register values, which was long overdue - finaly update brcmstb.S to detect 7278 and offset the base register address accordingly Note that Doug had a slightly different approach in our downstream tree where he actually added the same MIDR_* constants similar to what ARM64 has, I took that part away in order to minimize the delta, but I can easily submit that patch if this is the desired direction moving forward. Thank you! Doug Berger (3): ARM: Allow this header to be included by assembly files ARM: add Broadcom Brahma-B53 main ID definition ARM: brcmstb: Add support for the V7 memory map Florian Fainelli (1): ARM: add Broadcom Brahma-B15 main ID definition arch/arm/include/asm/cputype.h | 15 ++++++++++++--- arch/arm/include/debug/brcmstb.S | 21 ++++++++++++++++++++- 2 files changed, 32 insertions(+), 4 deletions(-) -- 2.14.1