| Message ID | 20190729074711.16988-13-jagan@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBOWJ7LUQKGQERGWIC4Q@amarulasolutions.com> 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 0E06B3F0E1 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 29 Jul 2019 09:48:12 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id t19sf37703083pgh.6 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 29 Jul 2019 00:48:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1564386490; cv=pass; d=google.com; s=arc-20160816; b=w+kM0o/k2Fm8W1sdhxDAhCe0TrhITJTfT2hmEy3VQtVTvUE124cQv+L6vTZIN8gUH5 yPG1v8HMcJzPUJsAPun2cNlcYYUoajUH+QEibrmqquv4yJnipLJspZ4NdwojaUAe1SUN 9crjh9Ry5F377FB24jk3lguvrBe8EHGho0QWocqOD2Lon/LTqSeFzZLdiuQXLxyy+Udl lMW6tBISYX3JD+7pPo8iXwx6kVnwP7B/l1ywS06FB0t17CX43e/19M7I8pFB5nf2cjOJ pWD00GN7niq2s8MAiMW0Oiv/650XjZtuexwNvPPXn8pxWlw0avwTBe+9OuvSw6Xh5/Wt yjEg== 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=QFXuDAiHK9yIlgntH28iYxt0+qLLTx9Ny8SQMgS2ZDc=; b=ph2cGyKIsG6j8tAkOf6lFKWrDlxc2yzJCXwJGo27LDB6d/E3oqXJmjL/aRA0PdQ9Dn 1aV8wlwu7neuMHR9I8jQ462qI4+BbAo57+g647a6kj7W18YhE3CWH2IF0H2M2/5PvuVh AWWOKgoAmpALAGR9XkSOSnoFAUwsMXKA2fNeLXqowbkE1A+nVvyakAXtJ56ymddplNjP EyPd38DJjLmOQIIoYVkUDBTPcP3Tl5S5dNgDG5wZc5H1oCwE1Vl5eSteGK/+ESoWBWeO xXuT/LMjk4Gds2acRdtjYaRPJm9ypUnhaubvjcrpOigJz1rilwbtHheVpk4HunG6EFCC R4AA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JES5mUdc; 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=QFXuDAiHK9yIlgntH28iYxt0+qLLTx9Ny8SQMgS2ZDc=; b=V0QXATinNzPhqPv4MmtkxYio6FxT37O0/zmp0eKSy7osb4c4smLu6TmtduEZqTH9ZC l4oRC9O+4f1lSYId99PCxNt0dobF9T2jF/lF0X+4KryDhaQllxdluUpxrMVF+LDc1ttK p5ZojxN5HBMqEga+9C5ZwJcbWgThLMVP4Y3tg= 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=QFXuDAiHK9yIlgntH28iYxt0+qLLTx9Ny8SQMgS2ZDc=; b=IXdXt29SmFGLIx/Y3HtunKdZtPZzeCKPRmw/aw3sAWb/EReFnVR5dGXJp2dCC5Gsip YYj41hBg7OBytogvTSYhVjXdzg6Ay2TScoClzid+w86MD02oTfYBitc+CWVy7vZJGVaN HREiP8SL7JNdQXFi/MCxXK+DXY4iQF8p/1pLWJy3a592RBn2nnTsFJHe2oO+P6ryBSuc lTpUqQEhSVCzCZ6zln/k8SZrgJ3gsdPBoXY6OMp3FzvHLCo9ChL8ZftuBuaceujLuw5y YQaHlW3crgwIOvVO0GoqNwoYt62ZV3aa1jhwNUQHU5ddAC922iQ/2MZaREUxD2VsMSoJ ubtw== X-Gm-Message-State: APjAAAU/uXoSC7FAydFH9avrWv6onR3QK7ttmuXEFWj7BwvagwS9tM+x 3n7wNmGeqb/MnUzTQsgkU++3Jrci X-Google-Smtp-Source: APXvYqxKxxZ8fTd8S2Jr4KHw2Sg0Xqcbyp1cgvipxY2ru0vOOJsVT48vAYVIjzlIeWliH5K7OrFNSg== X-Received: by 2002:a17:902:b08a:: with SMTP id p10mr110011885plr.83.1564386490908; Mon, 29 Jul 2019 00:48:10 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:b402:: with SMTP id x2ls16898581plr.14.gmail; Mon, 29 Jul 2019 00:48:10 -0700 (PDT) X-Received: by 2002:a17:902:9f8e:: with SMTP id g14mr62946397plq.67.1564386490583; Mon, 29 Jul 2019 00:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564386490; cv=none; d=google.com; s=arc-20160816; b=ufn2qXe+m4G6N8IqM24ZVhr/7LLk/Q42Wdn4AeA4ChUJHjOXlRV5xAxHvBmqavybNL kwAcjCI500SrA9qdVoEUahdi5OuB0AyUp/V3J2oB38S1YKZ4fi/Y8Un1jBI8ZcVbak/H z7zg8173ezXDxy8rDFQG9GZHeve8Wksz5NTciWBEqRi/FEWg23qtdgmhzphP65fX70zA a1dSJbRcdY7AHMFn129P9OMJSfFbooxlU+GS0q8XaIIKdlzejxAFKxi9lLlhNvEo0v3V G4oLUb4vF8hL7o3gmrc0jb3jbaDfy8qr6ezyq/E9NLDj1FdysQLWba0hhGD4U0hYi7jf WpMA== 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=UnjYrJEzucsxijDaLJ3Qy03AYryDuOEPvq0xHZN5TzA=; b=f57O8JnafObrYcqMutvm9KfIAxkdHB49I4vh299HfclcklicY9QF0CsMVpoKuwBs61 sWctuXbToTpZKgQpuvfB75mJpszN6+cUYs47tuuNzWOfDjt+BnPOwrHD1LHTdqHY+t8Z D4vKQSQ6k9WxGr0wuqUTAopDx5H/JhbRJA+aXqcl048luMN1E8h1GwQ1zM5bgPdzxay8 rU6o277gTmBSnj0oBVH7Xxbb650fa6AkzHFpgFDdoWU/V3xaP0oc18hJyEfR1YmXFbMF yC0RX4adApJ2vEw/V2jbrFJKN1yHKxB4JyDnnN9PnPTUNA/IiKsIACRU8DZVgjwaxwLo F4Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JES5mUdc; 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 m10sor72173097pje.25.2019.07.29.00.48.10 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Mon, 29 Jul 2019 00:48:10 -0700 (PDT) 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:b903:: with SMTP id p3mr108891521pjr.79.1564386490275; Mon, 29 Jul 2019 00:48:10 -0700 (PDT) Received: from localhost.localdomain ([49.206.203.41]) by smtp.gmail.com with ESMTPSA id h14sm75723348pfq.22.2019.07.29.00.48.06 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Jul 2019 00:48:09 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Kever Yang <kever.yang@rock-chips.com>, Simon Glass <sjg@chromium.org>, Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Cc: Akash Gajjar <akash@openedev.com>, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH 12/15] include: rk3399: Disable watchdog in TPL Date: Mon, 29 Jul 2019 13:17:08 +0530 Message-Id: <20190729074711.16988-13-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190729074711.16988-1-jagan@amarulasolutions.com> References: <20190729074711.16988-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=JES5mUdc; 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: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
| Series |
rk3399: Add redundant boot support
|
|
Commit Message
Jagan Teki
July 29, 2019, 7:47 a.m. UTC
Disable watchdog for TPL, since there is no support it.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
include/configs/rk3399_common.h | 5 +++++
1 file changed, 5 insertions(+)
Comments
On 2019/7/29 下午3:47, Jagan Teki wrote: > Disable watchdog for TPL, since there is no support it. > > Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> > --- > include/configs/rk3399_common.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h > index 8df0180284..67b48e03ba 100644 > --- a/include/configs/rk3399_common.h > +++ b/include/configs/rk3399_common.h > @@ -46,6 +46,11 @@ > #define CONFIG_SYS_SDRAM_BASE 0 > #define SDRAM_MAX_SIZE 0xf8000000 > > +#ifdef CONFIG_TPL_BUILD > +# undef CONFIG_WDT > +# undef CONFIG_WATCHDOG > +#endif It will be better to use CONFIG_${SPL_TPL}WDT in watchdog Makefile, because all the SoC needs treat this driver separate in TPL/SPL/U-Boot proper. Thanks, - Kever > + > #ifndef CONFIG_SPL_BUILD > > #define ENV_MEM_LAYOUT_SETTINGS \
On Mon, Aug 5, 2019 at 6:13 PM Kever Yang <kever.yang@rock-chips.com> wrote: > > > On 2019/7/29 下午3:47, Jagan Teki wrote: > > Disable watchdog for TPL, since there is no support it. > > > > Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> > > --- > > include/configs/rk3399_common.h | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h > > index 8df0180284..67b48e03ba 100644 > > --- a/include/configs/rk3399_common.h > > +++ b/include/configs/rk3399_common.h > > @@ -46,6 +46,11 @@ > > #define CONFIG_SYS_SDRAM_BASE 0 > > #define SDRAM_MAX_SIZE 0xf8000000 > > > > +#ifdef CONFIG_TPL_BUILD > > +# undef CONFIG_WDT > > +# undef CONFIG_WATCHDOG > > +#endif > > > It will be better to use CONFIG_${SPL_TPL}WDT in watchdog Makefile, > > because all the SoC needs treat this driver separate in TPL/SPL/U-Boot > proper. Enabling TPL (via DM or so) cannot be an optimal solutions as of now, since if it continuously resetting we need to take boot switch based on bootcount, ie possible with SPL and U-Boot proper now. Making a boot switch to TPL might increase code size, so will check this decision later based on the requirement.
Jagan, On 2019/8/26 上午4:14, Jagan Teki wrote: > On Mon, Aug 5, 2019 at 6:13 PM Kever Yang <kever.yang@rock-chips.com> wrote: >> >> On 2019/7/29 下午3:47, Jagan Teki wrote: >>> Disable watchdog for TPL, since there is no support it. >>> >>> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> >>> --- >>> include/configs/rk3399_common.h | 5 +++++ >>> 1 file changed, 5 insertions(+) >>> >>> diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h >>> index 8df0180284..67b48e03ba 100644 >>> --- a/include/configs/rk3399_common.h >>> +++ b/include/configs/rk3399_common.h >>> @@ -46,6 +46,11 @@ >>> #define CONFIG_SYS_SDRAM_BASE 0 >>> #define SDRAM_MAX_SIZE 0xf8000000 >>> >>> +#ifdef CONFIG_TPL_BUILD >>> +# undef CONFIG_WDT >>> +# undef CONFIG_WATCHDOG >>> +#endif >> >> It will be better to use CONFIG_${SPL_TPL}WDT in watchdog Makefile, >> >> because all the SoC needs treat this driver separate in TPL/SPL/U-Boot >> proper. > Enabling TPL (via DM or so) cannot be an optimal solutions as of now, I'm not suggesting enable WDT in TPL, but only about how the WDT module is enabled in Makefile system; If useing CONFIG_${SPL_TPL}WDT in Makefile, then the WDT is not enabled in TPL if there is no CONFIG_TPL_WDT, so you don't have to write the 'undef ...' code for CONFIG_TPL_BUILD. Thanks, - Kever > since if it continuously resetting we need to take boot switch based > on bootcount, ie possible with SPL and U-Boot proper now. Making a > boot switch to TPL might increase code size, so will check this > decision later based on the requirement. >
diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h index 8df0180284..67b48e03ba 100644 --- a/include/configs/rk3399_common.h +++ b/include/configs/rk3399_common.h @@ -46,6 +46,11 @@ #define CONFIG_SYS_SDRAM_BASE 0 #define SDRAM_MAX_SIZE 0xf8000000 +#ifdef CONFIG_TPL_BUILD +# undef CONFIG_WDT +# undef CONFIG_WATCHDOG +#endif + #ifndef CONFIG_SPL_BUILD #define ENV_MEM_LAYOUT_SETTINGS \