From patchwork Fri Jul 19 19:00:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 260332 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 7862D2C0099 for ; Sat, 20 Jul 2013 05:01:31 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A49BE4A087; Fri, 19 Jul 2013 21:01:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 jTATJisMkURc; Fri, 19 Jul 2013 21:01:16 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EB9A54A097; Fri, 19 Jul 2013 21:01:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E30094A027 for ; Fri, 19 Jul 2013 21:00:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 3xyZEgewNnfH for ; Fri, 19 Jul 2013 21:00:38 +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-yh0-f51.google.com (mail-yh0-f51.google.com [209.85.213.51]) by theia.denx.de (Postfix) with ESMTPS id 21AD84A028 for ; Fri, 19 Jul 2013 21:00:29 +0200 (CEST) Received: by mail-yh0-f51.google.com with SMTP id l109so1662320yhq.38 for ; Fri, 19 Jul 2013 12:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references; bh=aRp9G5h/4W3gRiUpGYAfT3UfYnvNb/mEm6wpXBLa6uk=; b=TK0vlxS/D5+ggSmBVHlPSqzPWZwbZRHjpiQYRyQpVmcP7kWLU8Mq5GBs2FRZj6fpzr 68xA6X43A2AdfaTrfeLtCqdv+mhMu2TB0VPmeYLlqIHhKTUxxfpk+Fhw/tjbNSMxWFoh Nwd9UFXuszHuD1UaGXqOjN/tw23Wu6OxRlmarPRKMj4hWDILl1nOSxyOsKU/FvzmfI+y Jn4EiQt6vqHbL75SLel6ioYnW8VdKyZsxbZwlI0uI/hiJv/akuVuMNojiBJa/o6U936B mhnGfNUMQ9vQs1yUlTfCv+bLUNsgRYJFkZnazphc7CMSNe9XwEgYLC8Bhpro3b+xL5Ry Ubzw== X-Received: by 10.236.49.41 with SMTP id w29mr9559455yhb.152.1374260428908; Fri, 19 Jul 2013 12:00:28 -0700 (PDT) Received: from localhost.localdomain (cpe-065-184-250-089.ec.res.rr.com. [65.184.250.89]) by mx.google.com with ESMTPSA id b48sm23285743yhc.8.2013.07.19.12.00.28 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Jul 2013 12:00:28 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Fri, 19 Jul 2013 15:00:24 -0400 Message-Id: <1374260426-9085-4-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1374260426-9085-1-git-send-email-trini@ti.com> References: <1374260426-9085-1-git-send-email-trini@ti.com> Subject: [U-Boot] [PATCH 4/6] am33xx: Add am33xx_spl_board_init function, call X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de We need to allow for a further call-out in spl_board_init. Call this am33xx_spl_board_init and add a __weak version. This function may be used to scale the MPU frequency up, depending on board needs. Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/boot-common.c | 12 ++++++++++++ arch/arm/include/asm/arch-am33xx/sys_proto.h | 1 + 2 files changed, 13 insertions(+) diff --git a/arch/arm/cpu/armv7/omap-common/boot-common.c b/arch/arm/cpu/armv7/omap-common/boot-common.c index 76ae1b6..bf11f04 100644 --- a/arch/arm/cpu/armv7/omap-common/boot-common.c +++ b/arch/arm/cpu/armv7/omap-common/boot-common.c @@ -22,6 +22,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -75,6 +76,14 @@ u32 spl_boot_mode(void) return gd->arch.omap_boot_params.omap_bootmode; } +/* + * This function is the place to do per-board things such as ramp up the + * MPU clock frequency. + */ +__weak void am33xx_spl_board_init(void) +{ +} + void spl_board_init(void) { #ifdef CONFIG_SPL_NAND_SUPPORT @@ -83,6 +92,9 @@ void spl_board_init(void) #if defined(CONFIG_AM33XX) && defined(CONFIG_SPL_MUSB_NEW_SUPPORT) arch_misc_init(); #endif +#ifdef CONFIG_AM33XX + am33xx_spl_board_init(); +#endif } int board_mmc_init(bd_t *bis) diff --git a/arch/arm/include/asm/arch-am33xx/sys_proto.h b/arch/arm/include/asm/arch-am33xx/sys_proto.h index 307ac28..98dc830 100644 --- a/arch/arm/include/asm/arch-am33xx/sys_proto.h +++ b/arch/arm/include/asm/arch-am33xx/sys_proto.h @@ -45,4 +45,5 @@ void omap_nand_switch_ecc(uint32_t, uint32_t); void rtc32k_enable(void); void uart_soft_reset(void); +void am33xx_spl_board_init(void); #endif