From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] ARMv8: enable DM in vexpress64 board
Date: Fri, 27 Mar 2015 16:36:03 +0100 [thread overview]
Message-ID: <20150327163603.62e805fb@lilith> (raw)
In-Reply-To: <1422676529-34859-3-git-send-email-fenghua@phytium.com.cn>
Hello fenghua at phytium.com.cn,
On Sat, 31 Jan 2015 11:55:29 +0800, fenghua at phytium.com.cn <fenghua@phytium.com.cn> wrote:
> From: David Feng <fenghua@phytium.com.cn>
>
> Signed-off-by: David Feng <fenghua@phytium.com.cn>
> ---
> board/armltd/vexpress64/vexpress64.c | 13 +++++++++++++
> include/configs/vexpress_aemv8a.h | 14 ++++++++++++--
> 2 files changed, 25 insertions(+), 2 deletions(-)
>
> diff --git a/board/armltd/vexpress64/vexpress64.c b/board/armltd/vexpress64/vexpress64.c
> index 5897318..4171c6e 100644
> --- a/board/armltd/vexpress64/vexpress64.c
> +++ b/board/armltd/vexpress64/vexpress64.c
> @@ -12,9 +12,22 @@
> #include <asm/io.h>
> #include <linux/compiler.h>
> #include <asm/semihosting.h>
> +#include <dm/platdata.h>
> +#include <dm/platform_data/serial_pl01x.h>
>
> DECLARE_GLOBAL_DATA_PTR;
>
> +static const struct pl01x_serial_platdata serial_platdata = {
> + .base = V2M_UART0,
> + .type = TYPE_PL011,
> + .clock = 2400 * 1000,
> +};
> +
> +U_BOOT_DEVICE(vexpress_serials) = {
> + .name = "serial_pl01x",
> + .platdata = &serial_platdata,
> +};
> +
> int board_init(void)
> {
> return 0;
> diff --git a/include/configs/vexpress_aemv8a.h b/include/configs/vexpress_aemv8a.h
> index 027d78b..9b31c2d 100644
> --- a/include/configs/vexpress_aemv8a.h
> +++ b/include/configs/vexpress_aemv8a.h
> @@ -8,6 +8,8 @@
> #ifndef __VEXPRESS_AEMV8A_H
> #define __VEXPRESS_AEMV8A_H
>
> +#define CONFIG_DM
> +
> /* We use generic board for v8 Versatile Express */
> #define CONFIG_SYS_GENERIC_BOARD
>
> @@ -52,7 +54,6 @@
> /* Flat Device Tree Definitions */
> #define CONFIG_OF_LIBFDT
>
> -
> /* SMP Spin Table Definitions */
> #ifdef CONFIG_BASE_FVP
> #define CPU_RELEASE_ADDR (CONFIG_SYS_SDRAM_BASE + 0x03f00000)
> @@ -132,6 +133,7 @@
> #define CONFIG_SYS_MEMTEST_END (V2M_BASE + 0x80000000)
>
> /* Size of malloc() pool */
> +#define CONFIG_SYS_MALLOC_F_LEN 0x2000
> #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (8 << 20))
>
> /* SMSC91C111 Ethernet Configuration */
> @@ -139,11 +141,19 @@
> #define CONFIG_SMC91111_BASE (0x01A000000)
>
> /* PL011 Serial Configuration */
> +#define CONFIG_BAUDRATE 115200
> +#ifdef CONFIG_DM
> +#define CONFIG_DM_SERIAL
> +#define CONFIG_PL01X_SERIAL
> +#else
> +#define CONFIG_SYS_SERIAL0 V2M_UART0
> +#define CONFIG_SYS_SERIAL1 V2M_UART1
> +#define CONFIG_CONS_INDEX 0
> #define CONFIG_PL011_SERIAL
> #define CONFIG_PL011_CLOCK 24000000
> #define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0, \
> (void *)CONFIG_SYS_SERIAL1}
> -#define CONFIG_CONS_INDEX 0
> +#endif
>
> #define CONFIG_BAUDRATE 115200
> #define CONFIG_SYS_SERIAL0 V2M_UART0
> --
> 1.7.9.5
>
>
Applied to u-boot-arm/master, thanks!
Amicalement,
--
Albert.
next prev parent reply other threads:[~2015-03-27 15:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-31 3:55 [U-Boot] [PATCH 0/2] ARMv8: driver model enable fenghua at phytium.com.cn
2015-01-31 3:55 ` [U-Boot] [PATCH 1/2] ARMv8: enable pre-allocation malloc fenghua at phytium.com.cn
2015-01-31 3:55 ` [U-Boot] [PATCH 2/2] ARMv8: enable DM in vexpress64 board fenghua at phytium.com.cn
2015-03-27 15:36 ` Albert ARIBAUD [this message]
2015-04-13 14:50 ` Linus Walleij
2015-04-13 15:15 ` Tom Rini
2015-04-13 20:58 ` Linus Walleij
2015-04-13 22:26 ` Simon Glass
2015-04-15 8:08 ` Linus Walleij
2015-03-27 15:35 ` [U-Boot] [PATCH 1/2] ARMv8: enable pre-allocation malloc Albert ARIBAUD
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=20150327163603.62e805fb@lilith \
--to=albert.u.boot@aribaud.net \
--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.