All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/10] Add support MIPS SEAD-3 Development Platform.
@ 2012-04-07 16:48 Steven J. Hill
  2012-04-07 16:48 ` [PATCH 01/10] MIPS: Add core files for MIPS SEAD-3 development platform Steven J. Hill
                   ` (9 more replies)
  0 siblings, 10 replies; 25+ messages in thread
From: Steven J. Hill @ 2012-04-07 16:48 UTC (permalink / raw)
  To: linux-mips, ralf; +Cc: Steven J. Hill

From: "Steven J. Hill" <sjhill@mips.com>

This patch set adds support for the MIPS Technologies, Inc. SEAD-3
development platform. Please visit <http://www.mips.com/> for more
detailed information.

Steven J. Hill (10):
  MIPS: Add core files for MIPS SEAD-3 development platform.
  MIPS: Changes to configuration files for SEAD-3 platform.
  MIPS: Add support for the M14K core.
  MIPS: Add micro-assembler support for 'ins' and 'ext' instructions.
  MIPS: GIC interrupt changes for M14K and SEAD-3 support.
  MIPS: Code formatting fixes.
  MIPS: Add support for early serial debug and LCD device on SEAD-3.
  MIPS: MIPS32R2 optimisations for pipeline stalls and code size.
  cobalt_lcdfb: LCD panel framebuffer support for SEAD-3 platform.
  usb: host: mips: sead3: USB Host controller support for SEAD-3
    platform.

 arch/mips/Kbuild.platforms                         |    1 +
 arch/mips/Kconfig                                  |   33 +-
 arch/mips/configs/sead3_defconfig                  | 1757 ++++++++++++++++++++
 arch/mips/include/asm/cpu-features.h               |    4 +-
 arch/mips/include/asm/cpu.h                        |    5 +-
 .../include/asm/mach-sead3/cpu-feature-overrides.h |   72 +
 arch/mips/include/asm/mach-sead3/irq.h             |    9 +
 .../include/asm/mach-sead3/kernel-entry-init.h     |   52 +
 arch/mips/include/asm/mach-sead3/war.h             |   25 +
 arch/mips/include/asm/mips-boards/generic.h        |    1 +
 arch/mips/include/asm/mips-boards/sead3int.h       |   67 +
 arch/mips/include/asm/uasm.h                       |   15 +
 arch/mips/kernel/cevt-r4k.c                        |    5 +
 arch/mips/kernel/cpu-probe.c                       |   64 +-
 arch/mips/kernel/early_printk.c                    |   25 +
 arch/mips/kernel/irq-gic.c                         |  168 +-
 arch/mips/mm/c-r4k.c                               |    1 +
 arch/mips/mm/tlbex.c                               |   54 +-
 arch/mips/mm/uasm.c                                |   15 +
 arch/mips/mti-sead3/Makefile                       |   24 +
 arch/mips/mti-sead3/Platform                       |    7 +
 arch/mips/mti-sead3/leds-sead3.c                   |  133 ++
 arch/mips/mti-sead3/sead3-cmdline.c                |   59 +
 arch/mips/mti-sead3/sead3-console.c                |   52 +
 arch/mips/mti-sead3/sead3-display.c                |   90 +
 arch/mips/mti-sead3/sead3-ehci.c                   |   52 +
 arch/mips/mti-sead3/sead3-i2c-dev.c                |   38 +
 arch/mips/mti-sead3/sead3-i2c.c                    |   42 +
 arch/mips/mti-sead3/sead3-init.c                   |  244 +++
 arch/mips/mti-sead3/sead3-int.c                    |  146 ++
 arch/mips/mti-sead3/sead3-lcd.c                    |   55 +
 arch/mips/mti-sead3/sead3-leds.c                   |   91 +
 arch/mips/mti-sead3/sead3-memory.c                 |  178 ++
 arch/mips/mti-sead3/sead3-mtd.c                    |   58 +
 arch/mips/mti-sead3/sead3-net.c                    |   56 +
 arch/mips/mti-sead3/sead3-pic32-bus.c              |  112 ++
 arch/mips/mti-sead3/sead3-pic32-i2c-drv.c          |  441 +++++
 arch/mips/mti-sead3/sead3-platform.c               |   49 +
 arch/mips/mti-sead3/sead3-reset.c                  |   64 +
 arch/mips/mti-sead3/sead3-setup.c                  |   49 +
 arch/mips/mti-sead3/sead3-smtc.c                   |  162 ++
 arch/mips/mti-sead3/sead3-time.c                   |  145 ++
 arch/mips/oprofile/common.c                        |    1 +
 arch/mips/oprofile/op_model_mipsxx.c               |    4 +
 drivers/usb/host/Kconfig                           |    4 +-
 drivers/usb/host/ehci-hcd.c                        |    5 +
 drivers/usb/host/ehci-sead3.c                      |  299 ++++
 drivers/video/Kconfig                              |    2 +-
 drivers/video/cobalt_lcdfb.c                       |   45 +-
 49 files changed, 5029 insertions(+), 51 deletions(-)
 create mode 100644 arch/mips/configs/sead3_defconfig
 create mode 100644 arch/mips/include/asm/mach-sead3/cpu-feature-overrides.h
 create mode 100644 arch/mips/include/asm/mach-sead3/irq.h
 create mode 100644 arch/mips/include/asm/mach-sead3/kernel-entry-init.h
 create mode 100644 arch/mips/include/asm/mach-sead3/war.h
 create mode 100644 arch/mips/include/asm/mips-boards/sead3int.h
 create mode 100644 arch/mips/mti-sead3/Makefile
 create mode 100644 arch/mips/mti-sead3/Platform
 create mode 100644 arch/mips/mti-sead3/leds-sead3.c
 create mode 100644 arch/mips/mti-sead3/sead3-cmdline.c
 create mode 100644 arch/mips/mti-sead3/sead3-console.c
 create mode 100644 arch/mips/mti-sead3/sead3-display.c
 create mode 100644 arch/mips/mti-sead3/sead3-ehci.c
 create mode 100644 arch/mips/mti-sead3/sead3-i2c-dev.c
 create mode 100644 arch/mips/mti-sead3/sead3-i2c.c
 create mode 100644 arch/mips/mti-sead3/sead3-init.c
 create mode 100644 arch/mips/mti-sead3/sead3-int.c
 create mode 100644 arch/mips/mti-sead3/sead3-lcd.c
 create mode 100644 arch/mips/mti-sead3/sead3-leds.c
 create mode 100644 arch/mips/mti-sead3/sead3-memory.c
 create mode 100644 arch/mips/mti-sead3/sead3-mtd.c
 create mode 100644 arch/mips/mti-sead3/sead3-net.c
 create mode 100644 arch/mips/mti-sead3/sead3-pic32-bus.c
 create mode 100644 arch/mips/mti-sead3/sead3-pic32-i2c-drv.c
 create mode 100644 arch/mips/mti-sead3/sead3-platform.c
 create mode 100644 arch/mips/mti-sead3/sead3-reset.c
 create mode 100644 arch/mips/mti-sead3/sead3-setup.c
 create mode 100644 arch/mips/mti-sead3/sead3-smtc.c
 create mode 100644 arch/mips/mti-sead3/sead3-time.c
 create mode 100644 drivers/usb/host/ehci-sead3.c

-- 
1.7.9.6

^ permalink raw reply	[flat|nested] 25+ messages in thread
* [PATCH 09/10] cobalt_lcdfb: LCD panel framebuffer support for SEAD-3 platform.
@ 2012-04-07 16:56 ` Steven J. Hill
  0 siblings, 0 replies; 25+ messages in thread
From: Steven J. Hill @ 2012-04-07 16:56 UTC (permalink / raw)
  To: linux-mips, ralf
  Cc: linux-fbdev, Steven J. Hill, Douglas Leung, Chris Dearman

From: "Steven J. Hill" <sjhill@mips.com>

Add support for LCD panel on MIPS SEAD-3 development platform.

Signed-off-by: Douglas Leung <douglas@mips.com>
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Steven J. Hill <sjhill@mips.com>
---
 drivers/video/Kconfig        |    2 +-
 drivers/video/cobalt_lcdfb.c |   45 +++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 45 insertions(+), 2 deletions(-)

diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index a8a897a..e921a45 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -2210,7 +2210,7 @@ config FB_XILINX
 
 config FB_COBALT
 	tristate "Cobalt server LCD frame buffer support"
-	depends on FB && MIPS_COBALT
+	depends on FB && (MIPS_COBALT || MIPS_SEAD3)
 
 config FB_SH7760
 	bool "SH7760/SH7763/SH7720/SH7721 LCDC support"
diff --git a/drivers/video/cobalt_lcdfb.c b/drivers/video/cobalt_lcdfb.c
index f56699d..eae46f6 100644
--- a/drivers/video/cobalt_lcdfb.c
+++ b/drivers/video/cobalt_lcdfb.c
@@ -1,7 +1,8 @@
 /*
- *  Cobalt server LCD frame buffer driver.
+ *  Cobalt/SEAD3 LCD frame buffer driver.
  *
  *  Copyright (C) 2008  Yoichi Yuasa <yuasa@linux-mips.org>
+ *  Copyright (C) 2012  MIPS Technologies, Inc.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -62,6 +63,7 @@
 #define LCD_CUR_POS(x)		((x) & LCD_CUR_POS_MASK)
 #define LCD_TEXT_POS(x)		((x) | LCD_TEXT_MODE)
 
+#ifdef CONFIG_MIPS_COBALT
 static inline void lcd_write_control(struct fb_info *info, u8 control)
 {
 	writel((u32)control << 24, info->screen_base);
@@ -81,6 +83,47 @@ static inline u8 lcd_read_data(struct fb_info *info)
 {
 	return readl(info->screen_base + LCD_DATA_REG_OFFSET) >> 24;
 }
+#else
+
+#define LCD_CTL			0x00
+#define LCD_DATA		0x08
+#define CPLD_STATUS		0x10
+#define CPLD_DATA		0x18
+
+static inline void cpld_wait(struct fb_info *info)
+{
+	do {
+	} while (readl(info->screen_base + CPLD_STATUS) & 1);
+}
+
+static inline void lcd_write_control(struct fb_info *info, u8 control)
+{
+	cpld_wait(info);
+	writel(control, info->screen_base + LCD_CTL);
+}
+
+static inline u8 lcd_read_control(struct fb_info *info)
+{
+	cpld_wait(info);
+	readl(info->screen_base + LCD_CTL);
+	cpld_wait(info);
+	return readl(info->screen_base + CPLD_DATA) & 0xff;
+}
+
+static inline void lcd_write_data(struct fb_info *info, u8 data)
+{
+	cpld_wait(info);
+	writel(data, info->screen_base + LCD_DATA);
+}
+
+static inline u8 lcd_read_data(struct fb_info *info)
+{
+	cpld_wait(info);
+	readl(info->screen_base + LCD_DATA);
+	cpld_wait(info);
+	return readl(info->screen_base + CPLD_DATA) & 0xff;
+}
+#endif
 
 static int lcd_busy_wait(struct fb_info *info)
 {
-- 
1.7.9.6

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

end of thread, other threads:[~2012-05-11  7:37 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-07 16:48 [PATCH 00/10] Add support MIPS SEAD-3 Development Platform Steven J. Hill
2012-04-07 16:48 ` [PATCH 01/10] MIPS: Add core files for MIPS SEAD-3 development platform Steven J. Hill
2012-04-10  1:03   ` Shinya Kuribayashi
2012-05-07 20:16     ` Hill, Steven
2012-05-08  4:01       ` Shinya Kuribayashi
2012-05-08 11:16       ` Maciej W. Rozycki
2012-05-08 20:38         ` Hill, Steven
2012-05-11  7:37           ` Maciej W. Rozycki
2012-04-07 16:48 ` [PATCH 02/10] MIPS: Changes to configuration files for SEAD-3 platform Steven J. Hill
2012-04-10  1:19   ` Shinya Kuribayashi
2012-04-07 16:48 ` [PATCH 03/10] MIPS: Add support for the M14K core Steven J. Hill
2012-04-07 16:48 ` [PATCH 04/10] MIPS: Add micro-assembler support for 'ins' and 'ext' instructions Steven J. Hill
2012-05-01  0:26   ` Maciej W. Rozycki
2012-05-01  0:51     ` David Daney
2012-05-07  5:18       ` Maciej W. Rozycki
2012-05-07 13:33         ` Hill, Steven
2012-05-01  0:49   ` David Daney
2012-04-07 16:48 ` [PATCH 05/10] MIPS: GIC interrupt changes for M14K and SEAD-3 support Steven J. Hill
2012-04-07 16:48 ` [PATCH 06/10] MIPS: Code formatting fixes Steven J. Hill
2012-04-07 16:48 ` [PATCH 07/10] MIPS: Add support for early serial debug and LCD device on SEAD-3 Steven J. Hill
2012-04-07 16:48 ` [PATCH 08/10] MIPS: MIPS32R2 optimisations for pipeline stalls and code size Steven J. Hill
2012-04-07 16:48 ` [PATCH 09/10] cobalt_lcdfb: LCD panel framebuffer support for SEAD-3 platform Steven J. Hill
2012-04-07 16:48 ` [PATCH 10/10] usb: host: mips: sead3: USB Host controller " Steven J. Hill
2012-04-07 16:56 [PATCH 09/10] cobalt_lcdfb: LCD panel framebuffer " Steven J. Hill
2012-04-07 16:56 ` Steven J. Hill

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.