diff mbox series

[U-Boot,06/36] rockchip: add IRAM_START_ADDR for all SoCs

Message ID 1522142971-20739-7-git-send-email-kever.yang@rock-chips.com
State Changes Requested
Delegated to: Philipp Tomsich
Headers show
Series rockchip: clean up board file for rockchip SoCs | expand

Commit Message

Kever Yang March 27, 2018, 9:29 a.m. UTC
We add this for get the location for boot device of bootrom.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
---

 arch/arm/mach-rockchip/Kconfig | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

Comments

Philipp Tomsich April 1, 2018, 8:21 p.m. UTC | #1
> We add this for get the location for boot device of bootrom.
> 
> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
> ---
> 
>  arch/arm/mach-rockchip/Kconfig | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 

Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Philipp Tomsich April 1, 2018, 9 p.m. UTC | #2
On Tue, 27 Mar 2018, Kever Yang wrote:

> We add this for get the location for boot device of bootrom.

Your commit message should be specific enough, so the motivation for the 
change, where it fits into the overall architecture and what is changed 
are apparent.

> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

See below for requested changes.

> ---
>
> arch/arm/mach-rockchip/Kconfig | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
> index 5dfe452..98bf935 100644
> --- a/arch/arm/mach-rockchip/Kconfig
> +++ b/arch/arm/mach-rockchip/Kconfig
> @@ -209,6 +209,23 @@ config ROCKCHIP_STIMER_BASE
> 	  The secure timer inited in SPL/TPL in secure word, ARM generic timer
> 	  works after this timer work.
>
> +config ROCKCHIP_IRAM_START_ADDR
> +	hex "Rockchip Secure timer base address"

Huh: copy-and-paste?

> +	default 0xff0e0000 if ROCKCHIP_PX30

See my earlier comment regarding changes specific to the PX30.

> +	default 0x10080000 if ROCKCHIP_RK3036
> +	default 0x10080000 if ROCKCHIP_RK3128
> +	default 0x10080000 if ROCKCHIP_RK3188
> +	default 0x10080000 if ROCKCHIP_RK322X
> +	default 0xff700000 if ROCKCHIP_RK3288
> +	default 0xff091000 if ROCKCHIP_RK3328
> +	default 0xff8c0000 if ROCKCHIP_RK3368
> +	default 0xff8c0000 if ROCKCHIP_RK3399
> +	default 0x10080000 if ROCKCHIP_RV1108
> +	default 0
> +	help
> +	  The IRAM start addr is to locate variant of the boot device from
> +	  bootrom.

The same comment as for the secure timer-base applies here.
This is way to important to have it in Kconfig, where a user can easily 
override.

> +
> config ROCKCHIP_SPL_RESERVE_IRAM
> 	hex "Size of IRAM reserved in SPL"
> 	default 0
>
Kever Yang April 2, 2018, 1:55 a.m. UTC | #3
On 04/02/2018 05:00 AM, Philipp Tomsich wrote:
>
>
> On Tue, 27 Mar 2018, Kever Yang wrote:
>
>> We add this for get the location for boot device of bootrom.
>
> Your commit message should be specific enough, so the motivation for
> the change, where it fits into the overall architecture and what is
> changed are apparent.
>
>> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
>> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
>
> See below for requested changes.
>
>> ---
>>
>> arch/arm/mach-rockchip/Kconfig | 17 +++++++++++++++++
>> 1 file changed, 17 insertions(+)
>>
>> diff --git a/arch/arm/mach-rockchip/Kconfig
>> b/arch/arm/mach-rockchip/Kconfig
>> index 5dfe452..98bf935 100644
>> --- a/arch/arm/mach-rockchip/Kconfig
>> +++ b/arch/arm/mach-rockchip/Kconfig
>> @@ -209,6 +209,23 @@ config ROCKCHIP_STIMER_BASE
>>       The secure timer inited in SPL/TPL in secure word, ARM generic
>> timer
>>       works after this timer work.
>>
>> +config ROCKCHIP_IRAM_START_ADDR
>> +    hex "Rockchip Secure timer base address"
>
> Huh: copy-and-paste?

Sorry, my fault, will fix in next version.

Thanks,
- Kever
>
>> +    default 0xff0e0000 if ROCKCHIP_PX30
>
> See my earlier comment regarding changes specific to the PX30.
>
>> +    default 0x10080000 if ROCKCHIP_RK3036
>> +    default 0x10080000 if ROCKCHIP_RK3128
>> +    default 0x10080000 if ROCKCHIP_RK3188
>> +    default 0x10080000 if ROCKCHIP_RK322X
>> +    default 0xff700000 if ROCKCHIP_RK3288
>> +    default 0xff091000 if ROCKCHIP_RK3328
>> +    default 0xff8c0000 if ROCKCHIP_RK3368
>> +    default 0xff8c0000 if ROCKCHIP_RK3399
>> +    default 0x10080000 if ROCKCHIP_RV1108
>> +    default 0
>> +    help
>> +      The IRAM start addr is to locate variant of the boot device from
>> +      bootrom.
>
> The same comment as for the secure timer-base applies here.
> This is way to important to have it in Kconfig, where a user can
> easily override.
>
>> +
>> config ROCKCHIP_SPL_RESERVE_IRAM
>>     hex "Size of IRAM reserved in SPL"
>>     default 0
>>
>
diff mbox series

Patch

diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index 5dfe452..98bf935 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -209,6 +209,23 @@  config ROCKCHIP_STIMER_BASE
 	  The secure timer inited in SPL/TPL in secure word, ARM generic timer
 	  works after this timer work.
 
+config ROCKCHIP_IRAM_START_ADDR
+	hex "Rockchip Secure timer base address"
+	default 0xff0e0000 if ROCKCHIP_PX30
+	default 0x10080000 if ROCKCHIP_RK3036
+	default 0x10080000 if ROCKCHIP_RK3128
+	default 0x10080000 if ROCKCHIP_RK3188
+	default 0x10080000 if ROCKCHIP_RK322X
+	default 0xff700000 if ROCKCHIP_RK3288
+	default 0xff091000 if ROCKCHIP_RK3328
+	default 0xff8c0000 if ROCKCHIP_RK3368
+	default 0xff8c0000 if ROCKCHIP_RK3399
+	default 0x10080000 if ROCKCHIP_RV1108
+	default 0
+	help
+	  The IRAM start addr is to locate variant of the boot device from
+	  bootrom.
+
 config ROCKCHIP_SPL_RESERVE_IRAM
 	hex "Size of IRAM reserved in SPL"
 	default 0