From patchwork Fri Jan 9 15:27:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bob Mottram X-Patchwork-Id: 427141 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 63FCC1401D0 for ; Sat, 10 Jan 2015 02:27:44 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932220AbbAIP1h (ORCPT ); Fri, 9 Jan 2015 10:27:37 -0500 Received: from ducie-dc1.codethink.co.uk ([185.25.241.215]:58670 "EHLO ducie-dc1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753209AbbAIP1g (ORCPT ); Fri, 9 Jan 2015 10:27:36 -0500 Received: from localhost (localhost [127.0.0.1]) by ducie-dc1.codethink.co.uk (Postfix) with ESMTP id 7FDC0460726; Fri, 9 Jan 2015 15:27:35 +0000 (GMT) X-Virus-Scanned: Debian amavisd-new at ducie-dc1.codethink.co.uk Received: from ducie-dc1.codethink.co.uk ([127.0.0.1]) by localhost (ducie-dc1.codethink.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V+Ug9pW2D1rj; Fri, 9 Jan 2015 15:27:32 +0000 (GMT) Received: from bashrc-X201.dyn.ducie.codethink.co.uk (bashrc-X201.dyn.ducie.codethink.co.uk [10.24.2.133]) by ducie-dc1.codethink.co.uk (Postfix) with ESMTPSA id 58E81460702; Fri, 9 Jan 2015 15:27:30 +0000 (GMT) From: Bob Mottram To: linux-tegra@vger.kernel.org, swarren@wwwdotorg.org, thierry.reding@gmail.com, gnurou@gmail.com, ct173-kernel-internal@lists.codethink.co.uk Cc: Bob Mottram Subject: [PATCH 3/4] ARM: tegra: enable big-endian support Date: Fri, 9 Jan 2015 15:27:10 +0000 Message-Id: <1420817231-8346-4-git-send-email-bob.mottram@codethink.co.uk> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1420817231-8346-1-git-send-email-bob.mottram@codethink.co.uk> References: <1420817231-8346-1-git-send-email-bob.mottram@codethink.co.uk> Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org Config changes to enable big-endian support. Tested on Jetson TK1. Signed-off-by: Bob Mottram --- arch/arm/mach-tegra/Kconfig | 1 + arch/arm/mach-tegra/headsmp.S | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index d0be9a1..d8cb963 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig @@ -2,6 +2,7 @@ menuconfig ARCH_TEGRA bool "NVIDIA Tegra" if ARCH_MULTI_V7 select ARCH_REQUIRE_GPIOLIB select ARCH_SUPPORTS_TRUSTED_FOUNDATIONS + select ARCH_SUPPORTS_BIG_ENDIAN select ARM_AMBA select ARM_GIC select CLKSRC_MMIO diff --git a/arch/arm/mach-tegra/headsmp.S b/arch/arm/mach-tegra/headsmp.S index 2072e73..9896981 100644 --- a/arch/arm/mach-tegra/headsmp.S +++ b/arch/arm/mach-tegra/headsmp.S @@ -1,11 +1,12 @@ #include #include - +#include #include "sleep.h" .section ".text.head", "ax" ENTRY(tegra_secondary_startup) + ARM_BE8(setend be) check_cpu_part_num 0xc09, r8, r9 bleq v7_invalidate_l1 b secondary_startup