From patchwork Sat Jan 4 08:38:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1010 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 37C9B3F08F for ; Sat, 4 Jan 2020 09:38:25 +0100 (CET) Received: by mail-pg1-f198.google.com with SMTP id 4sf8260976pgn.7 for ; Sat, 04 Jan 2020 00:38:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578127103; cv=pass; d=google.com; s=arc-20160816; b=tguy0XvwSHCzSL3LorDJ29txHFzJt/MnyTb0uFtYMCJBC1N59B2Zv9nWqrLmYPsn35 EFgXDfammMm512T35Cx5uaUTJVi2POnV90whQKWne8ES/mqMNcEKPIsWEl6fEJ+XrTmx KIUr7jfmiN8aTNfxEAPslPJiIsPhruQliDtDehkO9ah83Rbo6Yde1TnAwJZ47wjLSrZM FcQSZrXqmUVM4XNDK8u5zV6Y0iVkrApWsWKrdChA7yPGbg3nRjKtQ0jQq0X5YPeTbeIq eCOLCTRGR85GMmUTDLnKG3ESeYm3lSa7YSB0komj+UHW8fFRiWyAEuaHEdLFd/aEJYTh e55A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=f43Lag/RiNcEXyHoRh1IMB+vskdNufSNGx27XV3qABs=; b=ZkJzh2asSHq10Ds7U9BKhyHezuRoK1EKs1qgb3mqVAHN9hOWir1nlKQ+sT0gqPFPg5 9O0F7dfcll6q6BDNuR6qCFRV/4aLEAJIWr91s0x3SxLYWviHHUAgsRjnpf6RkJ6XXm05 QMMSJlLvTl8glzYiFt+/FrXPPgMgfH7gHM6H71fF3P9Uze4CAOqz4SmZSInj6d8iLLVo C2lFSnF0vBuImHfaTuFE/KgftjFuYJIeUO3a0mmq8O7O6/2Od5rJ4GeTBCgCdXYF5wIF HxQ0MJvlmkoO7/TcAnS4kKrl+IJjkALk5X6e6XPRqTkMgzvUIBPvK+7DrZAiX/F+UNLW o9mg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gJUAqMV8; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=f43Lag/RiNcEXyHoRh1IMB+vskdNufSNGx27XV3qABs=; b=n2raX7/4D7n1sKLtb4FfsNerIucFUnZGv+D707AyYsWgu0PsKxfVyukW5fr20Qtu7U jZZJzezSHoEoBJPd1i4goYmsA90svywDkldC1VaFNsl33eFcYrVGM0h9vzkGbbIw40dP SfxXglve9Zk11UV4s9Og8Hu7z8rvgxyeNSk9w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=f43Lag/RiNcEXyHoRh1IMB+vskdNufSNGx27XV3qABs=; b=d6ZuoO7qMJUJy1JEz6xEyNBxR0+BSugzRycnDjndpkx980IyvHxDAuL5yfFOoDM0nT +yHdKPoe2i+c3DmMpQIfC9PdCc6Xbchs6k/l2Ou6iyzvIEa8LJ18ZLU7Ke1Xjjbfu7FW L7iD056ULcQ2tfWIqx5yFmpcnDDWVDK1oLIje8scaVvHHIFJoUdqMC7P51Vve4cRVWkF h9FMoRz5Pf3bBypXYkZc1UqlOTQ/gG2QnxJ0DQNYjdRwUyrIH+yTzyz0tm2ktlAOiagD XXqf7cptbsGMDMVkKQQyv2Mo6YBkCwLhAwl4UHkiegYBl0CYaWvgTFubFNzHKH21rC43 H6bA== X-Gm-Message-State: APjAAAXo3DocssR+lM3Zr5XW0InadajHcwrquLkqVCHouVfKpNxLuufl d6gf5UOHoWjRLJg8HhgWqbnMQHSt X-Google-Smtp-Source: APXvYqxq7jQ+HUsKIvsEO4NDYT5qu2d3vmTbHoKHl5w1dNpaq3Xunao2IcunDiWH7x9E3xrQKnqeHw== X-Received: by 2002:a17:902:528:: with SMTP id 37mr19310963plf.322.1578127103501; Sat, 04 Jan 2020 00:38:23 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:c5c:: with SMTP id 28ls11807580pgm.12.gmail; Sat, 04 Jan 2020 00:38:23 -0800 (PST) X-Received: by 2002:a63:3196:: with SMTP id x144mr100322318pgx.319.1578127102968; Sat, 04 Jan 2020 00:38:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578127102; cv=none; d=google.com; s=arc-20160816; b=ARaszrMApJ17Men3Ujcf27iirm/P3+Ujx31EPet4fT6FDiPiC3TO1NtoJFqbvMBoIw 4lepxc5Ied4DHPpZdFwdByqkvFqd5WEolp9+7h6g2Iy8cN+fBjJUxpQIbEOmXbfDhscS xkgsxQxsRK2Usi2LLxklHPbnYhrCpJXlGGWvKC83JHzbqlzZNRDp476CcJ9T5utZuuh0 kDnGXxP0uIW9OkD5z6jtZcSe7RuueqTG4/0aXQjnQc8WJfrd9x+zgHvopP0n5l7jNg/z 2evLKGXmAWNXGdhFBy1Zcauv2D9JT7v0YP3nVaZEHMqxH8zfHpl6CtKzN8t89GBM/BkJ ai/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=uFc+KeHVvPb55BWADcWbagsPR+XJZj6DCQVbpAY2/9o=; b=rLMO0KV92DySUhADcbCZz+h+rUT/vJeO69fu+cOCWp/HHO+zHKZAoMPUBJ5bMT/+Si HmoIr70fOJunomqLXANIwTXZ3zmH2tuZ5YeALOMqy24KGinTO+9EPxRPszGF0FAjQvQO 4KOpSDYqfVkIWLNK/Wc+ogTickmrEcRWqvn+DdlBjBV8/3ATt6OUGvDO7z2D1+PWBsb9 8NlYujePcQI56sU3sxpGRW2BEUxnvGBT5o6shbeuyon50E3++AXy6DYCLyflH5B3A+4L H9JE9FeO6jzYFW97d2qk8IM7aCQ3EQ2m00qfKhmxZKKTdOsZs5bGNmVMrO0gsdhHqQ7E 80EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gJUAqMV8; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id s5sor61750387plp.29.2020.01.04.00.38.22 for (Google Transport Security); Sat, 04 Jan 2020 00:38:22 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:b210:: with SMTP id t16mr45346253plr.65.1578127102639; Sat, 04 Jan 2020 00:38:22 -0800 (PST) Received: from localhost.localdomain ([49.206.201.128]) by smtp.gmail.com with ESMTPSA id z4sm70201623pfn.42.2020.01.04.00.38.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2020 00:38:22 -0800 (PST) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Akash Gajjar , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki , "Matwey V . Kornilov" Subject: [PATCH v6 1/6] Makefile: Add rockchip image type Date: Sat, 4 Jan 2020 14:08:01 +0530 Message-Id: <20200104083806.3930-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200104083806.3930-1-jagan@amarulasolutions.com> References: <20200104083806.3930-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gJUAqMV8; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add rockchip image type support. right now the image type marked with rksd, So create image type variable with required image type like rksd or rkspi. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e20a206239..9998d238f3 100644 --- a/Makefile +++ b/Makefile @@ -1374,7 +1374,15 @@ u-boot-with-spl.bin: $(SPL_IMAGE) $(SPL_PAYLOAD) FORCE $(call if_changed,pad_cat) ifeq ($(CONFIG_ARCH_ROCKCHIP),y) -MKIMAGEFLAGS_u-boot-tpl.img = -n $(CONFIG_SYS_SOC) -T rksd + +# rockchip image type +ifeq ($(CONFIG_SPI_FLASH_SUPPORT),y) +ROCKCHIP_IMG_TYPE := rkspi +else +ROCKCHIP_IMG_TYPE := rksd +endif + +MKIMAGEFLAGS_u-boot-tpl.img = -n $(CONFIG_SYS_SOC) -T $(ROCKCHIP_IMG_TYPE) tpl/u-boot-tpl.img: tpl/u-boot-tpl.bin FORCE $(call if_changed,mkimage) idbloader.img: tpl/u-boot-tpl.img spl/u-boot-spl.bin FORCE From patchwork Sat Jan 4 08:38:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1011 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7DE3E3F08F for ; Sat, 4 Jan 2020 09:38:28 +0100 (CET) Received: by mail-pg1-f197.google.com with SMTP id o21sf18308882pgm.11 for ; Sat, 04 Jan 2020 00:38:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578127107; cv=pass; d=google.com; s=arc-20160816; b=YPUtt+6XQceBlU7vBnfZqpd7u83bgw6T/xq1gQ+VPcbwDOCTRrJbUYKtHjiRQ1jUZG RXQbOXilQx8Us6+3WBkqvnXIet+i5MEMoBnnc+GG/BWv1Dw7gqQAmv3xxVxPh1OBQWDa sQpzZ2figT+p2rakQ5PAUFbuagjtLCivqOFB669TKlcw7+mwYAVwI2Y7mE1Py0vG6MMk dt/TsRf2f+VCiZOaa/k6Zox20VqdYcB50pFRWwShnF/voAvbXbDOb0qp54a1sSCInSBZ XbbpB/zkSZxVaNHJoy8fbxEFW2jeHxcOwW1gPWIF5I8a/X4IsmaAyg7exdcGE+D8lFRb uJsQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=2mvOWhg5lxne4mNYl3tdSlnPSrKJSpr4ZpeRe5mCA7I=; b=SXVpOdih5mkYad77jsPg0FTcXRBLxFFdpEkVvuXWFNtv8m2vzXwFfrQkTFoh09R9vj gAaH/Su6COaPyZGLNIQCcqAWZJQ/xYHePHjpcYYN1GFMGoXafKRfafzMWTAuN9ERAuG4 b77N3ird58dmBzo1aCyQZh2uhlA0j1VG7JglmROW7ArAFr9OuLEl0vjif1cSi4zvhWlV ksn4L+oImK2tIzstl2ugf93UaSEcM2YV79dFHbqBkQhTKgBpMWk9rdc/dtoRFaZ9HB+H ycukD8IXrW51WNSYgBJmV9sdMjK96wjJgwhO/ekq14J10YDc1A9vu0QJo+pKrzf5cSTV nycg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iybUH2ff; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=2mvOWhg5lxne4mNYl3tdSlnPSrKJSpr4ZpeRe5mCA7I=; b=WIR9MFMJkdE8ULAfXvBK9oNkyQvVkXkFGv8aBe2A6P7aY2lQUuOIOYYePJSjk0RtMl qtNuKo2W78vkmVJwFsFTdHs+N13BEwvQ1piGiNpR3495slBVuXhtvAqbEUHmbA/pF9GC pnHJBvrCUuIY8GOPH+a9gv+z70+Q6H21Uolbw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=2mvOWhg5lxne4mNYl3tdSlnPSrKJSpr4ZpeRe5mCA7I=; b=p+V2xyXIUn0XCseO69BURuybkslo94Yizwiu0kTAGz75iYMhgkpwhJXe2QzyKuCEwj nlkro1XMISwkHsqTfh1/mM079HrC7gNBRA3swRJ1OTpU9ehCjRcrmdspmUZX5GpUuLMD Q3cKI/5lcZD0HZx//61XCPfeSwTEuXXey7MEI8NYM2eCTt2mc71/Lm/FANzsHbW05OuA ZJV5oGHUXaU/gqpuKIgetF0/vTYhJL7Acm6RI6JbKueJ+AYDr2sjP8eTxU4fqMCbvCbc 65dgGHI/0pnR218sg5MuGCm1IKjhLJQKl+A8D5ywi28gPvGY1nFwDjok+jIIPtW1N0IK ZLpA== X-Gm-Message-State: APjAAAUOromcDeDdnZOp3p2P9h8Urvfor9kE73vlbh+t7/uU4Vhh00mp 2amVhfUhwa8hpjwhDzWytoak0AFs X-Google-Smtp-Source: APXvYqyZsNxFP5M/u4o1hJ973O+4UasVLCPtBJHuS4DEK46ZRNJSmqGa3LciEoJ93R6UZ3ZJdzAw1A== X-Received: by 2002:a17:90a:98d:: with SMTP id 13mr32000281pjo.102.1578127107313; Sat, 04 Jan 2020 00:38:27 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:b491:: with SMTP id y17ls13206264plr.16.gmail; Sat, 04 Jan 2020 00:38:27 -0800 (PST) X-Received: by 2002:a17:90b:1243:: with SMTP id gx3mr31836242pjb.117.1578127106880; Sat, 04 Jan 2020 00:38:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578127106; cv=none; d=google.com; s=arc-20160816; b=kK6j2oJ6CGmIQ71dCL4aIN6qdn0QqysfG2/OTzZM8p+Z5VkL17FljyfrEZSIiO5CUH lBAL4M4ojnPJL23VdPjgh03oCiupZ6PqwmW/5LKP4GQXdpBWzBZXtHrTF17cKEpILlOm NKFPr/2crtTX6LopoPXnXPACFcr657frrExSDdruKYyIMTA6/NiJVkwRctkfKB1VianW rsIuCohlIT05v7ZPqHHqeyBsRoV7gICNBBRtQ6yWppucPU/XvsJ9IuIdAXyEoPFafoxg le7hEXzgW2ebvIypBDnScImXNvFis6FBZeTY2PzSEyvo5EPZOT6QukTevP/szFwHvHhk iObQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=MdVD38WP8mrB9cxL9ngtMTtlvhd/lrRFS5qqLyy/3UM=; b=bGVdHiuNDRFBYbeK1M0lEUVzbCVAYKKkutJF/ldytCyww95RbXS1bOjcHDOBkDXSQ4 N5LTZ8mjcvLVfysH9dgmFMXHb1QjQxugrk6y8YTeXB38fwVW9VLVd/H2Pzua1iQ3KAXf /17Llllc5xuWs/T8LY30+slMvWGwN+2WONN7YeSihhYLlLFLRtZsTm+7BStv63YvmQpy XVkMhxoDOG9f649SjUrxQLp6ZcKn2XXyNiWoIFUitL7q48rsu2EMean+w4lywlwUfAcv VV0nc/Jn/ePE1SfZwLOkhIfz38adqn+tpM9SoyCuDyq1TZZm5El5NkB+lDolpYa9mKHf D/vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iybUH2ff; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id x7sor60714497pfb.40.2020.01.04.00.38.26 for (Google Transport Security); Sat, 04 Jan 2020 00:38:26 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a62:be12:: with SMTP id l18mr80665263pff.226.1578127106636; Sat, 04 Jan 2020 00:38:26 -0800 (PST) Received: from localhost.localdomain ([49.206.201.128]) by smtp.gmail.com with ESMTPSA id z4sm70201623pfn.42.2020.01.04.00.38.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2020 00:38:26 -0800 (PST) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Akash Gajjar , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki , "Matwey V . Kornilov" Subject: [PATCH v6 2/6] Makefile: rockchip: Suffix platform type with tpl name Date: Sat, 4 Jan 2020 14:08:02 +0530 Message-Id: <20200104083806.3930-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200104083806.3930-1-jagan@amarulasolutions.com> References: <20200104083806.3930-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iybUH2ff; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Most of the platforms uses the platform type on their boot stage image naming conventions in makefile like, u-boot-x86-start16-tpl.bin - x86 start16 TPL bin u-boot-spl-mtk.bin - Mediatek SPL bin This would help to understand the users to what that particular image belongs to? and less confused. On that note, suffix platform type rockchip for existing u-boot-tpl.img so now it become u-boot-tpl-rockchip.bin Also, bin is more conventional way to include it on tools like binman, pad_cat etc in future patches. Note: usage of platform type doesn't follow consistent order as of now. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9998d238f3..e519103be4 100644 --- a/Makefile +++ b/Makefile @@ -1382,10 +1382,10 @@ else ROCKCHIP_IMG_TYPE := rksd endif -MKIMAGEFLAGS_u-boot-tpl.img = -n $(CONFIG_SYS_SOC) -T $(ROCKCHIP_IMG_TYPE) -tpl/u-boot-tpl.img: tpl/u-boot-tpl.bin FORCE +MKIMAGEFLAGS_u-boot-tpl-rockchip.bin = -n $(CONFIG_SYS_SOC) -T $(ROCKCHIP_IMG_TYPE) +tpl/u-boot-tpl-rockchip.bin: tpl/u-boot-tpl.bin FORCE $(call if_changed,mkimage) -idbloader.img: tpl/u-boot-tpl.img spl/u-boot-spl.bin FORCE +idbloader.img: tpl/u-boot-tpl-rockchip.bin spl/u-boot-spl.bin FORCE $(call if_changed,cat) endif From patchwork Sat Jan 4 08:38:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1012 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2EACA3F08F for ; Sat, 4 Jan 2020 09:38:33 +0100 (CET) Received: by mail-pj1-f71.google.com with SMTP id n90sf8627238pji.6 for ; Sat, 04 Jan 2020 00:38:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578127111; cv=pass; d=google.com; s=arc-20160816; b=xJB/8maa2qFghp7kGQCNZIit7nzaIlJU206MYpVNTjQXeJaHgZ1rk82w+EWIjW6Ir7 GqDOdktX52+4xAv3ESL7HZPcGMShGiiWbAraNykrHgYdwqvyZJqvXW6CgFR1W6ynG1ot k0dq8xjh64chDXIQmydkeruuuAXWvtYmZ1u8W7hdlTg7o66r03M74xUAFddPhXF2fJr3 eal2/lJhclNg960DppLAvkjH+4vC0d4bVS6ZV0mAHDjlf9m8r29H+Rdkn9htupka0lzG XwnrA9d67AT+kHg6R1wMlffTIwWgJ5p3H84C7DY9v9b6txBqkvx8DWjmz1mjaj+6Fla5 iQwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=fboZPpyeSckHukf6E8iZq/ccZEILpWoAt4BR+OpAyKY=; b=sewFf2+1yr6laYsoVdTdzvHAy2zgJ5j+magz8henrFSbLJjICl/bO+VdmCP1SnYlI1 5EcD1hHJbmcVf3jMKdwuHtxMP8lN2dpdKPbTjtYxCk36RIyD+80ZhcTWhLvmFbgLJkxA mDFptb30x6+GONhO398E47IbyNSyBH5z8c5xeKyhrYIFNK57SBo99v4J9D8Cyuk4Tu8d B8hFULr0Mwe8OUwRUecRl79XDUpQtNduGQN5kiZ2zJ2OycHmN04dMndglLvxKXfW+KR7 D/HsB3+kNWeSnnk0+2b2LGr/EDYq/ZLZTUsNZar1ZQfIfGzmPsv9rgJvfc2gQHsf3WIN T7+Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=W7T61wSE; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=fboZPpyeSckHukf6E8iZq/ccZEILpWoAt4BR+OpAyKY=; b=h3D0/TUSrTANSTozCibpDWrHmOh3Y3ysth57TvjPnW0cPAAKrIOZQs9BrBM9NJkLGY Dx2OiPI7kAJB6Jh/iMxaZle25p2DF3DGlvJuQt4XzAMLbTKomRFGrG9Z26iqu5OcHnD3 /LlU/AUV0zcSnXKFuipud3AdbjFAEggvlV3VU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=fboZPpyeSckHukf6E8iZq/ccZEILpWoAt4BR+OpAyKY=; b=dozlrsRD0wGIZ5eiwDav/mxcwqubzq7nZfTYuD6SpbhcI3QznCsUPBuUS4pO37Y/lW S6va0NBXHDrPW5XNaoakPXX2HICxD6Krq7+HLZSk5Iwli8Kt8eHFspeNnmb1oQy3C1Qo bsHjvsBmNRWRsYABIKuLGac9w79Fh9l6zMSyDF1oOCyf2LWfvXG0XjbcHFkSgKwyFjRi U1/Wv/P0Oc7tFHxl/kViRcXzblgvHzQpgwZph0Bs2qityCENmBKDGt6fhJs5Z+CV80Um 7EH+e6qnFYxHDKSKHJpx7VGUfNNfmD1C3B//g8tOn/CmvMtm90iyuuTwzgws+XeXiTGk 03pw== X-Gm-Message-State: APjAAAW4QD5xDhVnZEb4Gqmx3e7Ni6hv97hUohNllWIiNLts2H6oB+uC Jj1ARGgKbxPOtlxjOSjlsaqPXCmj X-Google-Smtp-Source: APXvYqxngi6g2gatF3qFKGfRTWOqFqey9QSDEw7h1pVoQjlu13pcgicaQSZArPa95OdN6oyRvTZINg== X-Received: by 2002:aa7:8e8f:: with SMTP id a15mr97532925pfr.153.1578127111713; Sat, 04 Jan 2020 00:38:31 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:7c94:: with SMTP id x142ls14172099pfc.3.gmail; Sat, 04 Jan 2020 00:38:31 -0800 (PST) X-Received: by 2002:a63:ff20:: with SMTP id k32mr97598886pgi.448.1578127111151; Sat, 04 Jan 2020 00:38:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578127111; cv=none; d=google.com; s=arc-20160816; b=cGI0Bz0b94xVB5GuNQBFNhW7Nl18Lg4mr1LLm6DF8wh5o+cIU/LY14mXO51YGixKcv lyaEZIvJzj41QAWx1WRsppUWAz88gM/bn1RueDrV1jn2s0hdFMVpOwntXnD72hBJ2KeE jngb2enBcWBJOq6LUu2B8Oyn4bVMFza68s8ovIv6lAmaY5ILZsb10OQdfDcVyhbqMjll IaOVwJXbYt/Bq/JJDHYzBrTvi5J60pg7V6btt17To/wDxJvue1SMBG2jmw8iLePuQ5OF +CS0To85PKlLr+Y44nTI1WpL9YwlQRrBpjisnBmBfRyvdZmzjeLi7/HyOLrozvjQr+Y1 zu6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=fCEJAVTeFVKCDScEQscaeQ9cpdN3+DTMCdxgai1STTg=; b=n2k1jgwviRTAJYJHt2gPm3phYD36s5rZsA+6ItnVe+iR8AzwGyORxEOxfscHobgYSD OLQy/1EJLENOpIi+d1Ci1DEvST9NpZPHYtb0KB/kFythH6eteWHHYzu/olKNxYw936o5 snKAE8Zo63h20ogM4BqlHkkzZFES8yCDZW7fH2pZKlNgeLx/a1EQqJjxThVw6JGkepPS xwN8zdsn3n+g36kXqepuBltalpjT6uLn7wXp4Jo9L+RXzDFz9O0a5s0TBzmpoHE9qbCH MDcCXJm6Lf3AUXmCzEI6TZHGJXu+ogRC9hBjfb71JyKFDj5OaVAdV4RvVErH07R/yuEG 151g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=W7T61wSE; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id p15sor61470324plo.24.2020.01.04.00.38.31 for (Google Transport Security); Sat, 04 Jan 2020 00:38:31 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:8e87:: with SMTP id bg7mr70053365plb.279.1578127110826; Sat, 04 Jan 2020 00:38:30 -0800 (PST) Received: from localhost.localdomain ([49.206.201.128]) by smtp.gmail.com with ESMTPSA id z4sm70201623pfn.42.2020.01.04.00.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2020 00:38:30 -0800 (PST) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Akash Gajjar , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki , "Matwey V . Kornilov" Subject: [PATCH v6 3/6] Makefile: rockchip: Support SPL-alone mkimage Date: Sat, 4 Jan 2020 14:08:03 +0530 Message-Id: <20200104083806.3930-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200104083806.3930-1-jagan@amarulasolutions.com> References: <20200104083806.3930-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=W7T61wSE; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add SPL-alone mkimage tooling support via Makefile for few platforms or boards used in rockchip family. With this users would get rid of explicitly creating mkimage tool for rockchip rksd or rkspi boot modes. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e519103be4..d8a0f68883 100644 --- a/Makefile +++ b/Makefile @@ -908,7 +908,7 @@ ifeq ($(CONFIG_MPC85xx)$(CONFIG_OF_SEPARATE),yy) ALL-y += u-boot-with-dtb.bin endif -ifeq ($(CONFIG_ARCH_ROCKCHIP)$(CONFIG_SPL)$(CONFIG_TPL),yyy) +ifeq ($(CONFIG_ARCH_ROCKCHIP)$(CONFIG_SPL),yy) ALL-y += idbloader.img endif @@ -1382,11 +1382,19 @@ else ROCKCHIP_IMG_TYPE := rksd endif +# TPL + SPL +ifeq ($(CONFIG_SPL)$(CONFIG_TPL),yy) MKIMAGEFLAGS_u-boot-tpl-rockchip.bin = -n $(CONFIG_SYS_SOC) -T $(ROCKCHIP_IMG_TYPE) tpl/u-boot-tpl-rockchip.bin: tpl/u-boot-tpl.bin FORCE $(call if_changed,mkimage) idbloader.img: tpl/u-boot-tpl-rockchip.bin spl/u-boot-spl.bin FORCE $(call if_changed,cat) +else +MKIMAGEFLAGS_idbloader.img = -n $(CONFIG_SYS_SOC) -T $(ROCKCHIP_IMG_TYPE) +idbloader.img: spl/u-boot-spl.bin FORCE + $(call if_changed,mkimage) +endif + endif ifeq ($(CONFIG_ARCH_LPC32XX)$(CONFIG_SPL),yy) From patchwork Sat Jan 4 08:38:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1013 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 675703F08F for ; Sat, 4 Jan 2020 09:38:36 +0100 (CET) Received: by mail-pg1-f197.google.com with SMTP id t12sf30080625pgs.13 for ; Sat, 04 Jan 2020 00:38:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578127115; cv=pass; d=google.com; s=arc-20160816; b=E3vPof3WsbS4B4IeI8OC/oZ0fw78RJy0Q79keJN9uxBmNr+P8Zj1LJnYHtBVTk2CEj 9OxZfaaAYLuTnd/7JupgmPEzsjpd+ZCPyZpTTH/c6rwJBjwdflCo4WlJ0KKDlg4/YFlm ezPipXUUHbOtx5pJPmwnw0Q4uzX+CgV5WFP9RlEvLEXNQknT38StvVjr2/TNGam+Td6A nQY8RmNechVPX3656G3IaRCCmUS6lXv9uCaI1xOqgOLswZZwtOglBo+/yo0pH3MmcHPF C/mv/5d0anJ+dh60ahHcLWtlcGcHjq0rejmoHRQ6bRtqC5Ly6JYQaA/VFwlI7Gmnl8zO JnzA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=gIQXEvlnnwoCe9L4Z68xFVqWI7JW8g5ZU/5rfOSpDhU=; b=j1vcgQ1tpGmi83+ITQFcEd+pa1cHqjrQ49QiML0pTRRew8HQ7utJ3XHexgyFbTShYP zxoUCsO4IMkKGRs2td3XPU9FiMKtep/iUX8dIQiQmB+xeoY9lQD9yjmfJhNh9Qj/rxxC iGkOTNZ1TwUuyJeUiQAxNgb6GkmMNHmFJAfV4K38g8xmMBp8bXYdriIf++8T4uedjGZb 4sJZgsXWDlnS9S60gCTVQaO1JUqp14Mi1Knr0AUvdw3XjP7ebx6u4gyc9+MvGeHCizSA +RTQiQuXd4RzkSwwmVdYiJo6HDGFBGP2wqAbPZl9RFDnFmdS83ld0Je+I4oPwA1AV/kV Rypw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IIYRBXbO; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=gIQXEvlnnwoCe9L4Z68xFVqWI7JW8g5ZU/5rfOSpDhU=; b=kWuV3nMUBnGxIb7LClsuIbv3i6QDO3KxU9NJjlFU4Bn9oI+SOVzK46FiDoF5f5rMP/ 4s58iX1uvoJjFueQYOwmpszaCjVZKsc/HpH8ZFUjGCN5roBJkKNpi40y9ikIkhVK4nxk NyooRvRupkva6DjHhST8rk60GksJDEzHMAKo0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=gIQXEvlnnwoCe9L4Z68xFVqWI7JW8g5ZU/5rfOSpDhU=; b=BXPBWYF1g3EEm11Dmnvv3VgchJM/3t8z9Cwhm8l3IH+ubSBtA+YoYmbOt0rUW1w7kf ogaRgmVEjSG1You9HIREgICJR2wQT2M2PjpUM4khsQWwqby23WJiAyFw42FS+PvcV7cc dSbv6ZNUl/bDb52ixiAEjsqJN9MyZ4Ddky/U0LhHIsoQg90rkwVBwFBu8S3TjVbUQedb 9xXLMxv5nEJUmXOljPN4LWRhCt6QCkZm7Bnz3zcpv5UEM6XB3Pf9iZ90zAFz5RiXO3AE x+vgd8nItPTj+TwcJCbXT3pZOMGQv1Tj6nLUEUHpgmkcqQGjiwPF7I3WTP5sbJqYfntP FsXw== X-Gm-Message-State: APjAAAW7cP4Ep+a3xPVswQn12U0j0Kno5wOXoexcX1tQDu4Vo3k6H0MZ EKtSxXHSW1cnC9eMdzTWOaDwlFpD X-Google-Smtp-Source: APXvYqxUbzu4gNajwg+i5wHng5pDdH9TsLLh/aBHxRysmZgI7nBSjy7MhMXvN4sz49cOrjvLEOx+6g== X-Received: by 2002:a17:902:6b06:: with SMTP id o6mr74837259plk.138.1578127115186; Sat, 04 Jan 2020 00:38:35 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:864b:: with SMTP id y11ls12429483plt.2.gmail; Sat, 04 Jan 2020 00:38:34 -0800 (PST) X-Received: by 2002:a17:90a:3586:: with SMTP id r6mr31351252pjb.36.1578127114710; Sat, 04 Jan 2020 00:38:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578127114; cv=none; d=google.com; s=arc-20160816; b=D94apsKGA5rbpgpe3gLY4Zu9p6hmQFXQtZJGEub+PYQRRYofx0xGVCit/z9l/74f8u ajzSLUD4oEv2bXT8yDEqSQ4LhpYFCT+odoCNuAZbiP8b46f0qLU3za8YqKJ2xoJkTGj+ 94gxKs1iic+NPKKaEtQLwEHxKs9W1BJMb++OZJYj8b8//9efxosxermKCS1b711iszFj d3aT5JlF0KdmXDRJDaEL+ZlZo3xRa3KshLWJAW+qBAYEMg4nbZfY4cx4X234P0OG9M1p JsrGNk37A20eKFgYKp/BVS4AyONIfqlkJL6EyBPaXEjUSBypmuJhmcl7259t/kKvEDNK x9cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=ohtCegxGTC6Cqe4V14RfDztSgq/DwnKYmeUpgrodjx4=; b=pWySpZNgV1sHI5dEYCRdWuczPA6ypbMqfgWNC8rwsP3MXlOYNHASN8Q6+mYJ7BNpOu TC1LFqQvzdtqRBdKRb90M558uLamtzTGj+RxRZi+Kz/ZqkBU+Ljr7656QOj91fDmS/Of O8CSK/jRHJpR6yLhgTI8gKl+D0RhHrCDzvkf8wXpyMETwXKE3pwcRRkJJIL8IH2wL+C/ 09EXUqKo1ShIYo9umXIjFjqC2VcbiLlcLdAwerG9rgXgq/qcfNN/P9E0QMN0H88DPrev EVec2Igjc91/g+ANHXVFWrOYjHE5iY22FFXrxuMhUrf/35J/sJqVGtgiNtmdgrc/7E5N z9PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IIYRBXbO; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id b20sor62093487pgb.82.2020.01.04.00.38.34 for (Google Transport Security); Sat, 04 Jan 2020 00:38:34 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:1853:: with SMTP id 19mr97741447pgy.170.1578127114436; Sat, 04 Jan 2020 00:38:34 -0800 (PST) Received: from localhost.localdomain ([49.206.201.128]) by smtp.gmail.com with ESMTPSA id z4sm70201623pfn.42.2020.01.04.00.38.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2020 00:38:33 -0800 (PST) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Akash Gajjar , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki , "Matwey V . Kornilov" Subject: [PATCH v6 4/6] arm: dts: rk3036: Add rk3036-u-boot.dtsi Date: Sat, 4 Jan 2020 14:08:04 +0530 Message-Id: <20200104083806.3930-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200104083806.3930-1-jagan@amarulasolutions.com> References: <20200104083806.3930-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IIYRBXbO; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add U-Boot specific dtsi file for rk3036 SoC. This would help to add U-Boot specific dts nodes, properties which are common across rk3036. Right now, the file is empty, will add required changes in future patches. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- arch/arm/dts/rk3036-sdk-u-boot.dtsi | 2 ++ arch/arm/dts/rk3036-u-boot.dtsi | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 arch/arm/dts/rk3036-u-boot.dtsi diff --git a/arch/arm/dts/rk3036-sdk-u-boot.dtsi b/arch/arm/dts/rk3036-sdk-u-boot.dtsi index 6f15f4a8ec..754800c6e6 100644 --- a/arch/arm/dts/rk3036-sdk-u-boot.dtsi +++ b/arch/arm/dts/rk3036-sdk-u-boot.dtsi @@ -1,3 +1,5 @@ +#include "rk3036-u-boot.dtsi" + &uart2 { u-boot,dm-pre-reloc; }; diff --git a/arch/arm/dts/rk3036-u-boot.dtsi b/arch/arm/dts/rk3036-u-boot.dtsi new file mode 100644 index 0000000000..1e7d079315 --- /dev/null +++ b/arch/arm/dts/rk3036-u-boot.dtsi @@ -0,0 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ From patchwork Sat Jan 4 08:38:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1014 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 61EF03F08F for ; Sat, 4 Jan 2020 09:38:40 +0100 (CET) Received: by mail-pg1-f199.google.com with SMTP id a4sf30731738pgq.23 for ; Sat, 04 Jan 2020 00:38:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578127119; cv=pass; d=google.com; s=arc-20160816; b=xaPm8LUN0jFkWSuBWWNskRAFWaG6IHC3qNm7uFWAm9pbuetbc8YppE4kuLI4WNeb1M 6tZw1Dtg4yS+UE12+IogCp4wJEQvo4G0e0R9nx+sCOxF3zGdiXkbMFjverWN6QJMsvzZ mKJIFatPB7eukGy+GowAbse+ZDthTWRZjXWmyYva8lfZfSRKVwoWypSpnWZIeL3iE/+b syDrcHLSZ/1jvN0T1BuVCmk3Ib7mVzysf7djFMv0GqgkRkY5QeUY5oPtl0nP08JVvYGZ YdbFIU+qLJFi0QGmDeeZCPfVaQ17NJJR9LuSf/hKJVQjTaozpl8AOIVuvzzkRteXeOnO HjGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gNBK8/ZsXFBAvhfDvnnyhtI2rZf4e+m+eETv98xCp9Q=; b=yvSE+QQSVf2EMGfbWxw43KkeTfLSbaGC9YnW95sgwjlE3c0Ajf1pCH3LL3DfKPy7OJ OzmhJpJtABc/aTLthQEN6xywIgsGg9sYRehO8mmLuCLLLRqGkRcpqy/WL8eqoRWHVL60 dYpeyj8eQ4uVUJTK1sV9OTcy86IeWyb7cljKyT10I/LqA2lnfUZdBKyHNYuqKGKUAOto g4cqfJfNavDEGYMgrj5snpre4iHQlIbcS77qOI3BKETrYGW6pw8beWBd9E2T9Nu2bDJh FRuNbjIr5S2kILYupkBN8BzscAXQkHymlqK5AY36SL73+TN99ks5JvRds1d1RfJpbEBL +GRw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ANS5+bvk; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=gNBK8/ZsXFBAvhfDvnnyhtI2rZf4e+m+eETv98xCp9Q=; b=hbPrIVko3eb13NrTLq+LWsrH3C3j39DA+oA/1kJKwvWDnIAuNatNGLjv3deiUYJRQc IuH34zB0P5LsKGMS/dwjWNySrb9B8rxe16MC3k6ZSnNMjvHv/ZKQABL59Gg7REdzwv+3 0dhJIZbK17erhUBPq1mnKcgVJ1bo1siKf10bw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=gNBK8/ZsXFBAvhfDvnnyhtI2rZf4e+m+eETv98xCp9Q=; b=FwVkgujvdE5rEBb06EWeRhnbZM+YeYtV5tRAdQBj7xRqR7oLjgOs+ju0cSQeAAjSay INlNme1DRKhpKi4/FTZdGi1Cf2ZaN4zBhPIQA3BImi+BcoQD0AA0Qus/xZfTFCbvwjko BF68fLm9FJD2+huYfF7uwd3QBpqFkmsCu5JQzBTj4mTyC67j5g7gK9ZkIPGkBXXe6FxS lEKTKi3WhmmN4/eJN1ZxyrShD/V6t1WKmeeCOk+O/ADGfUOwR3R2Wjx/Vm5u8OmHM/FF Ph3UQqPf4YeOwPHFGDvlGohMT94rj2SY8nKuFerFFCBE1Qeirqfwv3OfL6POx3RvEUxV YkDA== X-Gm-Message-State: APjAAAUqMulaXU8ykiQoLUj9M2xwyoEfq745Qfft8Xr8mXyqlJ2FbGaW YJANvas3V+n8gbL/sOVuQwTVwS3R X-Google-Smtp-Source: APXvYqyxla7Q2q1qH4ddWQKjvojZZ1OA61dQuyp8pd4agNaHnOBfbESk0s3UCHo7wXHPcard5fMx5A== X-Received: by 2002:a17:902:b40a:: with SMTP id x10mr77989129plr.64.1578127119068; Sat, 04 Jan 2020 00:38:39 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:cf4a:: with SMTP id b10ls13545171pgj.0.gmail; Sat, 04 Jan 2020 00:38:38 -0800 (PST) X-Received: by 2002:a65:6898:: with SMTP id e24mr104242353pgt.59.1578127118478; Sat, 04 Jan 2020 00:38:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578127118; cv=none; d=google.com; s=arc-20160816; b=H0wMj/o98zAd9p/oDqsaLMhqe1+akt/JDgk1hcZyN+57PJ3JuBm8hYAnzFEorKJTGU 2tnEqkgRY1li+H+91mTaNygC28kDHwDu0tpJZpyt6GldsbqLD1WJbhJ4XymIZKcuZQVb BCMNV7r9EHZPRF06r1rJV3sNRihiJE1PoJoYqk0FmQ9K1buVW4Am6acZ/8TjfJHuWoLt 0I/hfrvqpc396R2oAcIdSLo72j3zE3sRb7Y0x5cueYCFL5NsER3yZCsNXLvABbK/4vEy h40uynK3BTuWriPUZQPT3bx3JMdSeiBXHlaOCAQC8XHOVLAzsz7Y4zo8sYWXYwinGh6x KZ9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=ehwuJZnRKKx5EZ4MhrVjA+CzbfF6qtPzoe+uGVxNIwE=; b=ZhbEyr5FGH53kNWyIzLc4dF48fGjvylTpgMYDZc6gexV+dQxtp1a62bMu945VRze3/ BL7y7NeupVZWvOOZezf/U/Z8zl+qkAyZ0AXeW56O1kkosGAzKWd3rFJNrngiryDCieRn xViB1yHFbLy1cKRnczvHHGUN/idw6/dYa2d9pnsInAo9/niH6XDw8AKCWcI03EDYy2la rqPv6LSNfkShBFYg3EQqwKEHJcZOa58S/uwyg4jibqucJnV6P8KiHajBdI5TXthbtKQm K1Ej0NLDl/QJVZ5JDhEFSuXylIWClZ1PDSte/2n3LcJf9q1cTDg6ievAJWkCi7K8P9Si 05qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ANS5+bvk; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id h62sor62695584pge.19.2020.01.04.00.38.38 for (Google Transport Security); Sat, 04 Jan 2020 00:38:38 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:1a1c:: with SMTP id a28mr104679008pga.374.1578127118072; Sat, 04 Jan 2020 00:38:38 -0800 (PST) Received: from localhost.localdomain ([49.206.201.128]) by smtp.gmail.com with ESMTPSA id z4sm70201623pfn.42.2020.01.04.00.38.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2020 00:38:37 -0800 (PST) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Akash Gajjar , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki , "Matwey V . Kornilov" Subject: [PATCH v6 5/6] rockchip: Add Single boot image (with binman, pad_cat) Date: Sat, 4 Jan 2020 14:08:05 +0530 Message-Id: <20200104083806.3930-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200104083806.3930-1-jagan@amarulasolutions.com> References: <20200104083806.3930-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ANS5+bvk; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , All rockchip platforms support TPL or SPL-based bootloader in mainline with U-Boot proper as final stage. For each stage we need to burn the image on to flash with respective offsets. This patch creates a single boot image component using - binman, for arm32 rockchip platforms - pad_cat, for arm64 rockchip platforms. This would help users to get rid of burning different boot stage images. The new image called 'u-boot-rockchip.bin' which can burn into flash like: ₹ sudo dd if=u-boot-rockchip.bin of=/dev/sda seek=64 This would support all rockchip platforms, except rk3128 since it doesn't support for SPL yet. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Makefile | 14 ++++++++++++-- arch/arm/Kconfig | 1 + arch/arm/dts/rk3036-u-boot.dtsi | 2 ++ arch/arm/dts/rk3288-u-boot.dtsi | 2 ++ arch/arm/dts/rockchip-u-boot.dtsi | 21 +++++++++++++++++++++ include/configs/rockchip-common.h | 3 +++ 6 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 arch/arm/dts/rockchip-u-boot.dtsi diff --git a/Makefile b/Makefile index d8a0f68883..cdd3eb4614 100644 --- a/Makefile +++ b/Makefile @@ -909,7 +909,7 @@ ALL-y += u-boot-with-dtb.bin endif ifeq ($(CONFIG_ARCH_ROCKCHIP)$(CONFIG_SPL),yy) -ALL-y += idbloader.img +ALL-y += u-boot-rockchip.bin endif LDFLAGS_u-boot += $(LDFLAGS_FINAL) @@ -1395,7 +1395,17 @@ idbloader.img: spl/u-boot-spl.bin FORCE $(call if_changed,mkimage) endif -endif +ifeq ($(CONFIG_ARM64),) +u-boot-rockchip.bin: idbloader.img u-boot.img FORCE + $(call if_changed,binman) +else +OBJCOPYFLAGS_u-boot-rockchip.bin = -I binary -O binary \ + --pad-to=$(CONFIG_SPL_PAD_TO) --gap-fill=0xff +u-boot-rockchip.bin: idbloader.img u-boot.itb FORCE + $(call if_changed,pad_cat) +endif # CONFIG_ARM64 + +endif # CONFIG_ARCH_ROCKCHIP ifeq ($(CONFIG_ARCH_LPC32XX)$(CONFIG_SPL),yy) MKIMAGEFLAGS_lpc32xx-spl.img = -T lpc32xximage -a $(CONFIG_SPL_TEXT_BASE) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f9dab073ea..7bd99ba3bb 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1590,6 +1590,7 @@ config ARCH_STM32MP config ARCH_ROCKCHIP bool "Support Rockchip SoCs" select BLK + select BINMAN if !ARM64 select DM select DM_GPIO select DM_I2C diff --git a/arch/arm/dts/rk3036-u-boot.dtsi b/arch/arm/dts/rk3036-u-boot.dtsi index 1e7d079315..41ac054b81 100644 --- a/arch/arm/dts/rk3036-u-boot.dtsi +++ b/arch/arm/dts/rk3036-u-boot.dtsi @@ -2,3 +2,5 @@ /* * Copyright (C) 2019 Jagan Teki */ + +#include "rockchip-u-boot.dtsi" diff --git a/arch/arm/dts/rk3288-u-boot.dtsi b/arch/arm/dts/rk3288-u-boot.dtsi index 3f00a3b6d3..6d31735362 100644 --- a/arch/arm/dts/rk3288-u-boot.dtsi +++ b/arch/arm/dts/rk3288-u-boot.dtsi @@ -3,6 +3,8 @@ * Copyright (C) 2019 Rockchip Electronics Co., Ltd */ +#include "rockchip-u-boot.dtsi" + / { chosen { u-boot,spl-boot-order = \ diff --git a/arch/arm/dts/rockchip-u-boot.dtsi b/arch/arm/dts/rockchip-u-boot.dtsi new file mode 100644 index 0000000000..a2559e2db0 --- /dev/null +++ b/arch/arm/dts/rockchip-u-boot.dtsi @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +#include + +/ { + binman { + filename = "u-boot-rockchip.bin"; + pad-byte = <0xff>; + + blob { + filename = "idbloader.img"; + }; + + u-boot-img { + offset = ; + }; + }; +}; diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h index 68e1105a4b..b55e09a9ca 100644 --- a/include/configs/rockchip-common.h +++ b/include/configs/rockchip-common.h @@ -9,6 +9,9 @@ #define CONFIG_SYS_NS16550_MEM32 +/* ((CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR - 64) * 512) */ +#define CONFIG_SPL_PAD_TO 8355840 + #ifndef CONFIG_SPL_BUILD /* First try to boot from SD (index 0), then eMMC (index 1) */ From patchwork Sat Jan 4 08:38:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1015 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E003F3F08F for ; Sat, 4 Jan 2020 09:38:43 +0100 (CET) Received: by mail-pj1-f71.google.com with SMTP id a31sf7412900pje.4 for ; Sat, 04 Jan 2020 00:38:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578127122; cv=pass; d=google.com; s=arc-20160816; b=VVDn0HiHEYpbOZor2c13IjIDwTbs6gaEHaPSqfly2Tm1XtR9dC10bfrU8N36Hs9j1w s2QsaK4i8vnNbja0drI2nZ0JZxcVg1qnpU61EMiXV+HlLKQidsBpQqpBq0cn3ZqOnBoD cCSpHTyRFSQ5FyQ3wriXytx1CsU2G9hNUAf803LXJtHkbgLkH/ZNCjTayf34jBDfyXFd pVIHrvdAu5aDpJALmS5gviUN89w+KhwNeesiLGrnJ2DPo6l//rzZN4To3NZGlQtvvo+O afuYcK1tjtnhhA3J9vF6srBxz1zP0bGKqx01NXk+h2B0VQ9rmIC4UGTxQDmKrNpHKLgd fPxQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=6YLf7qu0mfXa2tDL/ZoP8H7vI6BdTAcVK2YA8cH3q0w=; b=OBXIGaRRNQRS8ZcH2BHJmkEAlNFde8ETS+RgBDrItB89u1iIpMsHvrdHS6xRgoosL1 cxTEGoU3EUrXDmoX9FAZJiS9d6oPLaciEFiTF/KouP8vbEsk/muB191638yXMvUaloDN TY2pZjiUrHIEXH2s0oVClN311aMI9zuftCc8e3xijS/52LboreDwi9HZ2/K+6ZKRWvKF 30SK3T30N1Lz2kFeMyzhkML/1BvUAfGEnp/GxNxVyGGJNd9PZp2anotxTg2nF6tLZyHh bSGyeYuXl3LGZnWchHAghTb7D+1HFr/zIVnLu6bKnEuY7lqKqZ9/K7UpM0ngh8GKktPt I+OQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NnPb4HWK; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=6YLf7qu0mfXa2tDL/ZoP8H7vI6BdTAcVK2YA8cH3q0w=; b=LKfRIA9EU6ZTvQK5KH7o5RAbjN1DewrViccVl+Zku2lmyD/SCGu9whjpdVfN++Ec16 8bo22H6DMqwylF58KDgserpSXnsJjRnLVao3r6/kKWSuiq07sXnpx5GJHauD/hxcH6sJ b/X0U8sGdczshkvG+8QkaMkiBcFLrP0JUrySI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=6YLf7qu0mfXa2tDL/ZoP8H7vI6BdTAcVK2YA8cH3q0w=; b=ejSQg/ES8hCL/vpcILhXSKUOAyt5y7ocFUJ3L1ufzEccvM1tvVnR9vq0hqHCkdcokm VmQMdRNEzc1WP9fojPRsRC7nXcY09dkegHoXC5QL73xuT6ad5bJdt/V5rDMSFSKz+EsT eB7hnaG6Bo+u1fkrOK8x2ZcmHgn1n2kvKG4EvaejG66oYEGxOrSrAMiCFFRySbqWj4PX L0ddyw9m07yEJ6T19q+92bnoBn38+Cc7+I4BwNz3AViN5Vw+THmDUbsjpmF5ZhRUFsxA xJKflxPhRvG1VDQ+g32mw4waql7v+KHgiJ+4l7kFTmdU/+M5dKt3IluX7tGbNOYBbPm+ MO1g== X-Gm-Message-State: APjAAAW4rqcXmbVLREU4o1XEKgBOLc3/9ylazHLEm3IxHugcPWOksrRN SRob5if96snUrmsVeTBgyNlzQrXV X-Google-Smtp-Source: APXvYqyIYLJ5mpaasr57YhcFImEMkUAaU+/jNDFSNyLknj/Y+hEw5c/Vye0VrcG6DVkPMdmXMQkJKA== X-Received: by 2002:a63:360a:: with SMTP id d10mr98493571pga.366.1578127122613; Sat, 04 Jan 2020 00:38:42 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:6389:: with SMTP id h9ls7382451pgv.10.gmail; Sat, 04 Jan 2020 00:38:42 -0800 (PST) X-Received: by 2002:a63:6787:: with SMTP id b129mr100655074pgc.103.1578127122032; Sat, 04 Jan 2020 00:38:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578127122; cv=none; d=google.com; s=arc-20160816; b=MwmhTdtVGLmW7dErmYgZeIQoYR/MwWW3xGwjPyxO8BgWsNR1SNfA4VkLFVBmEWKUm6 12l3X5hIOjDeUB1Genn9d6mynw6mMx7eJ6p/u4h/b0s6bSWF0/i8XNcTa9ECH/i+a37/ LF12anOvdYAOu+o/tPZyEricJjyoFIgQ5bXM0HnhO3MTvZNvC9hl0+eN9etTeworHKNi KfP/FmFWduXzq74/M8BMbqy01BZ0mCghQ7w/Lz3IeLeW+TQaQiiWqxYnnkJma4AT0T6c 6Hm9//6HLjzkL0c50iN7wU/Um0A1zP+GXyIpCv0Vwcue+1YKWMG4I+ZMizauj1b+UUl+ hOEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=g4cWf3FBE3zdBAFpTRzwkWLhbqmjDXkUilYmTikUnN8=; b=yV6boZ9cGesD+Nw3obxFybHkWCLicc4lQui+dj79B1Y/OVCkl7QLZZvDMa+V0E1hJG shfUfzXvAxzgtq5j93nlZyurAgiXK3D0kQ9AyE1L0ABatAitkFkdsa9nGKFCnSSO5I4t k0QjSWYs+mRUd31o3LIkHCvjS4zGSUYdnk06/Laut4cGQjUcseNR3ivn1rDUPP2/VeUv 8jbYJocwIbNKw/qIubz9h/jRVosbrnsKpVItSXsZila05f+wToYhAqu6AbdfNxd8koRN WOFNUfmh5KFKNBile/grd2Cj4jBZuvE65BFA82Scrnjuv3NWSHBAhQ/HmhEUIl80mDOq VEDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NnPb4HWK; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id r6sor62051868plo.34.2020.01.04.00.38.42 for (Google Transport Security); Sat, 04 Jan 2020 00:38:42 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:6b83:: with SMTP id p3mr82245420plk.284.1578127121634; Sat, 04 Jan 2020 00:38:41 -0800 (PST) Received: from localhost.localdomain ([49.206.201.128]) by smtp.gmail.com with ESMTPSA id z4sm70201623pfn.42.2020.01.04.00.38.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2020 00:38:41 -0800 (PST) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Akash Gajjar , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki , "Matwey V . Kornilov" Subject: [PATCH v6 6/6] doc: boards: Add rockchip documentation Date: Sat, 4 Jan 2020 14:08:06 +0530 Message-Id: <20200104083806.3930-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200104083806.3930-1-jagan@amarulasolutions.com> References: <20200104083806.3930-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NnPb4HWK; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Rockchip has documentation file, doc/README.rockchip but which is not so readable to add or understand the existing contents. Even the format that support is legacy readme in U-Boot. Add rockchip specific documentation file using new rst format, which describes the information about Rockchip supported boards and it's usage steps. Added minimal information about rk3288, rk3328, rk3368 and rk3399 boards and usage. This would indeed updated further based on the requirements and updates. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- doc/board/rockchip/index.rst | 10 +++ doc/board/rockchip/rockchip.rst | 130 ++++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+) create mode 100644 doc/board/rockchip/index.rst create mode 100644 doc/board/rockchip/rockchip.rst diff --git a/doc/board/rockchip/index.rst b/doc/board/rockchip/index.rst new file mode 100644 index 0000000000..0c377e9bbb --- /dev/null +++ b/doc/board/rockchip/index.rst @@ -0,0 +1,10 @@ +.. SPDX-License-Identifier: GPL-2.0+ +.. Copyright (C) 2019 Jagan Teki + +Rockchip +======== + +.. toctree:: + :maxdepth: 2 + + rockchip diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst new file mode 100644 index 0000000000..6c34f1ab99 --- /dev/null +++ b/doc/board/rockchip/rockchip.rst @@ -0,0 +1,130 @@ +.. SPDX-License-Identifier: GPL-2.0+ +.. Copyright (C) 2019 Jagan Teki + +ROCKCHIP +======== + +About this +---------- + +This document describes the information about Rockchip supported boards +and it's usage steps. + +Rockchip boards +--------------- + +Rockchip is SoC solutions provider for tablets & PCs, streaming media +TV boxes, AI audio & vision, IoT hardware. + +A wide range of Rockchip SoCs with associated boardsare supported in +mainline U-Boot. + +List of mainline supported rockchip boards: + +* rk3288 + - Evb-RK3288 + - Firefly-RK3288 + - mqmaker MiQi + - Phytec RK3288 PCM-947 + - PopMetal-RK3288 + - Radxa Rock 2 Square + - Tinker-RK3288 + - Google Jerry + - Google Mickey + - Google Minnie + - Google Speedy + - Amarula Vyasa-RK3288 +* rk3328 + - Rockchip RK3328 EVB + - Pine64 Rock64 +* rk3368 + - GeekBox + - PX5 EVB + - Rockchip sheep board + - Theobroma Systems RK3368-uQ7 SoM +* rk3399 + - 96boards RK3399 Ficus + - 96boards Rock960 + - Firefly-RK3399 Board + - Firefly ROC-RK3399-PC Board + - FriendlyElec NanoPC-T4 + - FriendlyElec NanoPi M4 + - FriendlyARM NanoPi NEO4 + - Google Bob + - Khadas Edge + - Khadas Edge-Captain + - Khadas Edge-V + - Orange Pi RK3399 Board + - Pine64 RockPro64 + - Radxa ROCK Pi 4 + - Rockchip RK3399 Evaluation Board + - Theobroma Systems RK3399-Q7 SoM + +Building +-------- + +TF-A +^^^^ + +TF-A would require to build for ARM64 Rockchip SoCs platforms. + +To build TF-A:: + + git clone https://github.com/ARM-software/arm-trusted-firmware.git + cd arm-trusted-firmware + make realclean + make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399 + +Specify the PLAT= with desired rockchip platform to build TF-A for. + +U-Boot +^^^^^^ + +To build rk3328 boards:: + + export BL31=/path/to/arm-trusted-firmware/to/bl31.elf + make evb-rk3328_defconfig + make + +To build rk3288 boards:: + + make evb-rk3288_defconfig + make + +To build rk3368 boards:: + + export BL31=/path/to/arm-trusted-firmware/to/bl31.elf + make evb-px5_defconfig + make + +To build rk3399 boards:: + + export BL31=/path/to/arm-trusted-firmware/to/bl31.elf + make evb-rk3399_defconfig + make + +Flashing +-------- + +SD Card +^^^^^^^ + +All rockchip platforms, except rk3128 (which doesn't use SPL) are now +supporting single boot image using binman and pad_cat. + +To write an image that boots from an SD card (assumed to be /dev/sda):: + + sudo dd if=u-boot-rockchip.bin of=/dev/sda seek=64 + sync + +TODO +---- + +- Add rockchip idbloader image building +- Add rockchip TPL image building +- Document SPI flash boot +- Describe steps for eMMC flashing +- Add missing SoC's with it boards list + +.. Jagan Teki +.. Sat Jan 4 14:00:54 IST 2020