All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH linux 0/2] Kernel fixes for openbmc
@ 2015-10-16 12:20 OpenBMC Patches
  2015-10-16 12:20 ` [PATCH linux 1/2] arm/mach-aspeed: Enable UART clock divisor OpenBMC Patches
  2015-10-16 12:20 ` [PATCH linux 2/2] arm/aspeed_defconfig: change CONFIG_USB_G_SERIAL to y OpenBMC Patches
  0 siblings, 2 replies; 3+ messages in thread
From: OpenBMC Patches @ 2015-10-16 12:20 UTC (permalink / raw)
  To: openbmc

A couple of changes required build the current tree with the openbmc builder, and boot on a palmetto.

https://github.com/openbmc/linux/pull/3

Jeremy Kerr (2):
  arm/mach-aspeed: Enable UART clock divisor
  arm/aspeed_defconfig: change CONFIG_USB_G_SERIAL to y

 arch/arm/configs/aspeed_defconfig |  2 +-
 arch/arm/mach-aspeed/aspeed.c     | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

-- 
2.6.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH linux 1/2] arm/mach-aspeed: Enable UART clock divisor
  2015-10-16 12:20 [PATCH linux 0/2] Kernel fixes for openbmc OpenBMC Patches
@ 2015-10-16 12:20 ` OpenBMC Patches
  2015-10-16 12:20 ` [PATCH linux 2/2] arm/aspeed_defconfig: change CONFIG_USB_G_SERIAL to y OpenBMC Patches
  1 sibling, 0 replies; 3+ messages in thread
From: OpenBMC Patches @ 2015-10-16 12:20 UTC (permalink / raw)
  To: openbmc

From: Jeremy Kerr <jk@ozlabs.org>

Our .dts assumes that the UART clock is divided by 13, but different
u-boots may leave this bit in different states. Initialise it in
aspeed_early_init explicitly.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
---
 arch/arm/mach-aspeed/aspeed.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/mach-aspeed/aspeed.c b/arch/arm/mach-aspeed/aspeed.c
index 64d379a..9d106b8 100644
--- a/arch/arm/mach-aspeed/aspeed.c
+++ b/arch/arm/mach-aspeed/aspeed.c
@@ -128,6 +128,8 @@ static void udbg_uart_putc(char c)
 
 static void __init aspeed_init_early(void)
 {
+	u32 reg;
+
 	// XXX UART stuff to fix to pinmux & co
 	printk("UART IO MUX...\n");
 	writel(0x02010023, AST_IO(AST_BASE_LPC | 0x9c));
@@ -137,6 +139,14 @@ static void __init aspeed_init_early(void)
 	writel(0xcb000000, AST_IO(AST_BASE_SCU | 0x80));
 	writel(0x00fff0c0, AST_IO(AST_BASE_SCU | 0x84));
 	writel(0x10CC5E80, AST_IO(AST_BASE_SCU | 0x0c));
+
+	/* We enable the UART clock divisor in the SCU's misc control
+	 * register, as the baud rates in aspeed.dtb all assume that the
+	 * divisor is active
+	 */
+	reg = readl(AST_IO(AST_BASE_SCU | 0x2c));
+	writel(reg | 0x00001000, AST_IO(AST_BASE_SCU | 0x2c));
+
 	printk("DONE, MUX=%08x %08x\n", readl(AST_IO(AST_BASE_SCU | 0x80)),
 	       readl(AST_IO(AST_BASE_SCU | 0x84)));
 	printk("CLOCK_CTRL=%08x\n", readl(AST_IO(AST_BASE_SCU)));
-- 
2.6.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH linux 2/2] arm/aspeed_defconfig: change CONFIG_USB_G_SERIAL to y
  2015-10-16 12:20 [PATCH linux 0/2] Kernel fixes for openbmc OpenBMC Patches
  2015-10-16 12:20 ` [PATCH linux 1/2] arm/mach-aspeed: Enable UART clock divisor OpenBMC Patches
@ 2015-10-16 12:20 ` OpenBMC Patches
  1 sibling, 0 replies; 3+ messages in thread
From: OpenBMC Patches @ 2015-10-16 12:20 UTC (permalink / raw)
  To: openbmc

From: Jeremy Kerr <jk@ozlabs.org>

It's the only module present.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
---
 arch/arm/configs/aspeed_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/configs/aspeed_defconfig b/arch/arm/configs/aspeed_defconfig
index dfd5707..fa8e8a1 100644
--- a/arch/arm/configs/aspeed_defconfig
+++ b/arch/arm/configs/aspeed_defconfig
@@ -151,7 +151,7 @@ CONFIG_USB_STORAGE=y
 CONFIG_USB_SERIAL=y
 CONFIG_USB_SERIAL_GENERIC=y
 CONFIG_USB_GADGET=y
-CONFIG_USB_G_SERIAL=m
+CONFIG_USB_G_SERIAL=y
 CONFIG_MMC=y
 CONFIG_MMC_SPI=y
 CONFIG_NEW_LEDS=y
-- 
2.6.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-16 12:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-16 12:20 [PATCH linux 0/2] Kernel fixes for openbmc OpenBMC Patches
2015-10-16 12:20 ` [PATCH linux 1/2] arm/mach-aspeed: Enable UART clock divisor OpenBMC Patches
2015-10-16 12:20 ` [PATCH linux 2/2] arm/aspeed_defconfig: change CONFIG_USB_G_SERIAL to y OpenBMC Patches

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.