From: Przemyslaw Marczak <p.marczak@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 03/14] exynos4/4x12: cpu: add extra gpio base addresses
Date: Tue, 28 Oct 2014 08:22:23 +0100 [thread overview]
Message-ID: <544F442F.3090103@samsung.com> (raw)
In-Reply-To: <CAPnjgZ11JQOsBYa1rPoq9CYF=HtQF+tDQbXhpvetNShiA22+iw@mail.gmail.com>
Hello Simon,
On 10/28/2014 02:10 AM, Simon Glass wrote:
> Hi Przemyslaw,
>
> On 24 October 2014 09:44, Przemyslaw Marczak <p.marczak@samsung.com> wrote:
>> After remove the offsets in Exynos4/4x12 gpio enums, an addidional gpio base
>
> additional
>
ok :)
>> addresses are required.
>>
>> Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
>> ---
>> arch/arm/include/asm/arch-exynos/cpu.h | 9 +++++++++
>> 1 file changed, 9 insertions(+)
>>
>> diff --git a/arch/arm/include/asm/arch-exynos/cpu.h b/arch/arm/include/asm/arch-exynos/cpu.h
>> index ba71714..78aceef 100644
>> --- a/arch/arm/include/asm/arch-exynos/cpu.h
>> +++ b/arch/arm/include/asm/arch-exynos/cpu.h
>> @@ -29,6 +29,8 @@
>> #define EXYNOS4_MIU_BASE 0x10600000
>> #define EXYNOS4_ACE_SFR_BASE 0x10830000
>> #define EXYNOS4_GPIO_PART2_BASE 0x11000000
>> +#define EXYNOS4_GPIO_PART2_0 0x11000000 /* GPJ0 */
>> +#define EXYNOS4_GPIO_PART2_1 0x11000c00 /* GPX0 */
>> #define EXYNOS4_GPIO_PART1_BASE 0x11400000
>> #define EXYNOS4_FIMD_BASE 0x11C00000
>> #define EXYNOS4_MIPI_DSIM_BASE 0x11C80000
>> @@ -70,7 +72,14 @@
>> #define EXYNOS4X12_GPIO_PART4_BASE 0x106E0000
>> #define EXYNOS4X12_ACE_SFR_BASE 0x10830000
>> #define EXYNOS4X12_GPIO_PART2_BASE 0x11000000
>> +#define EXYNOS4X12_GPIO_PART2_0 0x11000000
>> +#define EXYNOS4X12_GPIO_PART2_1 0x11000040 /* GPK0 */
>> +#define EXYNOS4X12_GPIO_PART2_2 0x11000260 /* GPM0 */
>> +#define EXYNOS4X12_GPIO_PART2_3 0x11000c00 /* GPX0 */
>> #define EXYNOS4X12_GPIO_PART1_BASE 0x11400000
>> +#define EXYNOS4X12_GPIO_PART1_0 0x11400000 /* GPA0 */
>> +#define EXYNOS4X12_GPIO_PART1_1 0x11400180 /* GPF0 */
>> +#define EXYNOS4X12_GPIO_PART1_2 0x11400240 /* GPJ0 */
>
> Why not just number them 0 to 7? It would be simpler.
>
> Also what are these actually used for now? Are they used in SPL perhaps?
>
> Regards,
> Simon
>
I introduced those sub parts because the main base addresses can be used
by macro samsung_get_base..., so this not require to change each call in
the code, and this is equal to the SOC documentation. Part is a
documented base address. And the sub-part is only a hack for the gpio.
The non-dm gpio calls are used by the spl and of course very early by
the pinmux, so we must be sure that the numbering is right.
This hack can be easy removed in the future, when dm be available earlier.
Best regards,
--
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
p.marczak at samsung.com
next prev parent reply other threads:[~2014-10-28 7:22 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-24 15:44 [U-Boot] [PATCH 00/14] Set of fixes for Exynos4xxx boards Przemyslaw Marczak
2014-10-24 15:44 ` [U-Boot] [PATCH 01/14] mmc: s5p: set SD detection pin as input Przemyslaw Marczak
2014-10-28 1:01 ` Simon Glass
2014-10-28 1:15 ` Simon Glass
2014-10-28 1:28 ` Simon Glass
2014-10-28 5:14 ` Jaehoon Chung
2014-10-28 7:15 ` Przemyslaw Marczak
2014-10-24 15:44 ` [U-Boot] [PATCH 02/14] exynos: common: enable generic fs operations Przemyslaw Marczak
2014-10-28 1:09 ` Simon Glass
2014-10-28 1:28 ` Simon Glass
2014-10-24 15:44 ` [U-Boot] [PATCH 03/14] exynos4/4x12: cpu: add extra gpio base addresses Przemyslaw Marczak
2014-10-28 1:10 ` Simon Glass
2014-10-28 7:22 ` Przemyslaw Marczak [this message]
2014-10-24 15:44 ` [U-Boot] [PATCH 04/14] exynos4/4x12: gpio: use gpio extra " Przemyslaw Marczak
2014-10-28 1:10 ` Simon Glass
2014-10-28 7:24 ` Przemyslaw Marczak
2014-10-24 15:45 ` [U-Boot] [PATCH 05/14] exynos4412: dts: fix bad gpio order in pinctrl Przemyslaw Marczak
2014-10-28 1:11 ` Simon Glass
2014-10-28 1:29 ` Simon Glass
2014-10-24 15:45 ` [U-Boot] [PATCH 06/14] exynos4412: dts: adjust pinctrl-uboot to changed gpio order Przemyslaw Marczak
2014-10-28 1:11 ` Simon Glass
2014-10-28 1:29 ` Simon Glass
2014-10-24 15:45 ` [U-Boot] [PATCH 07/14] exynos4210: dts: fix gpio offset in pinctrl-uboot Przemyslaw Marczak
2014-10-28 1:11 ` Simon Glass
2014-10-28 1:29 ` Simon Glass
2014-10-24 15:45 ` [U-Boot] [PATCH 08/14] universal: request soft i2c gpio Przemyslaw Marczak
2014-10-28 1:12 ` Simon Glass
2014-10-28 1:29 ` Simon Glass
2014-10-24 15:45 ` [U-Boot] [PATCH 08/14] universal: request soft i2c/spi gpio Przemyslaw Marczak
2014-10-24 15:53 ` Przemyslaw Marczak
2014-10-24 15:45 ` [U-Boot] [PATCH 09/14] universal: dts: adjust gpio numbers to new api Przemyslaw Marczak
2014-10-28 1:12 ` Simon Glass
2014-10-28 1:29 ` Simon Glass
2014-10-24 15:45 ` [U-Boot] [PATCH 10/14] trats: " Przemyslaw Marczak
2014-10-28 1:12 ` Simon Glass
2014-10-28 1:29 ` Simon Glass
2014-10-24 15:45 ` [U-Boot] [PATCH 11/14] trats2: dts: adjust gpio numbers after gpio rework Przemyslaw Marczak
2014-10-28 1:12 ` Simon Glass
2014-10-28 1:29 ` Simon Glass
2014-10-24 15:45 ` [U-Boot] [PATCH 12/14] odroid: dts: adjust sd cd-gpios for SD Card Przemyslaw Marczak
2014-10-28 1:12 ` Simon Glass
2014-10-28 1:29 ` Simon Glass
2014-10-24 15:45 ` [U-Boot] [PATCH 13/14] odroid: dts: fix name of included dtsi Przemyslaw Marczak
2014-10-28 1:12 ` Simon Glass
2014-10-28 1:29 ` Simon Glass
2014-10-24 15:45 ` [U-Boot] [PATCH 14/14] odroid: adjust gpio calls to dm gpio api Przemyslaw Marczak
2014-10-28 1:13 ` Simon Glass
2014-10-28 7:27 ` Przemyslaw Marczak
2014-10-27 9:24 ` [U-Boot] [PATCH 00/14] Set of fixes for Exynos4xxx boards Przemyslaw Marczak
2014-10-27 18:48 ` Simon Glass
2014-10-28 1:31 ` Simon Glass
2014-10-28 7:33 ` Przemyslaw Marczak
2014-10-28 16:31 ` [U-Boot] [PATCH 1/3] exynos4/4x12: cpu: add extra gpio base addresses Przemyslaw Marczak
2014-10-28 16:31 ` [U-Boot] [PATCH 2/3] exynos4/4x12: gpio: use gpio extra " Przemyslaw Marczak
2014-10-29 2:59 ` Simon Glass
2014-10-30 13:54 ` Minkyu Kang
2014-11-04 9:29 ` Przemyslaw Marczak
2014-11-04 10:50 ` Minkyu Kang
2014-10-28 16:31 ` [U-Boot] [PATCH 3/3] odroid: adjust gpio calls to dm gpio api Przemyslaw Marczak
2014-10-29 2:58 ` Simon Glass
2014-10-30 13:54 ` Minkyu Kang
2014-10-28 16:40 ` [U-Boot] [PATCH 1/3] exynos4/4x12: cpu: add extra gpio base addresses Przemyslaw Marczak
2014-10-29 2:59 ` Simon Glass
2014-10-30 13:54 ` 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=544F442F.3090103@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