From patchwork Mon Aug 26 18:21:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 837 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E04DB3F0E1 for ; Mon, 26 Aug 2019 20:21:35 +0200 (CEST) Received: by mail-oi1-f198.google.com with SMTP id d63sf5966754oib.5 for ; Mon, 26 Aug 2019 11:21:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1566843695; cv=pass; d=google.com; s=arc-20160816; b=M1kUaZsYo7YIv4hQ5e9D4FqHYlkeuXxs3KHqm2Ddabbk9HBbDmD2ieAEscKGgUuhtd FJFpR7kKKOXmQBiP4OjAjahcptl32uDFZ+WuLQUiGB2pyxm3cqGvZsjIl9Hj++uiVANY QnYDQINRwJpPwqjO4Lo7BSPpDJF0bb1HKeB1UVGXVU+1jsPeHatjRmzbtwlkQhVrkbaY enSgkp/HiN+GsUnsyBzsRrloY8//aYyI2Q3+FYs7PVEi6CNvJTqEHL9bpAA9APbkrOCO DplXbYlJKxMS7cJkLu+58pM04Mpar4mPe1UPR8XXjqByqNw69zJ3bsBvawhWZO4tfFhs BXqQ== 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=nQmJJLbcr69LOhdB9fo+YYq3FKpODdgPncK9MfShm0Y=; b=IDbr9IfG2CIk4D71Sn0ItWJQoadzxWC8ka1mUSuZ/j9Yg7xZM778hJMM/NH3lfh1J6 fMaLaYWfMEPLyr+U4TFE3WlJG5x1jf1yvtNXGcyeIr/haBXWDZ7HqYveJdGJgguePtSa Ge9sexC/+5wOpGZxDM+DNjm4DsKftbq/GpYfEA++flw1vt9AqcnLokW0hCI3zL0oQasP 82GJKgZxf7wmykXsjJN4+v09AhSSon5qEE/kkheIhfguDJJYmHZN9kVMoBopK2gcoPHk K7irCLi8RMoaOtB4EvJEetiL9KK8q8OIxXzcunCCFUoEAcdWtBrqLEQ6vgMnMWMLf2vD LrFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=US81vCc5; 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=nQmJJLbcr69LOhdB9fo+YYq3FKpODdgPncK9MfShm0Y=; b=GTfCRn+2CnX/oypZs+eaUEyy2wHcyrLgHUJBzvxllKjZcRYvtzMDGPiGKKJM2r7uVp ljRC5gi7lpf/X1HhPBGcojtZYEueytnKcp5H+/gkxIyIzJyMUn6H0LDgTLeFahECLTWZ 2ExlzY9RtqdevshAJlofWzNvYFBkkd1CtpyYU= 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=nQmJJLbcr69LOhdB9fo+YYq3FKpODdgPncK9MfShm0Y=; b=BVgOxgEBafrwPWqz+fRFpZNnpluYHaWhjxvo08iNIOhqLLw7P4xtrwL78wrqVO9m7T eSVrr9/tki9dzq8vIG6zyhIYdTtMOzI+JS6se6lJVbnrBtoBlrVKbaAyTGjBhja47+1+ MC+0OOfCxMkAvOYjd42dgTGeSLgTPlhDGh87XW0bJJUpuB+HObU/I94IHjzQQngo0uc6 uDAof7A78eVhDPvRyvE59seN5ZzbxLuxPbbZNy4335wY8oFCQgeFGHhmlz3YUC5/jmAa q1eq16kdPyL2yPhT520KkuSK+JCVeGFaWJooEdjpyi6bbBSrZPFPff3IIfN/3+4+isJU 7LoA== X-Gm-Message-State: APjAAAVIdXAHV/l32w7DDFQTUAOB0JuSSHVXQfilBS2Vi9DQ1Un80agP CLjDFkhbBEjClRjFKJXXScadofW2 X-Google-Smtp-Source: APXvYqzjH3gkHSbOFmfdXbNtntd04agUK1GC73ymV7r992NBvDnTLDLUwBh1b1Kksl40YwkiF9NlNA== X-Received: by 2002:a9d:7092:: with SMTP id l18mr2832195otj.217.1566843694913; Mon, 26 Aug 2019 11:21:34 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a9d:b8b:: with SMTP id 11ls510989oth.6.gmail; Mon, 26 Aug 2019 11:21:34 -0700 (PDT) X-Received: by 2002:a9d:774d:: with SMTP id t13mr10517998otl.277.1566843694492; Mon, 26 Aug 2019 11:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566843694; cv=none; d=google.com; s=arc-20160816; b=pdzDhWswRyWScokteV2508fCjg4MfOrahjwj5HemxdinhAx/ekjOi7jtPJdPzRibhn HylEjzmNLH38vZ00U1tIwjUDISyw2xHC6RwvH7RdhIZkUU8rcoVTX/4AikihRib6nDTI 6aNseAQ+hXEooMsK1GNurBbyZcyXFMV7FTJKfsTdRdHio+Vs3rlhJnmRAuE/H1/zclBL WTlX/VhqkWf+xgm/rpk9B6qHSTSTH7V7wEz3X/PCedivtGEMyxonu+alzOXgCly9pLrv Dg9NR/mMhUB3pqrTmGie0G4toe7GQalWSYqglk3m9pVeF05tEikpTMcWvqd6qUL9s7Bj b2Ag== 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=x7hpSiGKoa+pKinmnYoEJnOjDHqswnX4hTwS5+hoHIQ=; b=rT5mrZVJAaIMhgIbKCxEVfmNDq8wAdOgxB7u0iMx42X9Sx3zbd3qGjZ7nnhm5OHrZb G+hGyQjnjA0Mg5+0EwNdyEIYhzDMKdKxKIVnoTVD9cT0ritxwY3HqLU/Vmmm86oMjmEC b4NRLkcY1352/VR3ll8dI1nvgSlf2yB2KxsCFyCrWTBBLKyJQGZIJBvD1T1q1fSftN8J rGKt3gAKEHcibs6BS6hsSXlXKs80OOskDAv2eAICOdGZ9yIr6zQ9Oq8cQhX2gtCHZIzI 4Comqek506r3/ADJf+zWtDUMGRqSYK2r9ND/WDgAaXvC4ufNeC25UM60z7lrt3spfvC7 PzkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=US81vCc5; 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 16sor5039109oiy.119.2019.08.26.11.21.34 for (Google Transport Security); Mon, 26 Aug 2019 11:21:34 -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:a54:4117:: with SMTP id l23mr9138452oic.37.1566843694137; Mon, 26 Aug 2019 11:21:34 -0700 (PDT) Received: from jagan-XPS-13-9350.attlocal.net ([2600:1700:7430:38e0:d5b0:4823:33c8:5e46]) by smtp.gmail.com with ESMTPSA id c11sm4401461otr.54.2019.08.26.11.21.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 11:21:33 -0700 (PDT) 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 v2 12/16] spl: Add watchdog support fot TPL Date: Mon, 26 Aug 2019 23:51:07 +0530 Message-Id: <20190826182111.30999-13-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190826182111.30999-1-jagan@amarulasolutions.com> References: <20190826182111.30999-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=US81vCc5; 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 support to build watchdog for TPL. Signed-off-by: Jagan Teki --- common/spl/Kconfig | 9 +++++++++ drivers/Makefile | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 660aa66d84..d4c5956b18 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -1370,6 +1370,15 @@ config TPL_YMODEM_SUPPORT means of transmitting U-Boot over a serial line for using in TPL, with a checksum to ensure correctness. +config TPL_WATCHDOG_SUPPORT + bool "Support watchdog drivers" + imply TPL_WDT if !HW_WATCHDOG + help + Enable support for watchdog drivers in TPL. A watchdog is + typically a hardware peripheral which can reset the system when it + detects no activity for a while (such as a software crash). This + enables the drivers in drivers/watchdog as part of an TPL build. + endif # TPL config SPL_AT91_MCK_BYPASS diff --git a/drivers/Makefile b/drivers/Makefile index a4bb5e4975..82f9ac4445 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -23,6 +23,7 @@ obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += mtd/spi/ obj-$(CONFIG_$(SPL_TPL_)SPI_SUPPORT) += spi/ obj-$(CONFIG_$(SPL_TPL_)TIMER) += timer/ obj-$(CONFIG_$(SPL_TPL_)VIRTIO) += virtio/ +obj-$(CONFIG_$(SPL_TPL_)WATCHDOG_SUPPORT) += watchdog/ obj-$(CONFIG_$(SPL_)DM_MAILBOX) += mailbox/ obj-$(CONFIG_$(SPL_)REMOTEPROC) += remoteproc/ obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm/ @@ -53,7 +54,6 @@ obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/ obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/ obj-$(CONFIG_SPL_USB_GADGET) += usb/common/ obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/udc/ -obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/ obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/ obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/ obj-$(CONFIG_SPL_SATA_SUPPORT) += ata/ scsi/