mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 4/5] drivers: add COMPILE_TEST prompts to some on-by-default drivers
Date: Fri, 8 May 2020 14:34:31 +0200	[thread overview]
Message-ID: <20200508123431.GM5877@pengutronix.de> (raw)
In-Reply-To: <20200508062530.23241-4-a.fatoum@pengutronix.de>

On Fri, May 08, 2020 at 08:25:29AM +0200, Ahmad Fatoum wrote:
> Many clock source and GPIO controller drivers don't have a prompt, but
> are instead default y if their respective platform is enabled. Maintain
> this behavior, but add a prompt for when COMPILE_TEST is enabled, so
> they can be included in test builds.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>  drivers/clocksource/Kconfig | 16 +++++++++-------
>  drivers/gpio/Kconfig        | 12 ++++++++----
>  drivers/pinctrl/Kconfig     |  8 ++++----
>  3 files changed, 21 insertions(+), 15 deletions(-)
> 
> diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
> index 8805cda39e02..bc2aae7ad723 100644
> --- a/drivers/clocksource/Kconfig
> +++ b/drivers/clocksource/Kconfig
> @@ -75,16 +75,18 @@ config CLOCKSOURCE_ATMEL_PIT
>         bool
>  
>  config CLOCKSOURCE_ARM_ARCHITECTED_TIMER
> -	bool
> -	default y
> -	depends on ARM && (CPU_64v8 || CPU_V7)
> +	bool "ARM architected timer clock source" if COMPILE_TEST
> +	default y if ARM && (CPU_64v8 || CPU_V7)
> +	depends on (ARM && (CPU_64v8 || CPU_V7)) || COMPILE_TEST

This driver compiles only on ARM. It uses get_cntpct() which is a
contains inline assembly.

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2020-05-08 12:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-08  6:25 [PATCH 1/5] drivers: explicitly select dependency STMP_DEVICE for i.MX23/28 drivers Ahmad Fatoum
2020-05-08  6:25 ` [PATCH 2/5] common: introduce COMPILE_TEST option for build-testing Ahmad Fatoum
2020-05-08  6:25 ` [PATCH 3/5] drivers: mark first batch of compilable drivers for COMPILE_TEST Ahmad Fatoum
2020-05-08  6:25 ` [PATCH 4/5] drivers: add COMPILE_TEST prompts to some on-by-default drivers Ahmad Fatoum
2020-05-08 12:34   ` Sascha Hauer [this message]
2020-05-08 12:50     ` Sascha Hauer
2020-05-08 13:51       ` Ahmad Fatoum
2020-05-08  6:25 ` [PATCH 5/5] drivers: add COMPILE_TEST prompts for some off-by-default options Ahmad Fatoum
2020-05-08  7:45   ` Ahmad Fatoum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200508123431.GM5877@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox