Received: by 10.192.165.148 with SMTP id m20csp1197730imm; Wed, 25 Apr 2018 14:19:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq14gZGeuJT6QO2fTaN++NbofiDEJCuOoGsYYsDVPcby+NvBobwzoAdsvFfVQ3hJRfg3fAf X-Received: by 2002:a17:902:566:: with SMTP id 93-v6mr1498584plf.327.1524691144767; Wed, 25 Apr 2018 14:19:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524691144; cv=none; d=google.com; s=arc-20160816; b=HSY3RBTz6I1JiEUMelyTOiftKgv1kDoZpgWGBp2893rePNIVepdEDgx98pZ+Ld1kD6 bUbKh0dn+t1xwezlt/1BdyTH7QPQ5qauebjVJ98f4ZbzFCYS7OmSVjqo1tZeS2X+BQLd 2EpA6X3hvkH7m2wK0cdoR/wMcr4/aQXzVzix3VdPH8n1OSQC8GFBNhYAp9mnztnA4Yzv ksatEoDZROH7EhCEakltrC+Bvt5aUFBMZHG1CeED8TuYxqajvdGUmXH2m4GkzdW5qJcP kO9wWQyOouosy1QVS5Mp7r+1oZJP2PV1EoXnGRsbs+afFvTUaaTY653NdlyPfdIctyhM 8bLQ== 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 :arc-authentication-results; bh=d9EBZx+/J7kguyj4FOAlCfs36/H2IV29NKtHuwUL9Oc=; b=Xvxa/kYpRYrg9gajMpEaJlfi/WlJWZW31BCCFeaYV0f4YBzPi7kCyNuZomq2ZKBk6A ptE8hVYwa2ebMcPzqZ7ouBqGD3yfJAPkxwBsmokTJxcG+VfyK+DokcktwH2RvjS6vSoe GE7T8jlxJKefCZb+6K9XgwoUq/jLXs6KqyuwvCUnc/AaapatNeGqUIwWFOUhCocVS/g2 wsCLh2m95HHJf+qCdgH0ZW5jBs+u26OxIDDT8EwLhw1TmjK11RlkKCPGQrgz6zII0Rig tFTx0tQizOcWoKhdtZc7g7z2BOj3o0TPaKTZOmQ4TMCrynOCB/8Vd0pBFKPGy4P6akKh 7h0A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2si13901896pgf.354.2018.04.25.14.18.50; Wed, 25 Apr 2018 14:19:04 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752958AbeDYVQY (ORCPT + 99 others); Wed, 25 Apr 2018 17:16:24 -0400 Received: from mail.bootlin.com ([62.4.15.54]:50012 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751410AbeDYVQU (ORCPT ); Wed, 25 Apr 2018 17:16:20 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 6A2AB207CC; Wed, 25 Apr 2018 23:16:18 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [88.191.26.124]) by mail.bootlin.com (Postfix) with ESMTPSA id 3973E200FB; Wed, 25 Apr 2018 23:16:08 +0200 (CEST) From: Alexandre Belloni To: James Hogan , Ralf Baechle Cc: Allan Nielsen , Thomas Petazzoni , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Alexandre Belloni Subject: [PATCH 1/2] mips: mscc: build FIT image for Ocelot Date: Wed, 25 Apr 2018 23:16:06 +0200 Message-Id: <20180425211607.2645-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ocelot now has a u-boot port, allow building FIT images instead of relying on the legacy detection and builtin DTB. Signed-off-by: Alexandre Belloni --- arch/mips/boot/dts/mscc/Makefile | 2 +- arch/mips/generic/Kconfig | 12 +++++++++-- arch/mips/generic/Platform | 1 + arch/mips/generic/board-ocelot_pcb123.its.S | 23 +++++++++++++++++++++ 4 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 arch/mips/generic/board-ocelot_pcb123.its.S diff --git a/arch/mips/boot/dts/mscc/Makefile b/arch/mips/boot/dts/mscc/Makefile index c51164537c02..8982b19504a3 100644 --- a/arch/mips/boot/dts/mscc/Makefile +++ b/arch/mips/boot/dts/mscc/Makefile @@ -1,3 +1,3 @@ -dtb-$(CONFIG_LEGACY_BOARD_OCELOT) += ocelot_pcb123.dtb +dtb-$(CONFIG_MSCC_OCELOT) += ocelot_pcb123.dtb obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y)) diff --git a/arch/mips/generic/Kconfig b/arch/mips/generic/Kconfig index ba9b2c8cce68..6564f18b2012 100644 --- a/arch/mips/generic/Kconfig +++ b/arch/mips/generic/Kconfig @@ -35,13 +35,13 @@ config LEGACY_BOARD_OCELOT depends on LEGACY_BOARD_SEAD3=n select LEGACY_BOARDS select MSCC_OCELOT + select SYS_HAS_EARLY_PRINTK + select USE_GENERIC_EARLY_PRINTK_8250 config MSCC_OCELOT bool select GPIOLIB select MSCC_OCELOT_IRQ - select SYS_HAS_EARLY_PRINTK - select USE_GENERIC_EARLY_PRINTK_8250 comment "FIT/UHI Boards" @@ -65,6 +65,14 @@ config FIT_IMAGE_FDT_XILFPGA Enable this to include the FDT for the MIPSfpga platform from Imagination Technologies in the FIT kernel image. +config FIT_IMAGE_FDT_OCELOT_PCB123 + bool "Include FDT for Microsemi Ocelot PCB123" + select MSCC_OCELOT + help + Enable this to include the FDT for the Ocelot PCB123 platform + from Microsemi in the FIT kernel image. + This require u-boot on the platform. + config VIRT_BOARD_RANCHU bool "Support Ranchu platform for Android emulator" help diff --git a/arch/mips/generic/Platform b/arch/mips/generic/Platform index 0dd0d5d460a5..879cb80396c8 100644 --- a/arch/mips/generic/Platform +++ b/arch/mips/generic/Platform @@ -16,4 +16,5 @@ all-$(CONFIG_MIPS_GENERIC) := vmlinux.gz.itb its-y := vmlinux.its.S its-$(CONFIG_FIT_IMAGE_FDT_BOSTON) += board-boston.its.S its-$(CONFIG_FIT_IMAGE_FDT_NI169445) += board-ni169445.its.S +its-$(CONFIG_FIT_IMAGE_FDT_OCELOT_PCB123) += board-ocelot_pcb123.its.S its-$(CONFIG_FIT_IMAGE_FDT_XILFPGA) += board-xilfpga.its.S diff --git a/arch/mips/generic/board-ocelot_pcb123.its.S b/arch/mips/generic/board-ocelot_pcb123.its.S new file mode 100644 index 000000000000..f6f54ff6d64c --- /dev/null +++ b/arch/mips/generic/board-ocelot_pcb123.its.S @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ +/ { + images { + fdt@ocelot_pcb123 { + description = "MSCC Ocelot PCB123 Device Tree"; + data = /incbin/("boot/dts/mscc/ocelot_pcb123.dtb"); + type = "flat_dt"; + arch = "mips"; + compression = "none"; + hash@0 { + algo = "sha1"; + }; + }; + }; + + configurations { + conf@ocelot_pcb123 { + description = "Ocelot Linux kernel"; + kernel = "kernel@0"; + fdt = "fdt@ocelot_pcb123"; + }; + }; +}; -- 2.17.0