From patchwork Tue Jun 21 23:43:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Rae X-Patchwork-Id: 638915 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3rZ47Z1PqQz9sxb for ; Wed, 22 Jun 2016 09:44:10 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.b=ckSFhrnv; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BC4DDA7548; Wed, 22 Jun 2016 01:44:08 +0200 (CEST) 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 gAr8bjPJPRUa; Wed, 22 Jun 2016 01:44:08 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 15B89A7517; Wed, 22 Jun 2016 01:44:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 199C9A74F1 for ; Wed, 22 Jun 2016 01:44:06 +0200 (CEST) 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 4-WepVlGbWZF for ; Wed, 22 Jun 2016 01:44:06 +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-pf0-f170.google.com (mail-pf0-f170.google.com [209.85.192.170]) by theia.denx.de (Postfix) with ESMTPS id 8253AA7544 for ; Wed, 22 Jun 2016 01:44:01 +0200 (CEST) Received: by mail-pf0-f170.google.com with SMTP id i123so11207686pfg.0 for ; Tue, 21 Jun 2016 16:44:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VdK8gK5yfv9eYtJBjcKSwFazHe0vppumHtVf7M93cAc=; b=ckSFhrnvdqknrtDoXPOIiyzCqSS8oE6yHT8nJaXMv1W5gl2r2M5LpPDTgSnVD5+JVv FvbQk57iYu3814oI0edX0CqW/5vhCbVAwa48nNAtlRCOAlOPXt2FkaiIL+UwLUNELIT1 46eoJ0rd4hd6lnxI1jurS02iMlNU9OeweyD9U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VdK8gK5yfv9eYtJBjcKSwFazHe0vppumHtVf7M93cAc=; b=ZoXa0THn0fs0t668EvPw0DdJreiNyiyZGkU+z3UE8kgbF1cRDH9ogIygyov5ioG+hG +qz/wL6Cq839r/aA9W3i6zPoweJs5fLfLQzN8lUkLvKC6JIoJqdulDeyE8bGxNpGjqh7 MqIdbqU0WBe1D3o/cMMoF/LQ6XW53dAVtgMt6q6fawVDNaRppgVMBS7iNUdMNEXcVeAz C4ov4mO6Oz22BV16puvbQ24P6cEvKjREwTzxApMLBuSAXI+cx6ERzDx8j9UPRA4pYNd3 FP/qKst7jTXL2me2/ulV/d6Y2zLxbH3SbKTxI1Z6AuZuq0G0s2DWFLJPYOHvA5gYy7Rv OsKQ== X-Gm-Message-State: ALyK8tJpb9tpYl0TQJgICnoCF9E2If9ty/2UW0jv3yJw5wRRwRAbmsKxrjRIZqguq7AD6UM1 X-Received: by 10.98.81.1 with SMTP id f1mr19024360pfb.33.1466552639786; Tue, 21 Jun 2016 16:43:59 -0700 (PDT) Received: from VM-host64-64-A1.ric.broadcom.com ([216.31.219.19]) by smtp.gmail.com with ESMTPSA id 69sm58427246pfc.90.2016.06.21.16.43.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jun 2016 16:43:59 -0700 (PDT) From: Steve Rae To: u-boot@lists.denx.de Date: Tue, 21 Jun 2016 16:43:05 -0700 Message-Id: <1466552587-9953-3-git-send-email-srae@broadcom.com> X-Mailer: git-send-email 1.8.5 In-Reply-To: <1466552587-9953-1-git-send-email-srae@broadcom.com> References: <1466552587-9953-1-git-send-email-srae@broadcom.com> Cc: Steve Rae , Tom Rini Subject: [U-Boot] [PATCH 2/4] arm: bcm235xx: implement the boot0 hook code X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Choose the Kconfig boot0 hook option and implement the required code. Signed-off-by: Steve Rae --- arch/arm/include/asm/arch-bcm235xx/boot0.h | 15 +++++++++++++++ configs/bcm23550_w1d_defconfig | 1 + 2 files changed, 16 insertions(+) create mode 100644 arch/arm/include/asm/arch-bcm235xx/boot0.h diff --git a/arch/arm/include/asm/arch-bcm235xx/boot0.h b/arch/arm/include/asm/arch-bcm235xx/boot0.h new file mode 100644 index 0000000..7e72882 --- /dev/null +++ b/arch/arm/include/asm/arch-bcm235xx/boot0.h @@ -0,0 +1,15 @@ +/* + * Copyright 2016 Broadcom Corporation. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __BOOT0_H +#define __BOOT0_H + +/* BOOT0 header information */ +#define ARM_SOC_BOOT0_HOOK \ + .word 0xbabeface; \ + .word _end - _start + +#endif /* __BOOT0_H */ diff --git a/configs/bcm23550_w1d_defconfig b/configs/bcm23550_w1d_defconfig index cd47cd0..0ef4a37 100644 --- a/configs/bcm23550_w1d_defconfig +++ b/configs/bcm23550_w1d_defconfig @@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK=y CONFIG_TARGET_BCM23550_W1D=y CONFIG_HUSH_PARSER=y CONFIG_CMD_BOOTZ=y