From patchwork Thu Jan 9 18:46:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1027 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 9C4E03F042 for ; Thu, 9 Jan 2020 19:47:46 +0100 (CET) Received: by mail-pj1-f71.google.com with SMTP id m61sf2174700pjb.1 for ; Thu, 09 Jan 2020 10:47:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578595665; cv=pass; d=google.com; s=arc-20160816; b=giT6BeZFfn/QldEr+Fn1ufnBtYNgkHMXWuJGgYBu7JqpuGMGPbtOq8kjaQMLgiBvi7 h/6lwi3Cis1Rd2dxsa8YWt8ujXenwUj205l3MDMMJjEY1X4mmb8uglFdCX0zh6x/nP2w nlrKq4Oa4GCBCTzHKUQXST3TBwDh8qOEK4By9wA5pWHDKhncPm9QTLey1aToxRBvsiH1 1U+3SRXESUV5doa2VwWm0lhFW1DNDP2znGp3S0GvuuR7Xv1JaM1RTGbvUQUT2aLlqse9 ZzHxhk/e+qDYW5tgA6QByFiKr6Aq4MQwxe+62o10HkOYM3qZ4G/fUmGo3eXHaE00KLFc X34g== 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=6OGX6elhi+Ln06E2C8Aq5Nf1UCFU2WiRPpuI+eqQXcE=; b=ph7yDWStF7vobbDxLnFheHl8VV/sJ8ztKOdEYXepwpsvlvrYSLP3hEygR1BlqCNv06 zM+XsqBjgVnQhDGPwVeKnodbv2euogkrxAdH604OOQxtU5dxvv/5MdPgBD/zrG7VI3Fe aJNwTQ6Xfbmlhqv55K3VrziNh/9jVoiYWi5CUp4My/HiM1vR0OoqmCDiknMHM9HXZvdj fjiqtzyw+Xhfq4OQx27dy+pl6vu+X7SuZmhLOZFbBcMqXXGROZoMn9guGrfBJgseDGaY npnlwl+xQJpE61qodoJpzRgSFXxWx1Nusmgv/+u+t2g+NaxPM4/193F4h8PPOonq7JNt TM1Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pEbJHhTS; 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=6OGX6elhi+Ln06E2C8Aq5Nf1UCFU2WiRPpuI+eqQXcE=; b=L1XhTTs8z6uAPb1GclI+fRr22m9A6QPUj6hl/5zVdG9Iz3RODzXLWQF/VtnOHERLHB ZJilr6qjJTbVUswyML4uXJ83OB88AYFvFCtKXbetFittTELVwreS7msiTGKPm3qkB6i9 a5Isb6hG1JXQ0APM9sj9ZgnRLW6m+yAlFTd1M= 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=6OGX6elhi+Ln06E2C8Aq5Nf1UCFU2WiRPpuI+eqQXcE=; b=MFN5vKQsIVb/PUwC3YJFqrE4xQwN6uCoDPfEs4QyHcM5a5FGeT2Ul3xSmPw+Z90lX/ 6xonJmMrPk7wSGR2xU5jQ94Krjz+SAIb74BoCFT1yakGhwaibzZJ8c609DMwg2oNLdw9 C6CVeR1Nq4VFfI1e9+H38Ii6IyI2rawKLDPyXQ7pvPRPTtIiVHgC/RM4eh0x3EbIMGjS 6gWH/AuVEWb8VPlvXGH9qnMODwsEh3uwHVywF+akkQZMfQHYvSQkcOs+SXsp2xaVsLVC M3AYB2PiOWcgq0qTr1AlFH6UGNJbrdipQ4A2fCikCayZNlOFR8M26DRoao8DQMFvfo8e lD6Q== X-Gm-Message-State: APjAAAWLbu+Cx5xUdiMNQ27vR0n3M0i4WT4p1MpZHiWS7ooxljOZVF6H 6mHbpEvIgCgetPky1c3AaCdjapi5 X-Google-Smtp-Source: APXvYqyEBNUuuhVhx0NeTi3fP1CRmZ/2EEQh48rW6Mz8EGQfN6XegYmDWRJhBmMHLxiwd7QCIgOUPA== X-Received: by 2002:a17:90a:e2d4:: with SMTP id fr20mr7253613pjb.85.1578595664798; Thu, 09 Jan 2020 10:47:44 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:22e3:: with SMTP id s90ls969698pjc.0.canary-gmail; Thu, 09 Jan 2020 10:47:44 -0800 (PST) X-Received: by 2002:a17:902:32b:: with SMTP id 40mr13073786pld.22.1578595664262; Thu, 09 Jan 2020 10:47:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578595664; cv=none; d=google.com; s=arc-20160816; b=gif9Cqwc0fqnMiHPO2MzojM2EQVeoXQkua/gJQXFejVez9DojCotMCXoL4SDXLOQ9p zfHtRP9E0KkJjuXmpfhaCb4FOVV+I5xeb6uyCJ+KngpVkeAbszYlcDEYNI0YXG96Bs6w fGbpYWxarb3jBbBdp6Bop9tcIeCJmqdyunWZqZYmAiMPEeTohBTYvv/T4wuG83szqI8J tvwKmrOCLR1dRCfX4LJFL5+71ERQ08f+u73+XVvItynedbcFaa38tgazZRJrM/Fe5kLo 6ZGf+CPBYuGA2yF1OA1p/Y8SQ8FVt3vSHtLci0SRO2F0syBzteq2Hcb8BMInuyRn7VLU JTeg== 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=d+jIcib05LKVddxJcU9EnThFBXIIwGZfMc8WfDOiGuA=; b=0P0cuh9nDsQSp5OphRizhXjMekH0GCGFfDyI18L2TAczzW+gNxJ19z8KhllpwQTP1J WdEINf9ZOauW6d7O2a8x29U6F4HM3VTuUYwEtO9fr7AoOyoEnn7SqRfKy1tigQphym7o 2CW8Ul8UbOwOHLESt2l+E7z/SEEajm7DGNJ3/hjli1RRG//SA81C0Xi80BudQkM5dqdm q+eVTLWX8SM9TKWSpJQsrypXMylhTldgDGwJtGB89D8YW2GgyYWCoC76CjJNd1vXjrAt SrdOXpjA+tKxLt/00gqUF/YsMBmIPPtebBN//2pf6RgjsAtAppwDVXS3VcKqHn0F+Cn6 nobw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pEbJHhTS; 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 v17sor8376475plo.19.2020.01.09.10.47.44 for (Google Transport Security); Thu, 09 Jan 2020 10:47:44 -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:788d:: with SMTP id q13mr12929692pll.210.1578595663950; Thu, 09 Jan 2020 10:47:43 -0800 (PST) Received: from localhost.localdomain ([2405:201:c809:c7d5:c4eb:be5d:1485:edee]) by smtp.gmail.com with ESMTPSA id i8sm8967306pfa.109.2020.01.09.10.47.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 10:47:43 -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 v7 1/7] Makefile: Add rockchip image type Date: Fri, 10 Jan 2020 00:16:16 +0530 Message-Id: <20200109184622.3098-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200109184622.3098-1-jagan@amarulasolutions.com> References: <20200109184622.3098-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=pEbJHhTS; 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: 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..e264b2a49a 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_SPL_SPI_LOAD),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 Thu Jan 9 18:46:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1028 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D2F603F042 for ; Thu, 9 Jan 2020 19:47:55 +0100 (CET) Received: by mail-pf1-f197.google.com with SMTP id c72sf4494274pfc.0 for ; Thu, 09 Jan 2020 10:47:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578595673; cv=pass; d=google.com; s=arc-20160816; b=jlaiWB28tq4S/CwTfx4Tkc4ElEnWIMK0QClmvkpgntghhJ7THyCBZI/c9Omi3CBzAi WP1qviTDNg2HmhJxzaFHI1jSPzVnyJbnchRLonwHETvtmXrySYBvB9VIyeRusNsUEecF XAjEdgIk7rfIDEj2EMa+Ua2a+T7a20m64kjQkT7oG/2MzPLll1iNryl9H8LA8ng1eTlY u5Rhd5FHH5q7iVOX1xB39Ai/8CWDbmgFlCa5CTNIaLl73tntpqGoiVMkU2A4Fz+ySUbo +w3mDe1FOkqK5DY2AWNPNBxFNnacUyK0ZnrqG9HVCfvw2WUGnZLH7CG5vjAn9+D40ApA epeg== 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=jtuEzZDDbCcjOW1v/2bd9ZZ84q7lXsFGsEpZJzqLyII=; b=zBeZJH9UkRoDbatK01ADaQPmEpODUUJsiuOJaVnttjFRqXT6ShFn3CFCY9Ou+ntQei 1R/VZXX7Q74GAlF4GX1+3RzFXKBcgiYoKu4NM7xQRbX4QbQ9bBwWWmeVysPxU7vyjwEZ 8oQvxpK+d9Cs+/nUOLJps/BqKJWx0J4ZlV5xmZZC9Zj0HpuAZXZaO29g1vjdJ9fwQJdx IUV1CfjDaL2stLM5NHB6bmn4yKJ027pKXKoS+92JcQ6zoM5ih3qkDSRHGrFSKgPfAFyu KcX21JyIaSZazJjHfj8rYS7uA2TYPhX5IOGUTjGYW1sF+1jVKBZY59o0Rzyn4byuyaEW bPrg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hyrLjcMT; 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=jtuEzZDDbCcjOW1v/2bd9ZZ84q7lXsFGsEpZJzqLyII=; b=dticra/YQtu7Atk82BJnsH6l9anFVdJEDkbPzU7hr7OtPAOjhI0aITE8L5zFjOR+S6 x40rHEbdLW35FO0MUP7L1ViKRqOmzrR21SDMj/bPv9+F5Cb8DnKaeuxwi2dRi5cCo5in Ay+EhTl/yEYExnS9cIYNZPWR67eDRGsHK9M0U= 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=jtuEzZDDbCcjOW1v/2bd9ZZ84q7lXsFGsEpZJzqLyII=; b=hze/shEqQAXMaRY2lAVbYljgA4GOCO98ct+MENUjwQT4l8O9QGEXSc0U5PcAoQ4cur 28MPOyrw0ZemgEof8FcbVveJKj2Jf6kVpKdyTBiuOr5VtlI+r3HYBQbsRKHRPh2YAO5t EqOsnUaR0YB2yDddrNtmNnl0NLaPN81COnxnwbMEvSiXFbQADa/rO+S1l10SJzJf6gnn DsOGuBcPd389K1LAzK0pVkg2MfqqkiAHd0yapTwuxyqTpnPGBBCmze1JFzv+7/0eV10/ E+93nH7QWMUY8Rbg3cdjmzKKrQhJlf1nwDJFBVn+L9PeAyiR33yifyUnKatW8oWoad0I AcEw== X-Gm-Message-State: APjAAAVlQ/g/yWhyRyTp5ggf2/Y2IqHx5ROjrLPHd2ZH6jOtNbpgN3uo 5U8agJkGXOkqWa2NyXRQHcrzhvAv X-Google-Smtp-Source: APXvYqwiOCTMt+8bJqrIYn96t9bqjBl3wXykmxzKAFDZd8gIDx63s1gOuz9efH+3l4INX8RiklwUuA== X-Received: by 2002:a63:d041:: with SMTP id s1mr13013461pgi.363.1578595673804; Thu, 09 Jan 2020 10:47:53 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:c5c:: with SMTP id 28ls790176pgm.12.gmail; Thu, 09 Jan 2020 10:47:53 -0800 (PST) X-Received: by 2002:a63:eb02:: with SMTP id t2mr12886603pgh.289.1578595673298; Thu, 09 Jan 2020 10:47:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578595673; cv=none; d=google.com; s=arc-20160816; b=GgV2V1OWw3HUxI9vPNF+IiCslVB52yl57U/vmAoek5GT10/61s1QbEU28e6rSKao1c HnYsOn+RfiXKhI7KbS1BIITjEljm5B6ZxfIhsxzcxdtqSnjr1Tz2hezg9m3PwfQtnzq+ kKTUD+y+L1j2TGClic2auKj5cr4py2EWOM9ve4yzRhiwFsx4xUjNJqCCH/lPWdtJBaIB rGl+9XgraicTCORTsoboHfhChOGSLO8OJk+QSHrpowi08t9KzomtAMbj2U9cEkkeaI/v 7Ot8e+qFnfHrey5dvr5fKzyicrk/k3vbdHz4IPvVwvanSFwSFEiDrBCktJuyX7Y5qX+t 8nig== 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=svFOCP+Hi5ZqvIKYRk6Zycpu9rLX5NELckQLxT8y0tQ=; b=RS5+cSTOOtS4wQZ7wbAy4Vg0k9tC9CckKv4MogBsF1BKQsxTNUoQO0HgxlUQWTKNhv ThS6ebjt7IJ7tLyLL7RlmUn6vUnNYh+Eo+zw2vyO3bnIUbeGxw9e7BSHzoBDdVt5se+M 4i7SUfLUpmiVMZ5iNdIOERiXexDdJVGIQgYgBqMqt3d9/IHQDfP1r7vWVDm86MoYYLsU NdT4fjDHoG5RYUKDcBHoq1a+I2AMygjPynFLK6PZApZB7P5xTt4+JFRD6EKgq5z+eRfP 1RRDlsJpOOr+OF7DRjTpzSL5991v1mUVIXlNxXXx8R1avE+C1fpGZRDH38vdMaErNV/S crYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hyrLjcMT; 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 f21sor8118723pfk.37.2020.01.09.10.47.53 for (Google Transport Security); Thu, 09 Jan 2020 10:47:53 -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:aa7:9191:: with SMTP id x17mr2565462pfa.38.1578595673069; Thu, 09 Jan 2020 10:47:53 -0800 (PST) Received: from localhost.localdomain ([2405:201:c809:c7d5:c4eb:be5d:1485:edee]) by smtp.gmail.com with ESMTPSA id i8sm8967306pfa.109.2020.01.09.10.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 10:47:52 -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 Subject: [PATCH v7 2/7] Makefile: rockchip: Suffix platform type with tpl name Date: Fri, 10 Jan 2020 00:16:17 +0530 Message-Id: <20200109184622.3098-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200109184622.3098-1-jagan@amarulasolutions.com> References: <20200109184622.3098-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=hyrLjcMT; 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 e264b2a49a..50ac12fe9b 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 Thu Jan 9 18:46:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1029 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5E3783F042 for ; Thu, 9 Jan 2020 19:48:09 +0100 (CET) Received: by mail-pf1-f197.google.com with SMTP id i20sf4495060pfo.9 for ; Thu, 09 Jan 2020 10:48:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578595688; cv=pass; d=google.com; s=arc-20160816; b=wrEeSKvl9+5SHN2XMHMmYuShrSSM5N7q+5mMauxqJPv84doorehEG3wRjxnOhEEBGc LR723o5ouAg3JfHZPNXYqsqvkbfNQlGe/t9bQYc08yH6/P8yLB9tcv+BabCvNnDduuld RyihUxAkfsGRMU+nwNCOzIIXe+4ueTdTxcZzVp5E3Gb8jOahJzA++6Risk5hcTnFl6+z csdIfnxQW0gMxSfMssjh/ZW2hHjLKs1T5zJYsASBSwp0sVp6KnLi96MJKNJl+Hx+M2h7 Q0ykPe2RM4AeOc8PPKhPiMX4rIa+HlTuOI9OcAFUMtMaLD2sNRqCeHDetGxSwfKEymOE MFDQ== 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=4rM+1MPmTKe+cx8tyrGjadScBnigm3zFQpp/4gILHzI=; b=bK79rB1OzXnbR7t0VY4ICOoAf0geUYTiZObsRZLZaHeh87xz4a8mcm7M/TSJHNhISr cjM3NDBECFwbL4DqgKp3fZ+IhudoW8jOG3u32mJu3if8UgABDhq3R+CDiqnFXv+ivDKt G6VYpLIaRdC0KqjpZUc77MuO2KyuOCPWiUy9rBLNN20Xb/GpnHt2iIk/Iq5+VkDqgA5N JRr+zelTEJmeaByTC6boHPZq1q3olShVQ6/3eONhWoVKL7XfEnan6/uHmOvRpiw7YZ6Q HKFMPWG/0DdazT95reB2OKZ4WrbDtdySlg469bXp6v8zS/97JkA0z6IHvwT0rJaTIGv8 aNiQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oP0uRYPA; 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=4rM+1MPmTKe+cx8tyrGjadScBnigm3zFQpp/4gILHzI=; b=ko61C+4EPXNzzWLk5B+YIWVIxM2c5YmhQoiRQHFNMAxhZoFxIf85u+z7iv4HVML2bz Fl6YWChOM1Ev22NqNxUmQBreABRGlbeMgxaX9MXNnebtrOv7Y162iohoZdtwQ1RTzqRn Zv5vZSWToZBYXSjQFGlwkFc409KCz0c7/ia5s= 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=4rM+1MPmTKe+cx8tyrGjadScBnigm3zFQpp/4gILHzI=; b=lm+XKYd+n+N+5spy3lVEb9/S/6AdLgEyi8xhNtQh+0r32/ySDwcBqxAn4taPPQ4RFE bA2ER1pYn5iiu19e5+IznNvxRtvRCq1qxPQEtKT++FMciE1iAXGdEJ2poRMcKrDoatRx gRLx8Vrkj2NLgJY+TMyoneCzmwPTgM8zXnLGVB15nBwShzdF1lFsSyu/6FkOAGL8Lx4F kA+wMBOTMJFaDll7oVmRrO6ucr6vXLtcv1FmwaM3U0kTHlh58qWhqFy2JWtflGszNmuz DfDlvcn0iBAi5jo/9ChNyQEJi78pJ8dWur/ZSbRW967qjEj22ZEJEcT5Jojs7y5xJ0Xq XR+w== X-Gm-Message-State: APjAAAU6GmKTO0uioxqGEtbGZHWIb95mpaeEZPpOTcKIf5HTzIXE5pAA Uy2CM3sLwv0GF6W+BcfaK7eYggU2 X-Google-Smtp-Source: APXvYqzTk0d2v2SEVPseS1ZSrpCWY94df/SITI/bbSeA9MyNTC4LuYHOAWa/3OqlH34BS9tqjHZueQ== X-Received: by 2002:a63:d017:: with SMTP id z23mr12970212pgf.110.1578595688087; Thu, 09 Jan 2020 10:48:08 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:d007:: with SMTP id z7ls791776pgf.9.gmail; Thu, 09 Jan 2020 10:48:07 -0800 (PST) X-Received: by 2002:a63:1204:: with SMTP id h4mr12649798pgl.288.1578595687443; Thu, 09 Jan 2020 10:48:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578595687; cv=none; d=google.com; s=arc-20160816; b=D87/PHglIKKV6AO+pGUIW1yA3UKqHbgAEZW78jAZ+8Geac6QBnvnUDidAQmX199hxv zCCOt7/9VYEvRQCAbn/dyGNb+YoPyLVjVFGyvYlBjykOQP4vR67UtwLSVWmSRQVEm1KB 3kDA7qNpxyj1DkI5J42mHXU6q+KPwSw9P7vZ7FgS3Hmoa4zb8GapoWOKgi5Kg10iR7j0 W859qG/V8jcClZXGPTLd4Rkca+MkXR+ZOT3OC9Q8fUozXHf5+r5q+n32Zc3egVRvqegO Kx9WLqS+LDx5vG9Xq8+M9700GnS1R37nRA6cb1ASGVDgDBkMGz9uHHdK9gvyekXQYqM8 NLlQ== 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=ZU8kvWg4m+hftYZcxYVQAS3W4JM96ciVS2kwizCqq9M=; b=NJMbVISgJXEeAVL42nmC+Q72Soggo6rFkq7DB3KiGwo/rmWWK4dozwuUpXuC3A2LSa H5cZ7gsn8nuXRLmZ9kaooE+KSGzuR7vbXL91jwHCj6LnKd0qGLd3vahht+Dv7oPEa8rM X8TErtJzAPA5mihtMVGm2nKsH3ixO0QZ6fXvMHDSG011chkQ7nEEsgp7yQW/1pysvjlb xZnMwI75yNVnsE+8t6UqMSzkFlZAQL3RCBgZv9V79b/SDbpKx2Y/JHzO0QoQsifzSuou z0u1moHmJlebF4b2wtdy4YFppMLbywL82PbR89WBRkRMd1Uwvmho5Bl3nQAzlWjTZXLn IFgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oP0uRYPA; 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 b6sor8523859pgh.15.2020.01.09.10.48.07 for (Google Transport Security); Thu, 09 Jan 2020 10:48:07 -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:a65:6898:: with SMTP id e24mr13386669pgt.59.1578595687111; Thu, 09 Jan 2020 10:48:07 -0800 (PST) Received: from localhost.localdomain ([2405:201:c809:c7d5:c4eb:be5d:1485:edee]) by smtp.gmail.com with ESMTPSA id i8sm8967306pfa.109.2020.01.09.10.47.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 10:48:06 -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 Subject: [PATCH v7 3/7] Makefile: rockchip: Support SPL-alone mkimage Date: Fri, 10 Jan 2020 00:16:18 +0530 Message-Id: <20200109184622.3098-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200109184622.3098-1-jagan@amarulasolutions.com> References: <20200109184622.3098-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=oP0uRYPA; 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 50ac12fe9b..5361524f77 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 Thu Jan 9 18:46:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1030 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 55E313F042 for ; Thu, 9 Jan 2020 19:48:20 +0100 (CET) Received: by mail-pl1-f200.google.com with SMTP id p11sf3896839plo.6 for ; Thu, 09 Jan 2020 10:48:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578595699; cv=pass; d=google.com; s=arc-20160816; b=vNYAKgsLFpGXEvsRxPCRwqrhi1J+IlyBp1Hl6e4vydT2kJqhpPvr6e/8i85tTj0axT 87NAN51Id9EKsDcDLSLX8NT6Ls2UBU/jCLZPjYa4zAVEyiaq8fAzdyIj+PzHY1x1fNCr pWCP3LhJP89pNToJIedqQJXKs9wYKEU6yDRIeqW6GgJqXBkggaxsml8vomlZ/mkiiDe0 5dZvD+5WOUrGQtoeSA9SsjmcbrLsdBOYUtmSqYwgoDoBwpgQFCEVyIxo6UT6dz/DbSlu KgFpNmMVq/6mj8rZ14OXnQDzTmUxdCZr5RvVeiZP3LjS94qpHW4GqZzKEdt7NRSX8Mri 8DpA== 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=myPj1VnUk9hFlkfwl9i+lwwSqEiF7ZH/WxjdSY74IwpItnOpaLm2xRZVQ8pEHlUS29 2k/j7944+NXaLMJQqmDCeCWHTtzl3WNBqRuGIBdd23TWRVUWhdKbh3z+4LYL6y13FrAB ocn6dhmIgSQtQORCdYm2MlNleSie+Ip1LzSQkEHsUxrmePzcp6L3Rv0DwsYWYlWcZJT1 2d06Q85n3u3jsPibFrrlhdBTvmEINaurv9GsAbstou/5uDBcAhUAPl3VBQIKg2a7A64m hhAT3T/ULRyKB6phCBEKA4GGlwFTXMTqJV/s0IfW77cFi9jwe7ocFo2PGtSxY159/KrP MmPg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YH6eV3eC; 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=ZcbVeisdhnOVnqBdz5nvjDxdURMjdmpuig2upYiZ0plkYgphw5CcTaxDW7nrFmAw9l 6rdmTcP68dW+BuKuJY+riIOPmwd1LtoNo66PZz0vq3c4u59O+FedaU5SYjA8vFWnT8fE XPTdZQAlT3t2iZFS2XaxV5FvInym7387Z9DMU= 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=YgK5LDh0/o0/FSOLVy1zTn4NolrDrJFHejawsYrD++tsCaBgqJ9BQuyYgFosjGiKL2 20myaZjCfVgjxbaC3qLJ//pN+q/ZLGcAKogGUyWkrBufO2Y8OnV1Mh3kp+CZign7slBC VAEeLWuIp0IFf5nKk61rlLqF9jSHvvvI887260tyyShMemWkx2Q7DgpshtoiIUMt7siB oFb0p54tvr5lrWRfhSR6vG6fPzbHuyzYq0ZuphYSRuESTXwd+xvcgxq0mndbxZDT4509 V4btQeCgETkkU6e3u2QUnqGzs2DhwHX/sMhUm8jhXYGExMJ5KrP23CM+2ztkiU0x3Ygf d11g== X-Gm-Message-State: APjAAAUtDKGNmv6SG/KShcPZKjwudpxK2+AZ1tcxcLXl8VInJhmKI8kD hmUaOaoTHTHvSTcHxgy2lWhUoXNV X-Google-Smtp-Source: APXvYqxQa/V6LY8f8aNGyPjmFQsvv/mVRdnBwkgLXq29/cSrxeaynNI1CGIgZQ+3/DLoDzX9diSaqA== X-Received: by 2002:aa7:9510:: with SMTP id b16mr12644205pfp.65.1578595699138; Thu, 09 Jan 2020 10:48:19 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:e107:: with SMTP id q7ls837498pfh.15.gmail; Thu, 09 Jan 2020 10:48:18 -0800 (PST) X-Received: by 2002:a65:6794:: with SMTP id e20mr12820819pgr.152.1578595698686; Thu, 09 Jan 2020 10:48:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578595698; cv=none; d=google.com; s=arc-20160816; b=V+4otePvB2UXpvUaF+bV8vxE/3LFX+1nR+ZzzfzVKIsZI0jfCCgxzWwT4wE0WYXORG u1uuAVMgSyxv1M+113b55/JGYm332a3fgI2ZBxsErv5VI8AuoYB89vvAKAvq/uYfmiuL YpH/p62pNYBLHsaPi9mR0wgfgurvDihhQPjrCppNmWEZhpoOe+FSxb05M57gYJVe3WiP 60ECvUG2Kplqjtt8BvECNXqSQL8qHP5EVmJT5B1UH77HTGCQuFSiklSwQagq4k9ue7VG 6PSHsmEWX31xez1EHN0zPVOgQ0vNsxOfc9kdny9xdG/+UDCbuH/Yjyn9A08B6dsH4p8i vqKg== 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=fbIq+bqNh/jfm9EvV5LTxVXvD2AN+TFrKu4EBk8wjnBvch2vKVgkcFLVGthO/e0bLW lmaK1TzCpzWjk4q9i/sc3UJwEqT7ZYl52CKTntW6osaT6+bxEeV8jhdBb+QDY6iOJoqU eJNVirsWVQv9SnDcHCpeAgpPxTAPtHuBNtKLrtDMKUMUi9i5QnQHRTd+SLFzTA0fcaPg yKbTC8aWRhBw9UPlK6o/XVPzj24qRrCtPN41P1dZ/tlMvfewQJDn7g/Dj4714l6T2qz5 YCoVYsZ71GEXudxTykrQMkvC787AE7Z9jlul/f5er5x33oxyUgTYFTsLRrtZMi01RMTK rx8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YH6eV3eC; 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 e6sor8547434pgm.23.2020.01.09.10.48.18 for (Google Transport Security); Thu, 09 Jan 2020 10:48:18 -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:213:: with SMTP id 19mr13075880pgc.160.1578595698338; Thu, 09 Jan 2020 10:48:18 -0800 (PST) Received: from localhost.localdomain ([2405:201:c809:c7d5:c4eb:be5d:1485:edee]) by smtp.gmail.com with ESMTPSA id i8sm8967306pfa.109.2020.01.09.10.48.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 10:48:17 -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 Subject: [PATCH v7 4/7] arm: dts: rk3036: Add rk3036-u-boot.dtsi Date: Fri, 10 Jan 2020 00:16:19 +0530 Message-Id: <20200109184622.3098-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200109184622.3098-1-jagan@amarulasolutions.com> References: <20200109184622.3098-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=YH6eV3eC; 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 Thu Jan 9 18:46:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1031 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C95013F042 for ; Thu, 9 Jan 2020 19:48:32 +0100 (CET) Received: by mail-pj1-f72.google.com with SMTP id c67sf1652085pje.1 for ; Thu, 09 Jan 2020 10:48:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578595711; cv=pass; d=google.com; s=arc-20160816; b=xMWlfy+LiXHyYBS1o3EpRbVOI6bFGa490e6tsuyDzk0ec7l+GcJWNyTLAzBD5ja29d hRRXHNaVnyVQ3PTHvnthX56+c+URUHRkKrMb7UgaokEVqLIzUyiBFE8f9BGvAjJ3+lk3 6sn+rsenuCXG2OuPjOHJyFNEQ6aV7o6bH/1yhnIGmC2NVnPLzh2Fop1VKJjSMrk6q6Bn PQveziHEctUgX0fkP2OTkrG+Mn4s3T3lye0Ld7clCo4OFeMyCSk3d5GbCgGiipIdZX0t 3GziXGFUF0FiAPy2MNVP73Tej2eD00vY2BY+LVlGRx55YDcjnbr8Wpu+SFnMUTxlj6AN geFA== 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=3emUVEQFMRo+Ta0aInHcXC8WvpQVoH71QTn1wdo222k=; b=wFztjUgvwIPmrJQAKWD0B/4QhVhyWqjTo6V2xwYwj8rLvi8RRQjkjGqQG4cXVBJL+u sVQqPZjL303Oz3B4nfvugskClhqMzcs4buKacfCKgPBeUmJE3dqANh8snCcyEUacxcfL a9ZYIbCh5f4yTSizxKbPmdv3x1L651wKUOuDyd8eABTr7wpsAoZJ2JlOK7xZ7r2hCLaJ 7sdfuAhb4GGQdk1w0iRrZC+oK41uY4EVGYTgcSX2BkdVhpsn9u9ONSYuZ69dU2iOlhnw rXpbUuCmHBUbUZYs89lG6gNVdg2/Y4lJ7D7xvRxlbu9wNT4SRFUsBWZsC49zquI7c5Kv i+nA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YC3EvEdb; 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=3emUVEQFMRo+Ta0aInHcXC8WvpQVoH71QTn1wdo222k=; b=TAJeJhKlYc3fhvMVSi7Ku80ByvkB2NU1w66bw+B0wKU3s1aLw4Q69cKqTR4gycI1Rh oyep2LKeZ5cbuYDLNcskI2fQ5b1o4fd6wjnwZga6vl0sT7ShIdWj2jnjPFW46o+39sm5 fKt9jGq1yyhb7/s15xkn2AqY2QMKatZCZuNJU= 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=3emUVEQFMRo+Ta0aInHcXC8WvpQVoH71QTn1wdo222k=; b=CX3dtGLV6o5haYlg/He9rny697voQ51hCSqiCIMOC11uoo446BYvYSaSuPvrULSdoG 0VWXePjxcadFLXX04fQqjV4VwRdSpGiOYyanI3gZR/jJB6Kn3DGAbkRhaW2CFLlPXc4F tScgPbcyiMlbwDmzL+JDqRj9LKL/0i0r0HyFlaJQpDLbF4xyheG6ZwmOJmIIpxUSp2NU vmCNh60b1PJF+YI+oRe04DmEHQ0qvdbRZin3IbgQ+DC4yP+woobNjlWq3u9na7/ytL1W Zddpyzegb81D1/Orye+R8TUzQv2YKqiuoCEpmglxAUa+h6uBKUzqLbudf4iKWwxaJ8po 8s0Q== X-Gm-Message-State: APjAAAXPoS+SlMoiaXxKdCeosdIvjm/ZYaQWV6pcd3ms7XisdpSNuF/f E1z1Gm6v7IiIUwrMj+7IP8NBTODL X-Google-Smtp-Source: APXvYqy1Fdm3ZhT2seIhD/k49YMAptM/plytHiCo8wo50Whue+iQOmXh9N9uQfZOCuVlDuSb/H9mMw== X-Received: by 2002:a63:de47:: with SMTP id y7mr12602197pgi.270.1578595711583; Thu, 09 Jan 2020 10:48:31 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:8214:: with SMTP id x20ls820302pln.15.gmail; Thu, 09 Jan 2020 10:48:31 -0800 (PST) X-Received: by 2002:a17:90b:4004:: with SMTP id ie4mr7054371pjb.49.1578595711122; Thu, 09 Jan 2020 10:48:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578595711; cv=none; d=google.com; s=arc-20160816; b=xE5VpiLPEH+MnT8hP8A72kJ6/wDCBVEBVYbsR/gBTqtEX+QuCpXfhC0aGxCMU2n+VQ 5jIGnOOc7EB1EqCO9sgREYpIpBtCYkj6A837Ww1iZeef55jal+2l3CyE8oADdl0wvzMH 7+803j6kCOlmRmH+D1DwyznkLDEnaZlpuUyzLsGt46rktemgVAPd+7w7l/ZDWpaGZgPs iBGQn4nRdyOoboNcwYRmbF9SmzofqUbxTu//1Szlq/OapfQWVph6I30C1yrq+b+wyvAv +a2P1ULB/YisqhVSdXhAFOD+Pt1MchUtOKmmHyLTDn+BlAApvVo97dfA0sNpQAI46C7b sZyQ== 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=JN+8+Nyqtv8x9KontYLpWObUjUyrnqdpOzW75jef2Gs=; b=Q38K8worEuaPJoC6NszQw7kYcko45qkLN1e0MNMRFaiZ5bkpBPx4biyicgYuuHaOXw F/RSF0mRbXs9jItZbFtiUoYMpkT+WVgyk1ogXX07JGI7y71aBtBiY/kY27Gqqkgbcfnr Ha0bcjRRZeWwk577pOssObdNZB2uoG4uuo5OfHEPw2JpMGpyw6WDGlVZVn+g9JHR2lJn u4ZT0L47Pa5LttGtIMSXWuz93JYkCMa9s+Nbz6Cqh75yYfmSxis+y3KZ4M3Bdr3R51m4 OuHVvlpOX/6QC2yCSPR+camAHb9hOvOK5liiR0yybC0bwAUVTNTIeAB7Be21x0pzSYwC onuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YC3EvEdb; 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 b5sor8122263pfi.2.2020.01.09.10.48.31 for (Google Transport Security); Thu, 09 Jan 2020 10:48: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:a62:b418:: with SMTP id h24mr13287164pfn.192.1578595710879; Thu, 09 Jan 2020 10:48:30 -0800 (PST) Received: from localhost.localdomain ([2405:201:c809:c7d5:c4eb:be5d:1485:edee]) by smtp.gmail.com with ESMTPSA id i8sm8967306pfa.109.2020.01.09.10.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 10:48: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 Subject: [PATCH v7 5/7] arm: dts: rk3188: Add rk3188-u-boot.dtsi Date: Fri, 10 Jan 2020 00:16:20 +0530 Message-Id: <20200109184622.3098-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200109184622.3098-1-jagan@amarulasolutions.com> References: <20200109184622.3098-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=YC3EvEdb; 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 rk3188 SoC. This would help to add U-Boot specific dts nodes, properties which are common across rk3188. 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/rk3188-radxarock-u-boot.dtsi | 2 ++ arch/arm/dts/rk3188-u-boot.dtsi | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 arch/arm/dts/rk3188-u-boot.dtsi diff --git a/arch/arm/dts/rk3188-radxarock-u-boot.dtsi b/arch/arm/dts/rk3188-radxarock-u-boot.dtsi index 1bb5408592..204bb3a90e 100644 --- a/arch/arm/dts/rk3188-radxarock-u-boot.dtsi +++ b/arch/arm/dts/rk3188-radxarock-u-boot.dtsi @@ -3,6 +3,8 @@ * Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd. */ +#include "rk3188-u-boot.dtsi" + &cru { u-boot,dm-spl; }; diff --git a/arch/arm/dts/rk3188-u-boot.dtsi b/arch/arm/dts/rk3188-u-boot.dtsi new file mode 100644 index 0000000000..1e7d079315 --- /dev/null +++ b/arch/arm/dts/rk3188-u-boot.dtsi @@ -0,0 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ From patchwork Thu Jan 9 18:46:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1032 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7AB0D3F042 for ; Thu, 9 Jan 2020 19:48:44 +0100 (CET) Received: by mail-pl1-f197.google.com with SMTP id b5sf3897458pls.9 for ; Thu, 09 Jan 2020 10:48:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578595723; cv=pass; d=google.com; s=arc-20160816; b=Tt4QZ4wko/CMF4OiStOrZYiFZWvl3kKWlLivz5xpsP9eML6txtPSR9ZuFG0whqbKLp TJ3f1iWdGlsKp9fxsjE7Thkev/LKD0DT9ZiMWtiFa/bd12BdTRIIWIXnIOEVn6fAlIoD VdgzRsCD8q3CcqwW26kVZRP1nWcmOUaNr5eSQfeLG3BSFqmD49S1EGFDpfao5ACf4hYs wwhqVeuN3PH1EJ15rnpgS64Peg/RnIaNBTEzVHUzdnVxjED1nnxdFRw/AKb3zXbnTEzy 8uSP4ogjAauLXsenrsCOIZtJxGzlDFA9yWtLGG2JH/HwFPqTCphYNpvr1u0rAyKohyuE zWlQ== 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=caG8lsPJR+jR5cFXqHOcuboJ81C3WXyeLmMFoyhdwu0=; b=v40168Q+E7v44ddCRfpE4ugjIW4n/fp14h+WuBIK2j3yQ+ZKmjYp0l8Sd4ZwjVWa8y d5DMXbzf7L9gRFnI2uOOWlxu8rcXKI5Jak0TVryboW0Sqz9YGddBnAN42uD+DkHPA4Oi l0++l7U+aCOF9hss3mgipH+NMinDj0uYh5IK2/RSB2TAKmSxSPBsN825kOQnHSRFimEI GPgqGfZeUFet1fwC597GquspmzsxtuAU/EBdN0O1D51a133va4CtscmLHN0HdRhjEi2v hEjJzcuTgZCw94dN1yo9+aAeAHR/F55/ODUSTLP/+uZFgqr2XIaJx6/THGA9cK0X60K4 DP5Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dOaqQCRg; 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=caG8lsPJR+jR5cFXqHOcuboJ81C3WXyeLmMFoyhdwu0=; b=nt70hWqmxvqbDxSOb1YdRSs55/nk7xyKK1CMtq6gJsGFoD63jcm10KdPG2nxtVlz1d 0MgDrUwnqABF4qWJy6FXYFwEQNJ33L8aA5A5NJZsVvw4N0qKoiOm4dxh+X0xVmOfWmDA hZj8tPlfWweHjvJjU/mv+9AcNl2pHOa1GH+Xo= 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=caG8lsPJR+jR5cFXqHOcuboJ81C3WXyeLmMFoyhdwu0=; b=blaHMeln45wmmZfSWmMrjJySgw/KXsfua1oXHUY8EqoG/dtvDahjUuuddKY+1FDqKt IOddCcNfBbVxLYiuP4dB/Uri7IDuZ83K6gjhcci+CXGyAGkCe+43u+4A+7dorIrvqWpe zUPwQUjNDTg81eylnM9l6s1WhgCEuvDoHz3M53KDhvcNN1rqw/qQuNmG9I13jV1VFSAI RHdPki83vL/Nk/qVz/VgbLaIQsurnPwixvf5dWEOCEJLxSr7civdA1euac6paDqI1p2f 4jxkTdAMcX4PzdemDyNSlT/SAoLbckUY0sAAoGk2E65snzqpymcTWcI2nltWSxlyn7Je XxqQ== X-Gm-Message-State: APjAAAVKHtR+xl63zvX/7mNYhmPGVqHv0p18cGhzd2F7biP6BGuuQDUA 6vo5KSM1NaQQVvlNkHuW7Loajk5p X-Google-Smtp-Source: APXvYqxDyb5bGMX+yOy518GKQVF30YVw0vdniNuwPySHxNUfL081qG4Lhwu5c7Q44NqeDKY37emSNA== X-Received: by 2002:aa7:8246:: with SMTP id e6mr12849480pfn.102.1578595723269; Thu, 09 Jan 2020 10:48:43 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90b:28f:: with SMTP id az15ls965870pjb.3.gmail; Thu, 09 Jan 2020 10:48:42 -0800 (PST) X-Received: by 2002:a17:902:8ec5:: with SMTP id x5mr11271519plo.193.1578595722636; Thu, 09 Jan 2020 10:48:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578595722; cv=none; d=google.com; s=arc-20160816; b=CcJWo/mzYydvYbfDKyW0CmIuHgY3K/vEJ2s1gdxVtiNVtjML5V39ynohf3hpwP3bDh 3bDKJjxpMHn9D+RaXZvubD6JxnX9K3wE1zw9NBH45SqfLZrlutk3YvyYOXVDflOQYQ6f XvmSHWKxaufQfZCJygvISOBI1ahl+DY+1PrdOtIQbCHp+e3jYlkFwZuNNT7T+/YEQS8o HjYCyg9oTHnMjkKWfi5IJjLT8pav7bmhBpi8J2gA7BUTQo9xDrVVH08V//uFrR8t7/zf 4fukd74syig8/KpqRhZOKY50Tw2uoQNV3BMRMJSf6c+VAmAdUxfBoB0YdvIAhGH+teJE GgOw== 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=lJIMf+9YZW+X6GdFWHZpRH4+lugUPac38t0E8telXj0=; b=tqYu1cAt8Vw0Ja6M/Pits5ldlITHa9Wh0mjZ8FOr8ZZ7JY2pMZ9V2QaFoFbbyw/Bxg +v3AOEPzkRLJXfHnhaOAcajOkj30PYBtWNjKcw+NeVq4WQmfcGaRr1vVYv/SLr20BOyE KxfldzPZxH+dbbiaKe4YP6gMRvAZpIgY9yhnvgCEIzbgXxJsZKIHP/RHIvBCoxUbyapB FgBexwRWla09xKEoPYZQ39EYElhV1iGzb9rw/jIyEtFsiTLjGQcBsDp62OkHOXUKBtow onNMkSZaG36g7gDDNP+F32Nbp/z5LHCSN5rLtGhYHPuSjbOcTumcjcNA9oCYaI4G8zhK TbtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dOaqQCRg; 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 t39sor4091170pjb.6.2020.01.09.10.48.42 for (Google Transport Security); Thu, 09 Jan 2020 10:48: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:90a:200d:: with SMTP id n13mr7269727pjc.16.1578595722296; Thu, 09 Jan 2020 10:48:42 -0800 (PST) Received: from localhost.localdomain ([2405:201:c809:c7d5:c4eb:be5d:1485:edee]) by smtp.gmail.com with ESMTPSA id i8sm8967306pfa.109.2020.01.09.10.48.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 10:48: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" , Wadim Egorov Subject: [PATCH v7 6/7] rockchip: Add Single boot image (with binman, pad_cat) Date: Fri, 10 Jan 2020 00:16:21 +0530 Message-Id: <20200109184622.3098-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200109184622.3098-1-jagan@amarulasolutions.com> References: <20200109184622.3098-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=dOaqQCRg; 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: Matwey V. Kornilov Cc: Wadim Egorov 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/rk3188-u-boot.dtsi | 2 ++ arch/arm/dts/rk3288-u-boot.dtsi | 2 ++ arch/arm/dts/rockchip-u-boot.dtsi | 21 +++++++++++++++++++++ configs/phycore-rk3288_defconfig | 2 -- include/configs/rockchip-common.h | 3 +++ 8 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 arch/arm/dts/rockchip-u-boot.dtsi diff --git a/Makefile b/Makefile index 5361524f77..1d71a77cbb 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/rk3188-u-boot.dtsi b/arch/arm/dts/rk3188-u-boot.dtsi index 1e7d079315..41ac054b81 100644 --- a/arch/arm/dts/rk3188-u-boot.dtsi +++ b/arch/arm/dts/rk3188-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/configs/phycore-rk3288_defconfig b/configs/phycore-rk3288_defconfig index 2f10c7a3b3..ee164a9083 100644 --- a/configs/phycore-rk3288_defconfig +++ b/configs/phycore-rk3288_defconfig @@ -19,8 +19,6 @@ CONFIG_DEFAULT_FDT_FILE="rk3288-phycore-rdk.dtb" CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_SPL_STACK_R=y CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x2000 -CONFIG_SPL_I2C_SUPPORT=y -CONFIG_SPL_POWER_SUPPORT=y CONFIG_CMD_GPIO=y CONFIG_CMD_GPT=y CONFIG_CMD_I2C=y 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 Thu Jan 9 18:46:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1033 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B4BCF3F042 for ; Thu, 9 Jan 2020 19:48:50 +0100 (CET) Received: by mail-pj1-f70.google.com with SMTP id dw15sf2172336pjb.2 for ; Thu, 09 Jan 2020 10:48:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1578595729; cv=pass; d=google.com; s=arc-20160816; b=F6Ry7rGu3oLYPuZdx/YnE4B3LpQBYLavOVZBt/v4hNLKxxGM+kSv1uNfVAIyqGdseZ i2H0dSLsN3yaXPF8RKfSQVkkrIGLKwxPe2NLhseCrbrzchzam4MmowtF4raC8/sdW/GV yCLYjTwDokS2jidt171BnjwQNUGoSAWWFdLmSDVlug2y8lsJt6Th0yzqxlNueteUM9o3 yjucEkLjClmPuE46lDoIPekLyV6cjTO5g9EOvC/pPWc8IVDBJQUa6bBiMUnO71PDntHO Zsu4skIAuxwbBjaRJQ0IX9BSiAGuPCaFCVV8OWMbn2AoUrC9+ABlh89BMy3BPs0GBczB LF/A== 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=+FR7dr0nr8D9bOwx1qLhfRzbt4t4J7ni2I1+549yC1o=; b=L9Lx7IEfaLvK99BsWe/bZoPC8D8R4t9TjV/nYHj4umBYCq/EFG+CXHQVkt+OGhLVBl Hlp33izsSt06QPU3+zc1bdUXWvzoR3WLGZqTGib0C+ji+w7+vfsxybERraAtmARCOraN XWk45Q6XHhpKml5fT+Dh5f7ZjJbWPD3H06QZA9knKFDYMH20y7EMKhc0jVs1Sk1+7Rtc e5nBUsS0WYkvOTZGu+3ZLjHKCr1FMOIohZLQhys1ZIZo+FZs6Zc+qF+7kimkwZL5zo6n yMfidLaTUjN9eQF4fZgwHcEj8FpxUzw5nwDO6NulCRoGfnmF8FL3IiIw3j17JQvImhPr 2N+A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QgC4yrBv; 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=+FR7dr0nr8D9bOwx1qLhfRzbt4t4J7ni2I1+549yC1o=; b=Xewc78u75EiApVIcEu0+Qn9gcUe5S03b+qaEjTvsM5Ezk5j5kLcBV5P26kjUcq39aj hyrelzdRHFyLlsIS4VgWQqumlPmCx0W6/edqlclkO7sa2gSGYbcQoU92+MeEW0oJwaj4 bMv6XPOqB0MzCEypbyq87XvDwfNPZU1/tZMl0= 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=+FR7dr0nr8D9bOwx1qLhfRzbt4t4J7ni2I1+549yC1o=; b=aGwEQv0ny8Qcx7D5EIs4FvuskaiSgPI+9hNng+Tgr4vlXZxs5FWDKKC926GtejrEXp s5E925VfyO2FZPlEK0y+PMmopI904p6tDXWF3EdG35GwAd6pGlRfKw4olxCWhNGuDcqU LvdbxUQiTutVAeeyL22yyf2tlq7WA3aRfSsaWIyPoWb1+WFAEQ+exNZLkNZdkU/XkN6t 5KcF5b/KlkQd87Nd12KJA7d3paC1ht10VEK1BIlWkg1rbN1wjVvC72TKl78t5Gw9ZvIB bgJQynyh/YAjKh9uSMCK/6MKXJ0Y+kQHHf5pXUekDdWATrkSTQ3pdEsRLODqK36Fz4ly Pmag== X-Gm-Message-State: APjAAAUICCYa/W4gIp9GRaY7nuMPUmsfHtsHV+H3hZXm4WhsAu7Hs0m3 Lo/riiZkAl5Sn4Ix1vvA5uc3735d X-Google-Smtp-Source: APXvYqxIGeQFDb6eyVdM+i9ZhW1qH3Pv4AL+frhL8sZYpAVyfWEfRbjU9+ezNpdzdFkBvU8xJnL4Qw== X-Received: by 2002:a17:902:ac90:: with SMTP id h16mr12567384plr.164.1578595729403; Thu, 09 Jan 2020 10:48:49 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:d007:: with SMTP id z7ls792048pgf.9.gmail; Thu, 09 Jan 2020 10:48:49 -0800 (PST) X-Received: by 2002:a62:78c1:: with SMTP id t184mr12440081pfc.222.1578595728979; Thu, 09 Jan 2020 10:48:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578595728; cv=none; d=google.com; s=arc-20160816; b=zIjVIShBQrumY6wcK2TXDiSxg5sBDbj3ZgzI/uC9vbr6A8nf8rIZbTMBefA97jgi0s h1Y9u5BopG6q8INT2al4XENytpxrrgLoKKZzXVAtBU6jy14b5w0/nNkj8ledLyc7stRD lOSU3l5/OsacMUiGMvw0UCkLpJWr4sF0+AHeM5fHT2Cd5eJxE7zO77WUIYk3zzJW/2Sy 2aguG0hoaUjDYRYQUrepQBobqjnRW3bQgyzi4Im+QjjO1GCWZuhcSUnaV/adn+r5HJZ5 s9iPosrETPmHmY1ENwWjuejVxmmr1JREeWCOBXyoLJG4XU4UCKugKOrI+Qzd2RaxKl7K h5qQ== 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=RV+d12yuIQSCZ/M2vOO9iyyB/0NvK5sAyrZn/RyXJus=; b=BgN6/L3le2khrY5QF0Umw8/IYfJ/7d3FN4MmxU1B3INJ05soGxkIHLOlobJXYZ31re F63/GbcVS0ONu1lSZ6/njUs86fN/0M8EXBaj20QtTCeIqO+W7DbQtAjqsAmikGYaGZAF 9tOUG4uxCZnJmVTgjyXZem1XH4O3UJthWLiY6E/kVLWO0L6xvVxJIdIIj/1Te+f5pkat w8DQ2fwiU0ua5HZSs+WjXsUxYzillvOg5JWnCFatJrTuPzg3on4mT1ignY3CGr9S6XUa x3nIIAwzfN3yvAgkF8FF5wxy9xGcwIb+FP3tN1m7YYS1DXe2DjgdkGoKRcWSpXmy3if3 fqlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QgC4yrBv; 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 a207sor8086788pfa.20.2020.01.09.10.48.48 for (Google Transport Security); Thu, 09 Jan 2020 10:48:48 -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:342:: with SMTP id 63mr12756077pfd.19.1578595728451; Thu, 09 Jan 2020 10:48:48 -0800 (PST) Received: from localhost.localdomain ([2405:201:c809:c7d5:c4eb:be5d:1485:edee]) by smtp.gmail.com with ESMTPSA id i8sm8967306pfa.109.2020.01.09.10.48.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 10:48:48 -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 v7 7/7] doc: boards: Add rockchip documentation Date: Fri, 10 Jan 2020 00:16:22 +0530 Message-Id: <20200109184622.3098-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200109184622.3098-1-jagan@amarulasolutions.com> References: <20200109184622.3098-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=QgC4yrBv; 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..cd9c8d6dc4 --- /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 +.. Fri Jan 10 00:08:40 IST 2020