public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: i2c compile fix for kfr2r09
@ 2009-08-20 13:57 Magnus Damm
  2009-08-20 23:45 ` Paul Mundt
  0 siblings, 1 reply; 2+ messages in thread
From: Magnus Damm @ 2009-08-20 13:57 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm@igel.co.jp>

Fix the kfr2r09 board code so it compiles if CONFIG_I2C=n.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
---

 arch/sh/boards/mach-kfr2r09/setup.c |    7 +++++++
 1 file changed, 7 insertions(+)

--- 0001/arch/sh/boards/mach-kfr2r09/setup.c
+++ work/arch/sh/boards/mach-kfr2r09/setup.c	2009-08-20 12:48:09.000000000 +0900
@@ -219,6 +219,7 @@ static struct platform_device *kfr2r09_d
 #define BSC_CS4WCR 0xfec10030
 #define PORT_MSELCRB 0xa4050182
 
+#ifdef CONFIG_I2C
 static int kfr2r09_usb0_gadget_i2c_setup(void)
 {
 	struct i2c_adapter *a;
@@ -261,6 +262,12 @@ static int kfr2r09_usb0_gadget_i2c_setup
 
 	return 0;
 }
+#else
+static int kfr2r09_usb0_gadget_i2c_setup(void)
+{
+	return -ENODEV;
+}
+#endif
 
 static int kfr2r09_usb0_gadget_setup(void)
 {

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

* Re: [PATCH] sh: i2c compile fix for kfr2r09
  2009-08-20 13:57 [PATCH] sh: i2c compile fix for kfr2r09 Magnus Damm
@ 2009-08-20 23:45 ` Paul Mundt
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2009-08-20 23:45 UTC (permalink / raw)
  To: linux-sh

On Thu, Aug 20, 2009 at 10:57:36PM +0900, Magnus Damm wrote:
> Fix the kfr2r09 board code so it compiles if CONFIG_I2C=n.

On Thu, Aug 20, 2009 at 10:58:38PM +0900, Magnus Damm wrote:
> Add instruction cache and TLB invalidation code for the
> the kfr2r09 romimage target.

On Thu, Aug 20, 2009 at 10:59:26PM +0900, Magnus Damm wrote:
> Add a P1 jump to the the kfr2r09 romimage code. With this
> patch applied the initial zImage assembly code will run
> with instruction cache enabled.

On Thu, Aug 20, 2009 at 11:01:24PM +0900, Magnus Damm wrote:
> Add romImage defconfig for the kfr2r09 board. This defconfig
> should be used to build the kernel based boot loader.

On Thu, Aug 20, 2009 at 11:02:24PM +0900, Magnus Damm wrote:
> Update the kfr2r09 defconfig with support for LCDC and USB gadget.

All applied, thanks.

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

end of thread, other threads:[~2009-08-20 23:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-20 13:57 [PATCH] sh: i2c compile fix for kfr2r09 Magnus Damm
2009-08-20 23:45 ` Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox