From patchwork Fri Mar 21 20:51:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Murali Karicheri X-Patchwork-Id: 26870 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f70.google.com (mail-pa0-f70.google.com [209.85.220.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F328820143 for ; Fri, 21 Mar 2014 20:52:54 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id lj1sf7150098pab.9 for ; Fri, 21 Mar 2014 13:52:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=6iHHTI4HCxUDzldFsbQoBYYUyKnnky3Ee3zdp7mkth4=; b=l9KUgIH2/uuaNhJeyAUoWJSlYl2J2x+E9ttiQHjQUamvHC/nP3xuuK1eI2Ph28oSys ihDt/ieKGv3f/asRA+3cmyiZYfYCKPrPksnKE4Ki8h8MPbADz3zrA8/Cuj7/HmscmSL8 C2XibYVFz1ljgTEjjVqlfPH0tcrANlCCnErQf3oHziF2XixDrFfPE9Yu+U8F54yX7/uI fZa6ZlW5YjC2pvhjte1EamRer4cy6ZpoAG1wQsouNUZMg1Lwf/guxogINTdjBRR0+92e mj18xrjuAsdvG+FdENRWg65COVNYIlFDCRqiPeJoBr/9SWsKnwyivFfPz9q2B4+vBNkA 3Cig== X-Gm-Message-State: ALoCoQm8+/BoiO9uwrQONEYnCpfDpwnR6zqOXZByFF69do/6EeZs9qHJY8JY7tz6NgUoFseeV2RU X-Received: by 10.68.197.73 with SMTP id is9mr20761393pbc.0.1395435174206; Fri, 21 Mar 2014 13:52:54 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.35.208 with SMTP id n74ls796004qgn.65.gmail; Fri, 21 Mar 2014 13:52:54 -0700 (PDT) X-Received: by 10.220.106.84 with SMTP id w20mr38886965vco.18.1395435174018; Fri, 21 Mar 2014 13:52:54 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id q1si1405465ves.63.2014.03.21.13.52.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 13:52:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id lc6so3158725vcb.7 for ; Fri, 21 Mar 2014 13:52:53 -0700 (PDT) X-Received: by 10.220.104.210 with SMTP id q18mr29592428vco.9.1395435173929; Fri, 21 Mar 2014 13:52:53 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp58484vck; Fri, 21 Mar 2014 13:52:53 -0700 (PDT) X-Received: by 10.204.78.9 with SMTP id i9mr4794bkk.40.1395435172987; Fri, 21 Mar 2014 13:52:52 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id pa6si2827822bkb.241.2014.03.21.13.52.52 for ; Fri, 21 Mar 2014 13:52:52 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 295C44B5FD; Fri, 21 Mar 2014 21:52:43 +0100 (CET) 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 9jjrBE5zaNkY; Fri, 21 Mar 2014 21:52:42 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6D5944B60C; Fri, 21 Mar 2014 21:52:00 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 45AA34B5EB for ; Fri, 21 Mar 2014 21:51:54 +0100 (CET) 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 tWCqsh5BmmgS for ; Fri, 21 Mar 2014 21:51:50 +0100 (CET) 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 arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by theia.denx.de (Postfix) with ESMTPS id 5B71E4B5D0 for ; Fri, 21 Mar 2014 21:51:41 +0100 (CET) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s2LKpdWg001449 for ; Fri, 21 Mar 2014 15:51:40 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2LKpdqX019229 for ; Fri, 21 Mar 2014 15:51:39 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Fri, 21 Mar 2014 15:51:39 -0500 Received: from ares-ubuntu.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s2LKpdEp021466; Fri, 21 Mar 2014 15:51:39 -0500 Received: from a0868495 by ares-ubuntu.am.dhcp.ti.com with local (Exim 4.76) (envelope-from ) id 1WR6Pj-0007of-BA; Fri, 21 Mar 2014 16:51:39 -0400 From: Murali Karicheri To: , Date: Fri, 21 Mar 2014 16:51:30 -0400 Message-ID: <1395435098-30003-2-git-send-email-m-karicheri2@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1395435098-30003-1-git-send-email-m-karicheri2@ti.com> References: <1395435098-30003-1-git-send-email-m-karicheri2@ti.com> MIME-Version: 1.0 Subject: [U-Boot] [PATCH v3 1/9] fdt: call ft_board_setup_ex() at the end of image_setup_libfdt() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: m-karicheri2@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Vitaly Andrianov The keystone2 SOC requires to fix all 32 bit aliased addresses to their 36 physical format. This has to happen after all fdt nodes are added or modified. Signed-off-by: Vitaly Andrianov Signed-off-by: Murali Karicheri Acked-by: Tom Rini --- common/image-fdt.c | 5 +++++ include/fdt_support.h | 1 + 2 files changed, 6 insertions(+) diff --git a/common/image-fdt.c b/common/image-fdt.c index a54a919..5d64009 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -487,5 +487,10 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob, if (!ft_verify_fdt(blob)) return -1; +#ifdef CONFIG_SOC_K2HK + if (IMAGE_OF_BOARD_SETUP) + ft_board_setup_ex(blob, gd->bd); +#endif + return 0; } diff --git a/include/fdt_support.h b/include/fdt_support.h index 9871e2f..4c1416d 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -63,6 +63,7 @@ int fdt_pci_dma_ranges(void *blob, int phb_off, struct pci_controller *hose); #endif void ft_board_setup(void *blob, bd_t *bd); +void ft_board_setup_ex(void *blob, bd_t *bd); void ft_cpu_setup(void *blob, bd_t *bd); void ft_pci_setup(void *blob, bd_t *bd);