From: Stefan Agner <stefan@agner.ch>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] imx: introduce CONFIG_GPT_TIMER
Date: Fri, 05 Jan 2018 15:00:56 +0100 [thread overview]
Message-ID: <e704a41934cf500fa73020e5e48f52d3@agner.ch> (raw)
In-Reply-To: <20180102004328.26325-2-stefan@agner.ch>
On 2018-01-02 01:43, Stefan Agner wrote:
> Introduce a new config symbol to select the i.MX
> General Purpose Timer (GPT).
>
> Signed-off-by: Stefan Agner <stefan@agner.ch>
> ---
>
> arch/arm/mach-imx/Kconfig | 3 +++
> arch/arm/mach-imx/Makefile | 3 ++-
> arch/arm/mach-imx/mx5/Kconfig | 1 +
> arch/arm/mach-imx/mx6/Kconfig | 1 +
> 4 files changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> index 653819123c..3aec89d440 100644
> --- a/arch/arm/mach-imx/Kconfig
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -10,6 +10,9 @@ config ROM_UNIFIED_SECTIONS
> config SYSCOUNTER_TIMER
> bool
>
> +config GPT_TIMER
> + bool
> +
> config IMX_RDC
> bool "i.MX Resource domain controller driver"
> depends on ARCH_MX6 || ARCH_MX7
> diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile
> index d77c10e176..9322c1ce83 100644
> --- a/arch/arm/mach-imx/Makefile
> +++ b/arch/arm/mach-imx/Makefile
> @@ -11,7 +11,8 @@ ifeq ($(SOC),$(filter $(SOC),mx25 mx35 mx5 mx6 mx7 vf610))
> obj-y = iomux-v3.o
> endif
> ifeq ($(SOC),$(filter $(SOC),mx5 mx6))
> -obj-y += timer.o cpu.o speed.o
> +obj-y += cpu.o speed.o
> +obj-$(CONFIG_GPT_TIMER) += timer.o
> obj-$(CONFIG_SYS_I2C_MXC) += i2c-mxv7.o
> endif
> ifeq ($(SOC),$(filter $(SOC),mx7 mx6 mxs))
> diff --git a/arch/arm/mach-imx/mx5/Kconfig b/arch/arm/mach-imx/mx5/Kconfig
> index 250194b623..735cd240f1 100644
> --- a/arch/arm/mach-imx/mx5/Kconfig
> +++ b/arch/arm/mach-imx/mx5/Kconfig
> @@ -1,6 +1,7 @@
> if ARCH_MX5
>
> config MX5
> + GPT_TIMER
Just realized, this does not work, select missing. Will send v2.
--
Stefan
> bool
> default y
>
> diff --git a/arch/arm/mach-imx/mx6/Kconfig b/arch/arm/mach-imx/mx6/Kconfig
> index 752471fb72..1af60df8d8 100644
> --- a/arch/arm/mach-imx/mx6/Kconfig
> +++ b/arch/arm/mach-imx/mx6/Kconfig
> @@ -9,6 +9,7 @@ config MX6_SMP
>
> config MX6
> select ARM_ERRATA_743622 if !MX6UL && !MX6ULL
> + select GPT_TIMER
> bool
> default y
> imply CMD_FUSE
next prev parent reply other threads:[~2018-01-05 14:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-02 0:43 [U-Boot] [PATCH 1/3] imx: move CONFIG_SYSCOUNTER_TIMER to Kconfig Stefan Agner
2018-01-02 0:43 ` [U-Boot] [PATCH 2/3] imx: introduce CONFIG_GPT_TIMER Stefan Agner
2018-01-05 12:37 ` Fabio Estevam
2018-01-05 14:00 ` Stefan Agner [this message]
2018-01-02 0:43 ` [U-Boot] [PATCH 3/3] imx: initialize and use generic timer on i.MX 6UL/ULL Stefan Agner
2018-01-05 12:40 ` Fabio Estevam
2018-01-05 14:01 ` Stefan Agner
2018-01-05 14:04 ` Fabio Estevam
2018-01-05 10:26 ` [U-Boot] [PATCH 1/3] imx: move CONFIG_SYSCOUNTER_TIMER to Kconfig Stefan Agner
2018-01-05 13:25 ` Stefano Babic
2018-01-05 12:36 ` Fabio Estevam
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=e704a41934cf500fa73020e5e48f52d3@agner.ch \
--to=stefan@agner.ch \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.