From: Przemyslaw Marczak <p.marczak@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 01/10 V6] EXYNOS5: Create a common board file
Date: Fri, 08 Nov 2013 10:46:09 +0100 [thread overview]
Message-ID: <527CB2E1.4060109@samsung.com> (raw)
In-Reply-To: <CAPs=JDftY0OZrXgRur1X=1=q+MCDai0a3TiMsYkaJUx3PQ-JyA@mail.gmail.com>
Hi,
On 11/08/2013 10:27 AM, Rajeshwari Birje wrote:
> Hi,
>
>
> On Fri, Nov 8, 2013 at 2:33 PM, Przemyslaw Marczak
> <p.marczak@samsung.com> wrote:
>> Hi,
>>
>>
>> On 11/08/2013 09:37 AM, Rajeshwari Birje wrote:
>>>
>>> Hi Przemyslaw
>>>
>>> On Fri, Nov 8, 2013 at 1:43 PM, Przemyslaw Marczak
>>> <p.marczak@samsung.com> wrote:
>>>>
>>>> Hello Rajeshwari,
>>>>
>>>>
>>>> On 10/29/2013 08:23 AM, Rajeshwari S Shinde wrote:
>>>>>
>>>>>
>>>>> Create a common board.c file for all functions which are common across
>>>>> all EXYNOS5 platforms.
>>>>>
>>>>> exynos_init function is provided for platform specific code.
>>>>>
>>>>> Signed-off-by: Rajeshwari S Shinde <rajeshwari.s@samsung.com>
>>>>> Acked-by: Simon Glass <sjg@chromium.org>
>>>>> ---
>>>>> Changes in V2:
>>>>> - None
>>>>> Changes in V3:
>>>>> - None
>>>>> Changes in V4:
>>>>> - Added check for the compilation of MAX77686 pmic.
>>>>> Changes in V5:--
> Regards,
> Rajeshwari Shind
>>>>> - Moved board_eth_init and board_mmc_init in case of
>>>>> device tree support
>>>>> Changes in V6:
>>>>> - None.
>>>>> arch/arm/include/asm/arch-exynos/board.h | 17 ++
>>>>> board/samsung/common/Makefile | 4 +
>>>>> board/samsung/common/board.c | 405
>>>>> +++++++++++++++++++++++++++++++
>>>>> board/samsung/smdk5250/exynos5-dt.c | 361
>>>>> +--------------------------
>>>>> board/samsung/smdk5250/smdk5250.c | 182 +-------------
>>>>> include/configs/exynos5250-dt.h | 2 +
>>>>> 6 files changed, 435 insertions(+), 536 deletions(-)
>>>>> create mode 100644 arch/arm/include/asm/arch-exynos/board.h
>>>>> create mode 100644 board/samsung/common/board.c
>>>>>
>>>>
>>>> The name of exynos5 common file can't be just "board.c" since it is
>>>> common
>>>> only for Exynos5 boards and is placed in Samsung common.
>>>> We have few Exynos4 boards in u-boot and in future we can introduce
>>>> common
>>>> board file for them too.
>>>> So it is better to add some additional word to this file name. This also
>>>> needs to change config name or add checking SOC version in common
>>>> Makefile.
>>>>
>>> Cannot we use the same file even for exynos4 boards.
>>>
>>
>> I'm not sure that you understand my intention.
>>
>> You want to introduce:
>> board/samsung/common/board.c - with only Exynos5 code
>>
>> I mean that it should looks like this, e.g:
>> "board/samsung/common/board_exynos4.c" - common code for all Exynos 4
>> "board/samsung/common/board_exynos5.c" - common code for all Exynos 5
>> since there is some duplicated code in Exynos4 boards that can be moved to
>> one common file in the future.
>> Do you understand my intention now?
>>
> Yes I understood your intention, but had a question cannot we use the
> same file board.c for exynos4 and exynos5 too.
> Since both have most of functions similar like board_init, dram_init,
> board_uart_init and so on.
>
> If u still feel that exynos4 and exynos5 have lots of functions
> different in board/samsung we can create a seperate file. I was hoping
> the same board.c could be reused for exynos4 also.
>
Ah, ok. This is good idea with the one common file. Then we will have
board files with strict board dependent functions. So I don't have any
objections jet.
Regards,
--
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
p.marczak at samsung.com
next prev parent reply other threads:[~2013-11-08 9:46 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-29 7:23 [U-Boot] [PATCH 00/10 V6] EXYNOS5420: Add SMDK5420 board support Rajeshwari S Shinde
2013-10-29 7:23 ` [U-Boot] [PATCH 01/10 V6] EXYNOS5: Create a common board file Rajeshwari S Shinde
2013-11-08 8:13 ` Przemyslaw Marczak
2013-11-08 8:37 ` Rajeshwari Birje
2013-11-08 9:03 ` Przemyslaw Marczak
2013-11-08 9:27 ` Rajeshwari Birje
2013-11-08 9:46 ` Przemyslaw Marczak [this message]
2013-11-08 9:52 ` Rajeshwari Birje
2013-10-29 7:23 ` [U-Boot] [PATCH 02/10 V6] Exynos5420: Add base addresses for 5420 Rajeshwari S Shinde
2013-11-13 3:20 ` Minkyu Kang
2013-10-29 7:23 ` [U-Boot] [PATCH 03/10 V6] Exynos5420: Add clock initialization " Rajeshwari S Shinde
2013-11-13 2:45 ` Minkyu Kang
2013-11-13 11:17 ` Rajeshwari Birje
2013-11-14 1:56 ` Minkyu Kang
2013-10-29 7:23 ` [U-Boot] [PATCH 04/10 V6] Exynos5420: Add DDR3 " Rajeshwari S Shinde
2013-11-13 3:24 ` Minkyu Kang
2013-10-29 7:23 ` [U-Boot] [PATCH 05/10 V6] Exynos5420: Add support for 5420 in pinmux and gpio Rajeshwari S Shinde
2013-11-13 3:01 ` Minkyu Kang
2013-11-13 6:04 ` Rajeshwari Birje
2013-11-13 6:08 ` Rajeshwari Birje
2013-11-14 2:46 ` Minkyu Kang
2013-10-29 7:23 ` [U-Boot] [PATCH 06/10 V6] Exynos5420: Add base patch for SMDK5420 Rajeshwari S Shinde
2013-11-13 3:09 ` Minkyu Kang
2013-10-29 7:23 ` [U-Boot] [PATCH 07/10 V6] DTS: Add dts support " Rajeshwari S Shinde
2013-11-13 3:17 ` Minkyu Kang
2013-11-13 4:26 ` Rajeshwari Birje
2013-11-14 2:01 ` Minkyu Kang
2013-11-15 2:32 ` Rajeshwari Birje
2013-10-29 7:23 ` [U-Boot] [PATCH 08/10 V6] Config: Add initial config " Rajeshwari S Shinde
2013-11-13 3:31 ` Minkyu Kang
2013-10-29 7:23 ` [U-Boot] [PATCH 09/10 V6] SPL: EXYNOS: Prepare for variable size SPL support Rajeshwari S Shinde
2013-10-29 7:23 ` [U-Boot] [PATCH 10/10 V6] DWMMC: SMDK5420: Disable SMU for eMMC Rajeshwari S Shinde
2013-10-29 10:24 ` Jaehoon Chung
2013-10-31 7:50 ` Pantelis Antoniou
2013-10-31 8:42 ` [U-Boot] [PATCH 00/10 V6] EXYNOS5420: Add SMDK5420 board support Rajeshwari Birje
2013-11-06 11:42 ` Rajeshwari Birje
2013-11-07 1:32 ` Minkyu Kang
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=527CB2E1.4060109@samsung.com \
--to=p.marczak@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