All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peng Fan <peng.fan@nxp.com>
To: u-boot@lists.denx.de
Subject: [PATCH 05/13] imx: imx8mn_evk: correct stack/malloc adress
Date: Tue, 29 Dec 2020 01:27:04 +0000	[thread overview]
Message-ID: <DB6PR0402MB27608347F95AFBC44B80A10F88D80@DB6PR0402MB2760.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <AM6PR06MB4691179DB8BDAF17701BF436A6D90@AM6PR06MB4691.eurprd06.prod.outlook.com>

> Subject: RE: [PATCH 05/13] imx: imx8mn_evk: correct stack/malloc adress
> 
> Hello Peng,
> 
> > -----Original Message-----
> > From: U-Boot <u-boot-bounces@lists.denx.de> On Behalf Of Peng Fan
> > (OSS)
> > Sent: Monday, December 28, 2020 1:17 PM
> > To: sbabic at denx.de; festevam at gmail.com
> > Cc: uboot-imx at nxp.com; u-boot at lists.denx.de; Peng Fan
> > <peng.fan@nxp.com>
> > Subject: [PATCH 05/13] imx: imx8mn_evk: correct stack/malloc adress
> >
> > From: Peng Fan <peng.fan@nxp.com>
> >
> > Move SP to end of OCRAM space. Drop MALLOC_F to make it alloc from
> > stack space.
> >
> > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> > ---
> >  drivers/power/power_i2c.c    | 8 ++++----
> >  include/configs/imx8mn_evk.h | 9 +++------
> >  2 files changed, 7 insertions(+), 10 deletions(-)
> >
> > diff --git a/drivers/power/power_i2c.c b/drivers/power/power_i2c.c
> > index 5a0455e119..b67ac2f027 100644
> > --- a/drivers/power/power_i2c.c
> > +++ b/drivers/power/power_i2c.c
> > @@ -23,7 +23,7 @@ int pmic_reg_write(struct pmic *p, u32 reg, u32 val)
> >
> >         if (check_reg(p, reg))
> >                 return -EINVAL;
> > -#if defined(CONFIG_DM_I2C)
> > +#if CONFIG_IS_ENABLED(DM_I2C)
> >         struct udevice *dev;
> >         int ret;
> >
> > @@ -67,7 +67,7 @@ int pmic_reg_write(struct pmic *p, u32 reg, u32 val)
> >                 return -EINVAL;
> >         }
> >
> > -#if defined(CONFIG_DM_I2C)
> > +#if CONFIG_IS_ENABLED(DM_I2C)
> >         return dm_i2c_write(dev, reg, buf, pmic_i2c_tx_num);  #else
> >         return i2c_write(pmic_i2c_addr, reg, 1, buf, pmic_i2c_tx_num);
> > @@ -83,7 +83,7 @@ int pmic_reg_read(struct pmic *p, u32 reg, u32 *val)
> >         if (check_reg(p, reg))
> >                 return -EINVAL;
> >
> > -#if defined(CONFIG_DM_I2C)
> > +#if CONFIG_IS_ENABLED(DM_I2C)
> >         struct udevice *dev;
> >
> >         ret = i2c_get_chip_for_busnum(p->bus, pmic_i2c_addr, @@
> -131,7
> > +131,7 @@ int pmic_reg_read(struct pmic *p, u32 reg, u32 *val)  int
> > pmic_probe(struct pmic *p)  {
> >         debug("Bus: %d PMIC:%s probed!\n", p->bus, p->name); -#if
> > defined(CONFIG_DM_I2C)
> > +#if CONFIG_IS_ENABLED(DM_I2C)
> >         struct udevice *dev;
> >         int ret;
> >
> > diff --git a/include/configs/imx8mn_evk.h
> > b/include/configs/imx8mn_evk.h index a6333085fe..61db244e98 100644
> > --- a/include/configs/imx8mn_evk.h
> > +++ b/include/configs/imx8mn_evk.h
> > @@ -20,17 +20,14 @@
> >         (QSPI0_AMBA_BASE +
> > CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
> >
> >  #ifdef CONFIG_SPL_BUILD
> > -#define CONFIG_SPL_STACK               0x95fff0
> > -#define CONFIG_SPL_BSS_START_ADDR      0x00950000
> > -#define CONFIG_SPL_BSS_MAX_SIZE                SZ_8K   /* 8 KB
> */
> > +#define CONFIG_SPL_STACK               0x980000
> > +#define CONFIG_SPL_BSS_START_ADDR      0x950000
> > +#define CONFIG_SPL_BSS_MAX_SIZE                SZ_4K   /* 8 KB
> */
> 
> This does not read right... SZ_4K is 4 KB, while comment says - it's 8 KB.

Thanks, I'll fix in v2.

Thanks,
Peng.

> 
> >  #define CONFIG_SYS_SPL_MALLOC_START    0x42200000
> >  #define CONFIG_SYS_SPL_MALLOC_SIZE     SZ_512K /* 512 KB */
> >  #define CONFIG_SYS_ICACHE_OFF
> >  #define CONFIG_SYS_DCACHE_OFF
> >
> > -/* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
> > -#define CONFIG_MALLOC_F_ADDR           0x00940000
> > -
> >  /* For RAW image gives a error info not panic */  #define
> > CONFIG_SPL_ABORT_ON_RAW_IMAGE
> >
> > --
> > 2.28.0
> 
> -- andrey

  reply	other threads:[~2020-12-29  1:27 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-28 12:16 [PATCH 01/13] imx: imx8mp_evk: enable eth support Peng Fan
2020-12-28 12:16 ` [PATCH 02/13] imx: imx8mn_ddr4_evk: Use CONFIG_TARGET_IMX8MN_DDR4_EVK for DDR4 EVK board Peng Fan
2020-12-28 12:17 ` [PATCH 03/13] imx: ddr: imx8m: add print for DRAM rate Peng Fan
2020-12-28 13:53   ` Adam Ford
2020-12-28 14:01     ` Fabio Estevam
2020-12-28 12:17 ` [PATCH 04/13] imx: ddr: imx8m: Move selfref_en after DDR scrub Peng Fan
2020-12-28 12:17 ` [PATCH 05/13] imx: imx8mn_evk: correct stack/malloc adress Peng Fan
2020-12-28 21:42   ` ZHIZHIKIN Andrey
2020-12-29  1:27     ` Peng Fan [this message]
2020-12-29 12:19   ` Adam Ford
2020-12-30  0:55     ` Peng Fan
2020-12-28 12:17 ` [PATCH 06/13] arm: dts: imx8mn: sync dts from Linux Kernel Peng Fan
2020-12-28 12:17 ` [PATCH 07/13] imx: imx8mn: add i.MX8MN LPDDR4 EVK support Peng Fan
2020-12-28 21:54   ` ZHIZHIKIN Andrey
2020-12-29  1:28     ` Peng Fan
2020-12-28 12:17 ` [PATCH 08/13] imx8m: clock: add type of set_clk_eqos Peng Fan
2020-12-28 12:17 ` [PATCH 09/13] arm: dts: imx8mp: sync dts from Linux Kernel Peng Fan
2020-12-28 12:17 ` [PATCH 10/13] arm: dts: imx8mm: " Peng Fan
2020-12-28 12:17 ` [PATCH 11/13] arm: dts: imx8mq: " Peng Fan
2020-12-28 12:17 ` [PATCH 12/13] imx8m: lowlevel_init: tune alignment Peng Fan
2020-12-28 12:17 ` [PATCH 13/13] imx: imx8m: move CONFIG_SPL_SYS_[I, D]CACHE_OFF to defconfig Peng Fan
2020-12-28 21:34 ` [PATCH 01/13] imx: imx8mp_evk: enable eth support ZHIZHIKIN Andrey
2020-12-28 22:00 ` Fabio Estevam
2020-12-29  1:26   ` Peng Fan

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=DB6PR0402MB27608347F95AFBC44B80A10F88D80@DB6PR0402MB2760.eurprd04.prod.outlook.com \
    --to=peng.fan@nxp.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 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.