From patchwork Thu Jan 23 16:28:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1046 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 316D03F042 for ; Thu, 23 Jan 2020 17:29:26 +0100 (CET) Received: by mail-pg1-f198.google.com with SMTP id a4sf2036145pgq.23 for ; Thu, 23 Jan 2020 08:29:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1579796965; cv=pass; d=google.com; s=arc-20160816; b=GRw4fy2XhgbVj+JtMr+BZVC08ez3b42YWxGvzSqXlRHJCrqYmvUzjao/s1jaDUFBYK 7EIE227fH2j/iPGcxiyP8MMC+/XotjzM5l097jpiCUVLM7feuODp4X0RX1b+cYUzeQIa Uiv+ZN6qVu7Er24x/5w6ydr6q7rS3t63uW8THUy7Ho4SSfBDaCk+/hvGUCknqJuuhQsj Rk9EPQ8ELTHO/1CAHeLBWV34AhG3KhneLAA4bl9p5UYi7UfNHrKIp1OQXUrZdufrN8Ho 5XxPQi2A/ISI23nvNWTbRu9+YcXbJpTJ2GkYWjRLnDnUS+clmHuKG05FIqaWwXjs34dY wVuw== 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=TRqt8DxM3kUe731duI5UUJ6z9d4LQmoXuj2NLCuhN9E=; b=sUjqnSy8Zm+hDKGM/sLJnooD/7UgsHdcPtTDQ4uTmQ7MTaWFjDunKjiuUrnXefm1Ig tKWjcpBsK27Iou0qYy7d+3mzXHSVLC4455v7Ae3g8hdERXvy2tbJ5W5SpPJ3QTOTpmZL PopPLhWmRjc/zcBSRHie1TugYj3DnFn9QqVCqM0bkgLP5GI0Tmwy9xf7Io1lcKvr6X3G IvgOFehJXsxksFhw0ToX1ETtQQ6mAqg1aZYfkJ5hNiRMRrZ90HGMkdjIRLWM7aXAdF48 XaSUU3ppd4oI7gEsCHAsDEssiOFv3Xc6V60KNr8Z3fqLVCFcL0+smgTp2eef1cpVODGX aMrw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="CGRx2/w0"; 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=TRqt8DxM3kUe731duI5UUJ6z9d4LQmoXuj2NLCuhN9E=; b=ArqRojPQky3YiB8BHS6R/ONaE7C/QieXEtfT6DwrrvLjpuy5Gcf+w7HlUwetYriQI+ uGbUwwBSFvclN06fl4VAJm28LMvZFm+gLQe//LE8zKuhiIpUij93QZ2w8t723yMrXPmV N7S4EfYzPKOdBpE6CJQ/19aCGgUw4bUqdo5eM= 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=TRqt8DxM3kUe731duI5UUJ6z9d4LQmoXuj2NLCuhN9E=; b=dhhGzUbhrhFA++sSlE834Rl1g257bM4I0RGoVuOIY4qZ5T0b1ONjb7crM6swt8LN+1 N24jq37zzKiGpR2Ir0W4qAy254FTBLvua+spczimMIZUsSft+kz5EEJ+MEuz99CKeeta h1GKBZCq101vAT/nXRt15g8mcPG+otZ1RSy5z9NU+eHgKzom/FI1QcGeYcedkWdKAYMs hFrzo2mRciIgAfIWf4rSqItZKpJ6MGJRKqML+EASpEFaUvU37HE6PAUo+myVMIiOG0F4 6xuAGNRHtRju4y1Ot9FUg1Ng50G1NT4FF5mBDoZipTLGv4rhiMOjqYTsoREKoHOZ3Gcx ioHQ== X-Gm-Message-State: APjAAAW4cxoXdAnE1pQNCj46TbQJ7ke8CufVlcBjgSQeNoF+H/1dZbxz bcXG+6DyI5cOBWvrh2FvwFNOM9HA X-Google-Smtp-Source: APXvYqz3XfhdsPWYwoUFqhclmlNHE4R7abLaSWlEGt+lw5aGJ0WPmujZ8kcXVOVcKLpxfdDEtogEPw== X-Received: by 2002:a63:1f0c:: with SMTP id f12mr4932385pgf.247.1579796964875; Thu, 23 Jan 2020 08:29:24 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:9f95:: with SMTP id g21ls13471907plq.5.gmail; Thu, 23 Jan 2020 08:29:24 -0800 (PST) X-Received: by 2002:a17:902:9691:: with SMTP id n17mr17457153plp.304.1579796964314; Thu, 23 Jan 2020 08:29:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579796964; cv=none; d=google.com; s=arc-20160816; b=VEZuDmd2YqjLqocyG1RsAbcUKYzrrHAQEe9JoDgcsJKfz9zI1FypAIiGjdNalm6o3o mGVFIm87EoP1xTfsLR3vyd00le+OGS9FkDNnSr5Y7D6ys/9HLmB3wsNLM5yglh+4mwlR vHSO3th/UTIRs/5WaMFKnFPSPhAPbb/69HL0nuJ3rPyOmUOEt0LrsyeOUNdacEqDx5Jg peOFrqsZciuD3HZxhUjFw1WL/GYqwJw9x9Oz1EicKf4VbicPyQbyd3Ns4I8U9SDD5uGU ojiSSWi2spTKSVHP6Xd9ojw8PgE0Mq5ll2LrtciwvrEnT2ji40Yn6uhzomCOrAJFWnfO NfNw== 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=baaDoeDkotpglxjsNTDoBouhmXKpmsImZXmCo5dx/Oo=; b=mWHQm7BCq7Tzqsjpi9Yc4tkIMKX3QUxAVFtxejrZScOLCVQRTPcQzmPAuT+6gZWyWN 1p+weqjfS5Rd+cBKbbLO5NXg8LSMOiibDB29GkJ8IDOCML07TJ+dbYx0p8I41b5TkZEx 25T9PSMBMTihjhu1K1qeLpVoCehwJtojIwzAjsiZqsmlhcY/q8smaOfhgMnwHb6S+9Qr 2BR5C+9xHcdfksF6a7GROUp23qny5BAsKchtOx7szBaDVsG/eZA6fmPyc3mIPcl8NclQ nP1ENf6DC+vVG6M/5u1aUhD091MqL37oMEL9aQeLjajylYDKLOd2IM4u1LfN1jC3rFkQ nC7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="CGRx2/w0"; 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 l7sor2717963pgj.52.2020.01.23.08.29.24 for (Google Transport Security); Thu, 23 Jan 2020 08:29:24 -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 19mr4818279pgc.160.1579796963913; Thu, 23 Jan 2020 08:29:23 -0800 (PST) Received: from localhost.localdomain ([49.206.202.109]) by smtp.gmail.com with ESMTPSA id u1sm3188909pfn.133.2020.01.23.08.29.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2020 08:29:23 -0800 (PST) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Michael Trimarchi , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 4/4] rockchip: Enable HDMI output on rk3399 board w/ HDMI Date: Thu, 23 Jan 2020 21:58:45 +0530 Message-Id: <20200123162845.10651-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200123162845.10651-1-jagan@amarulasolutions.com> References: <20200123162845.10651-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="CGRx2/w0"; 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: , Enable config options and console setting to respective rk3399 board for HDMI output. Boards supported and tested on this patch are: - NanoPc T4 - NanoPi M4 - NanoPi Neo4 - ROC-RK3399-PC Signed-off-by: Jagan Teki --- configs/nanopc-t4-rk3399_defconfig | 6 ++++++ configs/nanopi-m4-rk3399_defconfig | 6 ++++++ configs/nanopi-neo4-rk3399_defconfig | 6 ++++++ configs/roc-pc-rk3399_defconfig | 6 ++++++ include/configs/evb_rk3399.h | 5 +++++ 5 files changed, 29 insertions(+) diff --git a/configs/nanopc-t4-rk3399_defconfig b/configs/nanopc-t4-rk3399_defconfig index bd6d60ff6c..17e8a18d31 100644 --- a/configs/nanopc-t4-rk3399_defconfig +++ b/configs/nanopc-t4-rk3399_defconfig @@ -53,3 +53,9 @@ CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=y CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y +CONFIG_DM_VIDEO=y +CONFIG_VIDEO_BPP16=y +CONFIG_VIDEO_BPP32=y +CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y diff --git a/configs/nanopi-m4-rk3399_defconfig b/configs/nanopi-m4-rk3399_defconfig index 74ede13c23..b73b2fdc27 100644 --- a/configs/nanopi-m4-rk3399_defconfig +++ b/configs/nanopi-m4-rk3399_defconfig @@ -53,3 +53,9 @@ CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=y CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y +CONFIG_DM_VIDEO=y +CONFIG_VIDEO_BPP16=y +CONFIG_VIDEO_BPP32=y +CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y diff --git a/configs/nanopi-neo4-rk3399_defconfig b/configs/nanopi-neo4-rk3399_defconfig index a44124aac0..2ecb50967b 100644 --- a/configs/nanopi-neo4-rk3399_defconfig +++ b/configs/nanopi-neo4-rk3399_defconfig @@ -53,3 +53,9 @@ CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=y CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y +CONFIG_DM_VIDEO=y +CONFIG_VIDEO_BPP16=y +CONFIG_VIDEO_BPP32=y +CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index 3a051d9b0c..a9f99f992d 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -56,3 +56,9 @@ CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=y CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y +CONFIG_DM_VIDEO=y +CONFIG_VIDEO_BPP16=y +CONFIG_VIDEO_BPP32=y +CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y diff --git a/include/configs/evb_rk3399.h b/include/configs/evb_rk3399.h index c0b0358893..09eb361655 100644 --- a/include/configs/evb_rk3399.h +++ b/include/configs/evb_rk3399.h @@ -6,6 +6,11 @@ #ifndef __EVB_RK3399_H #define __EVB_RK3399_H +#define ROCKCHIP_DEVICE_SETTINGS \ + "stdin=serial,cros-ec-keyb\0" \ + "stdout=serial,vidconsole\0" \ + "stderr=serial,vidconsole\0" + #include #if defined(CONFIG_ENV_IS_IN_MMC)