From patchwork Wed Jan 24 09:14:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Faiz Abbas X-Patchwork-Id: 865256 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="b6ereSDE"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zRKHG26qwz9s7n for ; Wed, 24 Jan 2018 20:14:16 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id ADDE7C221FB; Wed, 24 Jan 2018 09:14:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 23838C21DDF; Wed, 24 Jan 2018 09:14:03 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A9699C21DDF; Wed, 24 Jan 2018 09:14:00 +0000 (UTC) Received: from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77]) by lists.denx.de (Postfix) with ESMTPS id 40934C21C50 for ; Wed, 24 Jan 2018 09:13:58 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w0O9Dr9i025401; Wed, 24 Jan 2018 03:13:53 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1516785233; bh=GKltUKmY9tOWI2ewRpSGMU8pfKsvCGIyauRh1m+Vp7U=; h=From:To:CC:Subject:Date; b=b6ereSDEOuiMYPk2i6Oc9GrPtJITq9waVTQdc4B+afhEhDWUxmbWgWJFDAwOPnRdz PImBPIDYLlnv7wdo4Rvg/GAJU5+9aSS5Dd3JopTGMmIiNDepkJFypC3UJwXEung6qP yNVZcG7kt0iLEnpqaVMtkhwErdOY0ROUr23Xj5yQ= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w0O9Drb0013058; Wed, 24 Jan 2018 03:13:53 -0600 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Wed, 24 Jan 2018 03:13:53 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Wed, 24 Jan 2018 03:13:53 -0600 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w0O9DohS014818; Wed, 24 Jan 2018 03:13:51 -0600 From: Faiz Abbas To: , , Date: Wed, 24 Jan 2018 14:44:49 +0530 Message-ID: <1516785289-19925-1-git-send-email-faiz_abbas@ti.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: u-boot@lists.denx.de, faiz_abbas@ti.com Subject: [U-Boot] [PATCH] am33xx: board: Call spl_early_init() to support sdram_init() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" With driver model enabled in SPL, sdram_init() requires device tree and malloc to be initialized. Therefore call spl_early_init() in early_system_init(). Signed-off-by: Faiz Abbas Reviewed-by: Lokesh Vutla --- arch/arm/mach-omap2/am33xx/board.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-omap2/am33xx/board.c b/arch/arm/mach-omap2/am33xx/board.c index ae86b69..ea0caba 100644 --- a/arch/arm/mach-omap2/am33xx/board.c +++ b/arch/arm/mach-omap2/am33xx/board.c @@ -353,6 +353,9 @@ void early_system_init(void) #ifdef CONFIG_TI_I2C_BOARD_DETECT do_board_detect(); #endif +#ifdef CONFIG_SPL_BUILD + spl_early_init(); +#endif #if defined(CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC) /* Enable RTC32K clock */ rtc32k_enable();