From patchwork Wed Aug 10 02:50:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Chen X-Patchwork-Id: 657585 X-Patchwork-Delegate: sjg@chromium.org 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 3s8Fyz22H3z9s9N for ; Wed, 10 Aug 2016 12:51:23 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 57195A7580; Wed, 10 Aug 2016 04:51:21 +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 RikCIJbqcpkt; Wed, 10 Aug 2016 04:51:21 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4F70FA7518; Wed, 10 Aug 2016 04:51:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AF8C5A7518 for ; Wed, 10 Aug 2016 04:51:00 +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 8_FdueLEPQWW for ; Wed, 10 Aug 2016 04:50:54 +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-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by theia.denx.de (Postfix) with ESMTPS id 09EB2A74FB for ; Wed, 10 Aug 2016 04:50:29 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id y134so1919766pfg.3 for ; Tue, 09 Aug 2016 19:50:29 -0700 (PDT) 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; bh=SRhxJRz+AkSuoy6r+a+3ligOVs9kos/KEC0klSgwvHk=; b=dFLWNgrmyVkwTpVOU3weWWxkwoFl6bIN0zSzdb25TYrvk5HEtUVnbIEP8/cjURVnDy uyCyKn0CCQ8CxJFS17F/sGmLMZuyNaoazqLn7QB58+Xy+j5CAeldM5s2QCgrnQBDOGpi kBe6Z5Iq+xR+L0WvQL+Sr1s58fxR7U2CRmGX4m5kEXdzOhG/IoJEZQ1wuKN8xreGcZjV JGl0PYx9bYlgrNWu6n8CI8LhUijyIvEYn9SHcJh7CXomSWk1tTn17DB4JrBZoQ+D2WBt E/qddt+QmcIInjP3G4Cb6uBx9vTDWALQEiDBQCSX+JAC3nMsQFSVRRLKGYtnzzwAmPhA jAvw== X-Gm-Message-State: AEkoousdhKY8HOwTuHKdCYSPMlW4HOcE5HD9N9YLU6DpIxinyPqVqGm/G9MmUZ8fbOrdPQ== X-Received: by 10.98.24.194 with SMTP id 185mr2936477pfy.52.1470797427545; Tue, 09 Aug 2016 19:50:27 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id m78sm59055790pfj.66.2016.08.09.19.50.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Aug 2016 19:50:26 -0700 (PDT) From: Jacob Chen To: u-boot@lists.denx.de Date: Wed, 10 Aug 2016 10:50:23 +0800 Message-Id: <1470797423-13194-1-git-send-email-jacob2.chen@rock-chips.com> X-Mailer: git-send-email 1.9.1 Cc: Jacob Chen , Lin huang Subject: [U-Boot] [PATCH v1] rockchip: rk3288-firefly: enable boot from eMMC 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" Add eMMC dt node and define fallback boot devices. Signed-off-by: Jacob Chen --- arch/arm/dts/rk3288-firefly.dts | 4 ++++ board/firefly/firefly-rk3288/firefly-rk3288.c | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/dts/rk3288-firefly.dts b/arch/arm/dts/rk3288-firefly.dts index 3176d50..b54359e 100644 --- a/arch/arm/dts/rk3288-firefly.dts +++ b/arch/arm/dts/rk3288-firefly.dts @@ -67,6 +67,10 @@ u-boot,dm-pre-reloc; }; +&emmc { + u-boot,dm-pre-reloc; +}; + &gpio3 { u-boot,dm-pre-reloc; }; diff --git a/board/firefly/firefly-rk3288/firefly-rk3288.c b/board/firefly/firefly-rk3288/firefly-rk3288.c index 5119e95..3e89389 100644 --- a/board/firefly/firefly-rk3288/firefly-rk3288.c +++ b/board/firefly/firefly-rk3288/firefly-rk3288.c @@ -5,3 +5,11 @@ */ #include +#include + +void board_boot_order(u32 *spl_boot_list) +{ + /* eMMC prior to sdcard. */ + spl_boot_list[0] = BOOT_DEVICE_MMC2; + spl_boot_list[1] = BOOT_DEVICE_MMC1; +}