public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Minkyu Kang <mk7.kang@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 7/9] arm: exynos: realign the code to allow support for newer 64-bit platforms
Date: Thu, 21 Apr 2016 22:51:56 +0900	[thread overview]
Message-ID: <5718DAFC.7030500@samsung.com> (raw)
In-Reply-To: <CAJuA9aj+MJXCiM1C74ugFFY0Rdr0c=S7o7yV9t1QwHJRP6R_yw@mail.gmail.com>

Hi,

On 18/04/16 23:11, Thomas Abraham wrote:
> Hi Mr. Kang,
> 
> On Mon, Apr 18, 2016 at 4:39 PM, Minkyu Kang <mk7.kang@samsung.com> wrote:
>> Dear Thomas Abraham,
>>
>> On 13/04/16 19:43, Thomas Abraham wrote:
>>> From: Thomas Abraham <thomas.ab@samsung.com>
>>>
>>> The existing Exynos 32-bit platform support needs to be realigned in
>>> order to support newer 64-bit Exynos platforms. The driver model will
>>> be utlized for drivers on the 64-bit Exynos platforms and so some of
>>> the older platform support code would not be required for the newer
>>> 64-bit Exynos platforms.
>>>
>>> Cc: Minkyu Kang <mk7.kang@samsung.com>
>>> Signed-off-by: Thomas Abraham <thomas.ab@samsung.com>
>>> ---
>>>  arch/arm/Kconfig                         |    1 -
>>>  arch/arm/mach-exynos/Kconfig             |   14 ++++++++++++++
>>>  arch/arm/mach-exynos/Makefile            |    7 +++++--
>>>  arch/arm/mach-exynos/include/mach/cpu.h  |    2 +-
>>>  arch/arm/mach-exynos/include/mach/gpio.h |    2 +-
>>>  arch/arm/mach-exynos/soc.c               |    2 ++
>>>  6 files changed, 23 insertions(+), 5 deletions(-)
>>>
>>> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
>>> index b82ec18..ee22a3c 100644
>>> --- a/arch/arm/Kconfig
>>> +++ b/arch/arm/Kconfig
>>> @@ -426,7 +426,6 @@ config TARGET_BCMNSP
>>>
>>>  config ARCH_EXYNOS
>>>       bool "Samsung EXYNOS"
>>> -     select CPU_V7
>>>       select DM
>>>       select DM_SPI_FLASH
>>>       select DM_SERIAL
>>> diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
>>> index a6a7597..acab947 100644
>>> --- a/arch/arm/mach-exynos/Kconfig
>>> +++ b/arch/arm/mach-exynos/Kconfig
>>> @@ -7,30 +7,38 @@ choice
>>>  config TARGET_SMDKV310
>>>       select SUPPORT_SPL
>>>       bool "Exynos4210 SMDKV310 board"
>>> +     select CPU_V7
>>>       select OF_CONTROL
>>>
>>>  config TARGET_TRATS
>>>       bool "Exynos4210 Trats board"
>>> +     select CPU_V7
>>>
>>>  config TARGET_S5PC210_UNIVERSAL
>>>       bool "EXYNOS4210 Universal C210 board"
>>> +     select CPU_V7
>>>
>>>  config TARGET_ORIGEN
>>>       bool "Exynos4412 Origen board"
>>> +     select CPU_V7
>>>       select SUPPORT_SPL
>>>
>>>  config TARGET_TRATS2
>>>       bool "Exynos4412 Trat2 board"
>>> +     select CPU_V7
>>>
>>>  config TARGET_ODROID
>>>       bool "Exynos4412 Odroid board"
>>> +     select CPU_V7
>>>
>>>  config TARGET_ODROID_XU3
>>>       bool "Exynos5422 Odroid board"
>>> +     select CPU_V7
>>>       select OF_CONTROL
>>>
>>>  config TARGET_ARNDALE
>>>       bool "Exynos5250 Arndale board"
>>> +     select CPU_V7
>>>       select CPU_V7_HAS_NONSEC
>>>       select CPU_V7_HAS_VIRT
>>>       select SUPPORT_SPL
>>> @@ -38,32 +46,38 @@ config TARGET_ARNDALE
>>>
>>>  config TARGET_SMDK5250
>>>       bool "SMDK5250 board"
>>> +     select CPU_V7
>>>       select SUPPORT_SPL
>>>       select OF_CONTROL
>>>
>>>  config TARGET_SNOW
>>>       bool "Snow board"
>>> +     select CPU_V7
>>>       select SUPPORT_SPL
>>>       select OF_CONTROL
>>>
>>>  config TARGET_SPRING
>>>       bool "Spring board"
>>> +     select CPU_V7
>>>       select SUPPORT_SPL
>>>       select OF_CONTROL
>>>       select SPL_DISABLE_OF_CONTROL
>>>
>>>  config TARGET_SMDK5420
>>>       bool "SMDK5420 board"
>>> +     select CPU_V7
>>>       select SUPPORT_SPL
>>>       select OF_CONTROL
>>>
>>>  config TARGET_PEACH_PI
>>>       bool "Peach Pi board"
>>> +     select CPU_V7
>>>       select SUPPORT_SPL
>>>       select OF_CONTROL
>>>
>>>  config TARGET_PEACH_PIT
>>>       bool "Peach Pit board"
>>> +     select CPU_V7
>>>       select SUPPORT_SPL
>>>       select OF_CONTROL
>>
>> I think it's better to split to new architecture type for 64bit exynos platform - ARCH_EXYNOS64?
>> What do you think?
> 
> I was infact thinking to avoid adding a new ARCH type as much as
> possible and reuse ARCH_EXYNOS for 64-bit as well. Eventually, the
> code in mach-exynos has to move into respective driver folders
> (atleast for ARM64 platforms) and have as little as possible in
> mach-exynos directory.

I understood what you want.
But I think, we can reuse mach-exynos code even if we make new ARCH type.
And the cpu type should have a dependency with ARCH, not boards.
I don't believe that we should add a cpu type to every boards.
Please consider again.

Thanks,
Minkyu Kang.

  reply	other threads:[~2016-04-21 13:51 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-13 10:43 [U-Boot] [PATCH 0/9] Add support for Espresso7420 board Thomas Abraham
2016-04-13 10:43 ` [U-Boot] [PATCH 1/9] pinctrl: add the DM_UC_FLAG_SEQ_ALIAS flag for numbering the devices Thomas Abraham
2016-04-13 10:43 ` [U-Boot] [PATCH 2/9] pinctrl: Add pinctrl driver support for Exynos7420 SoC Thomas Abraham
2016-04-13 10:43 ` [U-Boot] [PATCH 3/9] clk: fixed_rate: allow driver usage prior to relocation Thomas Abraham
2016-04-20 14:40   ` Simon Glass
2016-04-13 10:43 ` [U-Boot] [PATCH 4/9] clk: exynos: add clock driver for Exynos7420 Soc Thomas Abraham
2016-04-20 14:41   ` Simon Glass
2016-04-23 15:24     ` Thomas Abraham
2016-04-13 10:43 ` [U-Boot] [PATCH 5/9] serial: s5p: get the port id number from the alias of the device node Thomas Abraham
2016-04-20 14:41   ` Simon Glass
2016-04-13 10:43 ` [U-Boot] [PATCH 6/9] serial: s5p: use clock api to get clock rate Thomas Abraham
2016-04-20 14:41   ` Simon Glass
2016-04-13 10:43 ` [U-Boot] [PATCH 7/9] arm: exynos: realign the code to allow support for newer 64-bit platforms Thomas Abraham
2016-04-18 11:09   ` Minkyu Kang
2016-04-18 14:11     ` Thomas Abraham
2016-04-21 13:51       ` Minkyu Kang [this message]
2016-04-23 15:28         ` Thomas Abraham
2016-04-18 16:58   ` [U-Boot] [PATCH v2 " Thomas Abraham
2016-04-20 14:41     ` Simon Glass
2016-04-13 10:43 ` [U-Boot] [PATCH 8/9] arm: exynos: add support for Exynos7420 SoC Thomas Abraham
2016-04-18 17:01   ` [U-Boot] [PATCH v2 " Thomas Abraham
2016-04-20 14:41   ` [U-Boot] [PATCH " Simon Glass
2016-04-23 15:31     ` Thomas Abraham
2016-04-13 10:43 ` [U-Boot] [PATCH 9/9] board: samsung: add initial Espresso7420 board support Thomas Abraham
2016-04-20 14:41   ` Simon Glass
2016-04-23 15:35     ` Thomas Abraham
2016-04-20  9:17 ` [U-Boot] [PATCH 0/9] Add support for Espresso7420 board Alim Akhtar
2016-04-23 16:06   ` Thomas Abraham

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=5718DAFC.7030500@samsung.com \
    --to=mk7.kang@samsung.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox