From: Tom Rini Date: Thu, 9 Mar 2017 08:08:10 -0500 Subject: [U-Boot] [PATCH 09/31] ti_armv7_keystone2: Define scratch space in SRAM In-Reply-To: <20170302190435.23212-10-fcooper@ti.com> References: <20170302190435.23212-1-fcooper@ti.com> <20170302190435.23212-10-fcooper@ti.com> Message-ID: <20170309130810.GO19897@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Mar 02, 2017 at 01:04:13PM -0600, Franklin S Cooper Jr wrote: > Scratch space can be used for features such as board detection. Define > an area within SRAM that can be used for this purpose. > > Signed-off-by: Franklin S Cooper Jr > Signed-off-by: Roger Quadros > --- > include/configs/ti_armv7_keystone2.h | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/include/configs/ti_armv7_keystone2.h b/include/configs/ti_armv7_keystone2.h > index 5d4ef58..f76e0a5 100644 > --- a/include/configs/ti_armv7_keystone2.h > +++ b/include/configs/ti_armv7_keystone2.h > @@ -55,6 +55,13 @@ > #define CONFIG_SPL_SPI_LOAD > #define CONFIG_SYS_SPI_U_BOOT_OFFS CONFIG_SPL_PAD_TO > > +/* SRAM scratch space entries */ > +#define SRAM_SCRATCH_SPACE_ADDR CONFIG_SPL_STACK + 0x8 > + > +#define TI_SRAM_SCRATCH_BOARD_EEPROM_START (SRAM_SCRATCH_SPACE_ADDR) > +#define TI_SRAM_SCRATCH_BOARD_EEPROM_END (SRAM_SCRATCH_SPACE_ADDR + 0x200) > +#define KEYSTONE_SRAM_SCRATCH_SPACE_END (TI_SRAM_SCRATCH_BOARD_EEPROM_END) Lets start figuring out a better place for this information that's not in include/configs/ so that when these files go away there'll be one less thing to worry about. There must be some reasonable file that's common to all of the various platforms already to place this in. Thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: