From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/5] spl: fdt: support for fdt fixup for falcon boot
Date: Tue, 18 Apr 2017 15:35:18 +0200 [thread overview]
Message-ID: <20170418153518.52f79d16@jawa> (raw)
In-Reply-To: <1492516647-26840-5-git-send-email-ravibabu@ti.com>
Hi Ravi,
> Adding support for fdt fixup to update the
> memory node in device tree for falcon boot.
>
> This is needed for single stage or falcon
> bootmode, to pass memory configuration to
> kernel through DT memory node.
>
> Signed-off-by: Ravi Babu <ravibabu@ti.com>
> ---
> arch/arm/lib/Makefile | 1 +
> arch/arm/lib/bootm-fdt.c | 7 ++++++-
> common/Makefile | 2 +-
> 3 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile
> index 6e96cfb..53d4ed2 100644
> --- a/arch/arm/lib/Makefile
> +++ b/arch/arm/lib/Makefile
> @@ -33,6 +33,7 @@ obj-$(CONFIG_SYS_L2_PL310) += cache-pl310.o
> else
> obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
> obj-$(CONFIG_SPL_FRAMEWORK) += zimage.o
> +obj-$(CONFIG_OF_LIBFDT) += bootm-fdt.o
> endif
> obj-$(CONFIG_$(SPL_)USE_ARCH_MEMSET) += memset.o
> obj-$(CONFIG_$(SPL_)USE_ARCH_MEMCPY) += memcpy.o
> diff --git a/arch/arm/lib/bootm-fdt.c b/arch/arm/lib/bootm-fdt.c
> index d84789c..eaa817b 100644
> --- a/arch/arm/lib/bootm-fdt.c
> +++ b/arch/arm/lib/bootm-fdt.c
> @@ -27,8 +27,10 @@ DECLARE_GLOBAL_DATA_PTR;
>
> int arch_fixup_fdt(void *blob)
> {
> + int ret = 0;
> +#if defined(CONFIG_ARMV7_NONSEC) || defined(CONFIG_OF_LIBFDT)
> bd_t *bd = gd->bd;
> - int bank, ret;
> + int bank;
> u64 start[CONFIG_NR_DRAM_BANKS];
> u64 size[CONFIG_NR_DRAM_BANKS];
>
> @@ -42,9 +44,11 @@ int arch_fixup_fdt(void *blob)
> #endif
> }
>
> +#ifdef CONFIG_OF_LIBFDT
> ret = fdt_fixup_memory_banks(blob, start, size,
> CONFIG_NR_DRAM_BANKS); if (ret)
> return ret;
> +#endif
>
> #ifdef CONFIG_ARMV8_SPIN_TABLE
> ret = spin_table_update_dt(blob);
> @@ -58,6 +62,7 @@ int arch_fixup_fdt(void *blob)
> if (ret)
> return ret;
> #endif
> +#endif
>
> return 0;
> }
> diff --git a/common/Makefile b/common/Makefile
> index 86225f1..bcd2486 100644
> --- a/common/Makefile
> +++ b/common/Makefile
> @@ -95,7 +95,7 @@ obj-$(CONFIG_SPL_HASH_SUPPORT) += hash.o
> obj-$(CONFIG_ENV_IS_IN_FLASH) += env_flash.o
> obj-$(CONFIG_SPL_YMODEM_SUPPORT) += xyzModem.o
> obj-$(CONFIG_SPL_NET_SUPPORT) += miiphyutil.o
> -obj-$(CONFIG_SPL_OF_TRANSLATE) += fdt_support.o
> +obj-$(CONFIG_SPL_OF_LIBFDT) += fdt_support.o
> ifdef CONFIG_SPL_USB_HOST_SUPPORT
> obj-$(CONFIG_SPL_USB_SUPPORT) += usb.o usb_hub.o
> obj-$(CONFIG_USB_STORAGE) += usb_storage.o
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
next prev parent reply other threads:[~2017-04-18 13:35 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-18 11:57 [U-Boot] [PATCH 0/5] QSPI: Falcon or single stage boot mode support Ravi Babu
2017-04-18 11:57 ` [U-Boot] [PATCH 1/5] spl: reorder the assignment of board info to global data Ravi Babu
2017-04-18 13:25 ` Lukasz Majewski
2017-04-18 13:42 ` Tom Rini
2017-05-12 17:18 ` [U-Boot] [U-Boot, " Tom Rini
2017-08-03 0:53 ` York Sun
2017-04-18 11:57 ` [U-Boot] [PATCH 2/5] arch: arm: omap: Declare size of ddr very early Ravi Babu
2017-04-18 13:33 ` Lukasz Majewski
2017-04-18 14:09 ` B, Ravi
2017-04-20 2:08 ` Lokesh Vutla
2017-05-12 17:18 ` [U-Boot] [U-Boot, " Tom Rini
2017-04-18 11:57 ` [U-Boot] [PATCH 3/5] qspi: dra7xx: enable qspi-boot for dra7x paltform Ravi Babu
2017-04-18 13:33 ` Lukasz Majewski
2017-05-12 17:18 ` [U-Boot] [U-Boot, " Tom Rini
2017-04-18 11:57 ` [U-Boot] [PATCH 4/5] spl: fdt: support for fdt fixup for falcon boot Ravi Babu
2017-04-18 13:35 ` Lukasz Majewski [this message]
2017-05-12 17:19 ` [U-Boot] [U-Boot, " Tom Rini
2017-04-18 11:57 ` [U-Boot] [PATCH 5/5] boot: fdt: fixup the memory dt nodes " Ravi Babu
2017-04-18 13:25 ` Lukasz Majewski
2017-04-18 14:05 ` B, Ravi
2017-04-20 1:54 ` Lokesh Vutla
2017-05-12 17:19 ` [U-Boot] [U-Boot, " Tom Rini
2017-08-02 19:10 ` York Sun
2017-08-02 19:32 ` Tom Rini
2017-08-26 11:50 ` Jagan Teki
2017-08-28 16:47 ` York Sun
2017-08-29 19:29 ` Jagan Teki
2017-08-29 20:21 ` York Sun
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=20170418153518.52f79d16@jawa \
--to=lukma@denx.de \
--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