From patchwork Fri May 9 19:59:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 29923 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 41914202FE for ; Fri, 9 May 2014 20:03:40 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id rl12sf22159044iec.2 for ; Fri, 09 May 2014 13:03:39 -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:cc: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=M6ulazcjzZxs+X+S4sFPZ+oaguUlSzdXDHy1YR0IxoI=; b=C4iQ1g8ubuZDNZcR69+RXzB7xsIKA55L5pFZa8V/Qqhk/pajvG01rJ0ehCGSBJd+xj VEESN15qmv7VOQiCarA12yIMgYY6EFeqtMystt1Y+X7tEf8mopwnu8Mpx6OPM25/Yhek T6LrdFI/qZlvD8Vv80tQd/kD7tt8t5kd+SMoWVFo+/C6YAOjM4ZHeU92L0tCxsZB/BQ+ os/ykhgVGcSptYZ6Q/OeCZEedrXsY5oUHXYxJ0hMGTRWevfkhiTUYCwY4Qr2RHFQe/0k vbCXigCUgrt9b5MzX+yBtKM1aRMRzj7Aa9r2Q5zmDREIL6fPo35nsBy7IRqv9JmvxKqf 7s+Q== X-Gm-Message-State: ALoCoQnO+QN3+FpqZrI/LoCbiRrDkM/aGSdzbdZq0TmxmQWnqPNTdeRJ8Gx8WqKkw23JH7SETCuz X-Received: by 10.42.185.1 with SMTP id cm1mr5651976icb.10.1399665819681; Fri, 09 May 2014 13:03:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.51.2 with SMTP id t2ls501847qga.62.gmail; Fri, 09 May 2014 13:03:39 -0700 (PDT) X-Received: by 10.52.101.161 with SMTP id fh1mr738vdb.95.1399665819509; Fri, 09 May 2014 13:03:39 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id ie18si891762vec.121.2014.05.09.13.03.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 May 2014 13:03:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id lf12so5922037vcb.29 for ; Fri, 09 May 2014 13:03:39 -0700 (PDT) X-Received: by 10.58.186.207 with SMTP id fm15mr9772055vec.4.1399665819374; Fri, 09 May 2014 13:03:39 -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.221.72 with SMTP id ib8csp107568vcb; Fri, 9 May 2014 13:03:38 -0700 (PDT) X-Received: by 10.15.45.130 with SMTP id b2mr15683202eew.28.1399665818470; Fri, 09 May 2014 13:03:38 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id 43si4851239eer.147.2014.05.09.13.03.37 for ; Fri, 09 May 2014 13:03:38 -0700 (PDT) Received-SPF: none (google.com: u-boot-bounces@lists.denx.de does not designate permitted sender hosts) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AB2C34BB71; Fri, 9 May 2014 22:03:34 +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 PTgAE7svTobT; Fri, 9 May 2014 22:03:34 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2CDE24BB73; Fri, 9 May 2014 22:03:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7B7AB4BB53 for ; Fri, 9 May 2014 21:59:54 +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 9paAQetLCTCt for ; Fri, 9 May 2014 21:59:51 +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 comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by theia.denx.de (Postfix) with ESMTPS id 5CD4D4BB54 for ; Fri, 9 May 2014 21:59:46 +0200 (CEST) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s49Jxiux021138 for ; Fri, 9 May 2014 14:59:44 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s49Jxi9v001731 for ; Fri, 9 May 2014 14:59:44 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Fri, 9 May 2014 14:59:43 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s49Jxh6c015596; Fri, 9 May 2014 14:59:43 -0500 From: Felipe Balbi To: Tom Rini Date: Fri, 9 May 2014 14:59:37 -0500 Message-ID: <1399665578-4640-3-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.0.0.rc1 In-Reply-To: <1399665578-4640-1-git-send-email-balbi@ti.com> References: <1399665578-4640-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 09 May 2014 22:03:11 +0200 Cc: s-kipisz2@ti.com, u-boot@lists.denx.de Subject: [U-Boot] [PATCH 2/3] board: ti: am43xx: add support for AM43xx Starter Kit 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: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) 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 AM43xx Starter Kit is a new board based on AM437x line of SoCs. Being a low-cost EVM and small size EVM are intended to provide an entry level development platform on a full fledged Hardware System. Signed-off-by: Felipe Balbi --- board/ti/am43xx/board.c | 7 +++++-- board/ti/am43xx/board.h | 5 +++++ include/configs/am43xx_evm.h | 2 ++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c index 24097b0..05546ac 100644 --- a/board/ti/am43xx/board.c +++ b/board/ti/am43xx/board.c @@ -244,7 +244,7 @@ void emif_get_ext_phy_ctrl_const_regs(const u32 **regs, u32 *size) if (board_is_eposevm()) { *regs = ext_phy_ctrl_const_base_lpddr2; *size = ARRAY_SIZE(ext_phy_ctrl_const_base_lpddr2); - } else if (board_is_gpevm()) { + } else if (board_is_gpevm() || board_is_sk()) { *regs = ext_phy_ctrl_const_base_ddr3; *size = ARRAY_SIZE(ext_phy_ctrl_const_base_ddr3); } @@ -263,7 +263,7 @@ const struct dpll_params *get_dpll_ddr_params(void) if (board_is_eposevm()) return &epos_evm_dpll_ddr; - else if (board_is_gpevm()) + else if (board_is_gpevm() || board_is_sk()) return &gp_evm_dpll_ddr; printf(" Board '%s' not supported\n", am43xx_board_name); @@ -373,6 +373,9 @@ void sdram_init(void) enable_vtt_regulator(); config_ddr(0, &ioregs_ddr3, NULL, NULL, &ddr3_emif_regs_400Mhz, 0); + } else if (board_is_sk()) { + config_ddr(0, &ioregs_ddr3, NULL, NULL, + &ddr3_emif_regs_400Mhz, 0); } } #endif diff --git a/board/ti/am43xx/board.h b/board/ti/am43xx/board.h index 091162e..017047d 100644 --- a/board/ti/am43xx/board.h +++ b/board/ti/am43xx/board.h @@ -47,6 +47,11 @@ static inline int board_is_gpevm(void) return !strncmp(am43xx_board_name, "AM43__GP", HDR_NAME_LEN); } +static inline int board_is_sk(void) +{ + return !strncmp(am43xx_board_name, "AM43__SK", HDR_NAME_LEN); +} + void enable_uart0_pin_mux(void); void enable_board_pin_mux(void); void enable_i2c0_pin_mux(void); diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h index 614857d..d7866ff 100644 --- a/include/configs/am43xx_evm.h +++ b/include/configs/am43xx_evm.h @@ -196,6 +196,8 @@ "setenv fdtfile am43x-epos-evm.dtb; fi; " \ "if test $board_name = AM43__GP; then " \ "setenv fdtfile am437x-gp-evm.dtb; fi; " \ + "if test $board_name = AM43__SK; then " \ + "setenv fdtfile am437x-sk-evm.dtb; fi; " \ "if test $fdtfile = undefined; then " \ "echo WARNING: Could not determine device tree; fi; \0"