All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Keystone 2 sram scratch address?
@ 2018-10-07 13:59 Tom Rini
  2018-10-08  5:17 ` Lokesh Vutla
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Rini @ 2018-10-07 13:59 UTC (permalink / raw)
  To: u-boot

Hey folks,

So as part of Simon's patch[1] to move CONFIG_SPL_TEXT_BASE to Kconfig
I've run into a problem on Keystone 2 platforms, specifically the HS
variants.  What keystone does is define the SRAM scratch address
relative to the end of our regular SRAM usage for SPL.  This is I think
in part due to the large variation in the SRAM size on these parts
contain and a desire to be able to more easily support the larger sizes.
This is fine on the non-HS parts where we enable and build SPL so can
play these games.  But on the HS parts (or at least k2l_hs_evm
k2e_hs_evm k2hk_hs_evm k2g_hs_evm) we don't use SPL, so once moving
CONFIG_SPL_TEXT_BASE to Kconfig we don't have it defined and a few
places fall apart.  Can we find some constant we could use for
CONFIG_SYS_INIT_SP_ADDR and then for the EEPROM copy we make on K2G?
Thanks!


[1]: https://patchwork.ozlabs.org/patch/976918/
-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181007/652a0fa0/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Keystone 2 sram scratch address?
  2018-10-07 13:59 [U-Boot] Keystone 2 sram scratch address? Tom Rini
@ 2018-10-08  5:17 ` Lokesh Vutla
  2018-10-08 12:16   ` Tom Rini
  0 siblings, 1 reply; 3+ messages in thread
From: Lokesh Vutla @ 2018-10-08  5:17 UTC (permalink / raw)
  To: u-boot

Hi Tom,

On 10/7/2018 7:29 PM, Tom Rini wrote:
> Hey folks,
> 
> So as part of Simon's patch[1] to move CONFIG_SPL_TEXT_BASE to Kconfig
> I've run into a problem on Keystone 2 platforms, specifically the HS
> variants.  What keystone does is define the SRAM scratch address
> relative to the end of our regular SRAM usage for SPL.  This is I think
> in part due to the large variation in the SRAM size on these parts
> contain and a desire to be able to more easily support the larger sizes.
> This is fine on the non-HS parts where we enable and build SPL so can
> play these games.  But on the HS parts (or at least k2l_hs_evm
> k2e_hs_evm k2hk_hs_evm k2g_hs_evm) we don't use SPL, so once moving
> CONFIG_SPL_TEXT_BASE to Kconfig we don't have it defined and a few
> places fall apart.  Can we find some constant we could use for
> CONFIG_SYS_INIT_SP_ADDR and then for the EEPROM copy we make on K2G?

I guess we can use the same constant as SPL_TEXT_BASE for all the platforms?

diff --git a/include/configs/k2hk_evm.h b/include/configs/k2hk_evm.h
index 0b909a1bf6..0ffbc464cc 100644
--- a/include/configs/k2hk_evm.h
+++ b/include/configs/k2hk_evm.h
@@ -40,8 +40,7 @@

 #include <configs/ti_armv7_keystone2.h>

-/* SPL SPI Loader Configuration */
-#define CONFIG_SPL_TEXT_BASE		0x0c200000
+#define CONFIG_SYS_INIT_SP_ADDR		0x0c200000

 #define SPI_MTD_PARTS KEYSTONE_SPI0_MTD_PARTS


Thanks and regards,
Lokesh

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] Keystone 2 sram scratch address?
  2018-10-08  5:17 ` Lokesh Vutla
@ 2018-10-08 12:16   ` Tom Rini
  0 siblings, 0 replies; 3+ messages in thread
From: Tom Rini @ 2018-10-08 12:16 UTC (permalink / raw)
  To: u-boot

On Mon, Oct 08, 2018 at 10:47:06AM +0530, Lokesh Vutla wrote:
> Hi Tom,
> 
> On 10/7/2018 7:29 PM, Tom Rini wrote:
> > Hey folks,
> > 
> > So as part of Simon's patch[1] to move CONFIG_SPL_TEXT_BASE to Kconfig
> > I've run into a problem on Keystone 2 platforms, specifically the HS
> > variants.  What keystone does is define the SRAM scratch address
> > relative to the end of our regular SRAM usage for SPL.  This is I think
> > in part due to the large variation in the SRAM size on these parts
> > contain and a desire to be able to more easily support the larger sizes.
> > This is fine on the non-HS parts where we enable and build SPL so can
> > play these games.  But on the HS parts (or at least k2l_hs_evm
> > k2e_hs_evm k2hk_hs_evm k2g_hs_evm) we don't use SPL, so once moving
> > CONFIG_SPL_TEXT_BASE to Kconfig we don't have it defined and a few
> > places fall apart.  Can we find some constant we could use for
> > CONFIG_SYS_INIT_SP_ADDR and then for the EEPROM copy we make on K2G?
> 
> I guess we can use the same constant as SPL_TEXT_BASE for all the platforms?
> 
> diff --git a/include/configs/k2hk_evm.h b/include/configs/k2hk_evm.h
> index 0b909a1bf6..0ffbc464cc 100644
> --- a/include/configs/k2hk_evm.h
> +++ b/include/configs/k2hk_evm.h
> @@ -40,8 +40,7 @@
> 
>  #include <configs/ti_armv7_keystone2.h>
> 
> -/* SPL SPI Loader Configuration */
> -#define CONFIG_SPL_TEXT_BASE		0x0c200000
> +#define CONFIG_SYS_INIT_SP_ADDR		0x0c200000
> 
>  #define SPI_MTD_PARTS KEYSTONE_SPI0_MTD_PARTS

If there's not a constant we can use for all K2 platforms then, OK, I'll
work-something up based on that idea.  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181008/1c63b043/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-10-08 12:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-07 13:59 [U-Boot] Keystone 2 sram scratch address? Tom Rini
2018-10-08  5:17 ` Lokesh Vutla
2018-10-08 12:16   ` Tom Rini

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.