* [U-Boot] [PATCH 0/2] stv0991: driver model support for pl01x
@ 2014-12-01 20:27 Vikas Manocha
2014-12-01 20:27 ` [U-Boot] [PATCH 1/2] stv0991: increase the initial ram size config Vikas Manocha
2014-12-01 20:27 ` [U-Boot] [PATCH 2/2] dm: stv0991: Move serial to driver model Vikas Manocha
0 siblings, 2 replies; 5+ messages in thread
From: Vikas Manocha @ 2014-12-01 20:27 UTC (permalink / raw)
To: u-boot
This patchset adds driver model support in stv0991 & configures serial
ip to driver model.
Vikas Manocha (2):
stv0991: increase the initial ram size config
dm: stv0991: Move serial to driver model
board/st/stv0991/stv0991.c | 13 +++++++++++++
include/configs/stv0991.h | 19 +++++++++++++------
2 files changed, 26 insertions(+), 6 deletions(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 1/2] stv0991: increase the initial ram size config
2014-12-01 20:27 [U-Boot] [PATCH 0/2] stv0991: driver model support for pl01x Vikas Manocha
@ 2014-12-01 20:27 ` Vikas Manocha
2014-12-09 20:17 ` [U-Boot] [U-Boot, " Tom Rini
2014-12-01 20:27 ` [U-Boot] [PATCH 2/2] dm: stv0991: Move serial to driver model Vikas Manocha
1 sibling, 1 reply; 5+ messages in thread
From: Vikas Manocha @ 2014-12-01 20:27 UTC (permalink / raw)
To: u-boot
It is done to make space available for driver model memory.
Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
---
include/configs/stv0991.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/stv0991.h b/include/configs/stv0991.h
index f95de06..80652a8 100644
--- a/include/configs/stv0991.h
+++ b/include/configs/stv0991.h
@@ -45,7 +45,7 @@
/* MISC */
#define CONFIG_SYS_LOAD_ADDR 0x00000000
-#define CONFIG_SYS_INIT_RAM_SIZE 0x2000
+#define CONFIG_SYS_INIT_RAM_SIZE 0x8000
#define CONFIG_SYS_INIT_RAM_ADDR 0x00190000
#define CONFIG_SYS_INIT_SP_OFFSET \
(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 2/2] dm: stv0991: Move serial to driver model
2014-12-01 20:27 [U-Boot] [PATCH 0/2] stv0991: driver model support for pl01x Vikas Manocha
2014-12-01 20:27 ` [U-Boot] [PATCH 1/2] stv0991: increase the initial ram size config Vikas Manocha
@ 2014-12-01 20:27 ` Vikas Manocha
2014-12-09 20:17 ` [U-Boot] [U-Boot,2/2] " Tom Rini
1 sibling, 1 reply; 5+ messages in thread
From: Vikas Manocha @ 2014-12-01 20:27 UTC (permalink / raw)
To: u-boot
Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
---
board/st/stv0991/stv0991.c | 13 +++++++++++++
include/configs/stv0991.h | 17 ++++++++++++-----
2 files changed, 25 insertions(+), 5 deletions(-)
diff --git a/board/st/stv0991/stv0991.c b/board/st/stv0991/stv0991.c
index 989fb5e..f465699 100644
--- a/board/st/stv0991/stv0991.c
+++ b/board/st/stv0991/stv0991.c
@@ -13,12 +13,25 @@
#include <asm/arch/gpio.h>
#include <netdev.h>
#include <asm/io.h>
+#include <dm/platdata.h>
+#include <dm/platform_data/serial_pl01x.h>
DECLARE_GLOBAL_DATA_PTR;
struct gpio_regs *const gpioa_regs =
(struct gpio_regs *) GPIOA_BASE_ADDR;
+static const struct pl01x_serial_platdata serial_platdata = {
+ .base = 0x80406000,
+ .type = TYPE_PL011,
+ .clock = 2700 * 1000,
+};
+
+U_BOOT_DEVICE(stv09911_serials) = {
+ .name = "serial_pl01x",
+ .platdata = &serial_platdata,
+};
+
#ifdef CONFIG_SHOW_BOOT_PROGRESS
void show_boot_progress(int progress)
{
diff --git a/include/configs/stv0991.h b/include/configs/stv0991.h
index 80652a8..fd9bd63 100644
--- a/include/configs/stv0991.h
+++ b/include/configs/stv0991.h
@@ -28,14 +28,21 @@
(PHYS_SDRAM_1_SIZE - CONFIG_ENV_SIZE)
#define CONFIG_SYS_MAXARGS 16
#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 16 * 1024)
+#define CONFIG_SYS_MALLOC_F_LEN 0x2000
+#define CONFIG_DM
/* serial port (PL011) configuration */
-#define CONFIG_SYS_SERIAL0 0x80406000
-#define CONFIG_PL011_SERIAL
-#define CONFIG_CONS_INDEX 0
#define CONFIG_BAUDRATE 115200
-#define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0}
-#define CONFIG_PL011_CLOCK (2700 * 1000)
+#ifdef CONFIG_DM
+#define CONFIG_DM_SERIAL
+#define CONFIG_PL01X_SERIAL
+#else
+#define CONFIG_SYS_SERIAL0 0x80406000
+#define CONFIG_CONS_INDEX 0
+#define CONFIG_PL011_SERIAL
+#define CONFIG_PL01x_PORTS {(void *)CONFIG_SYS_SERIAL0}
+#define CONFIG_PL011_CLOCK (2700 * 1000)
+#endif
/* user interface */
#define CONFIG_SYS_PROMPT "STV0991> "
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [U-Boot, 1/2] stv0991: increase the initial ram size config
2014-12-01 20:27 ` [U-Boot] [PATCH 1/2] stv0991: increase the initial ram size config Vikas Manocha
@ 2014-12-09 20:17 ` Tom Rini
0 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2014-12-09 20:17 UTC (permalink / raw)
To: u-boot
On Mon, Dec 01, 2014 at 12:27:53PM -0800, Vikas Manocha wrote:
> It is done to make space available for driver model memory.
>
> Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141209/e249a841/attachment.pgp>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [U-Boot,2/2] dm: stv0991: Move serial to driver model
2014-12-01 20:27 ` [U-Boot] [PATCH 2/2] dm: stv0991: Move serial to driver model Vikas Manocha
@ 2014-12-09 20:17 ` Tom Rini
0 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2014-12-09 20:17 UTC (permalink / raw)
To: u-boot
On Mon, Dec 01, 2014 at 12:27:54PM -0800, Vikas Manocha wrote:
> Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141209/532fa66a/attachment.pgp>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-12-09 20:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-01 20:27 [U-Boot] [PATCH 0/2] stv0991: driver model support for pl01x Vikas Manocha
2014-12-01 20:27 ` [U-Boot] [PATCH 1/2] stv0991: increase the initial ram size config Vikas Manocha
2014-12-09 20:17 ` [U-Boot] [U-Boot, " Tom Rini
2014-12-01 20:27 ` [U-Boot] [PATCH 2/2] dm: stv0991: Move serial to driver model Vikas Manocha
2014-12-09 20:17 ` [U-Boot] [U-Boot,2/2] " 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.