sh: i2c compile fix for kfr2r09
PATCH 1/1 sh: i2c compile fix for kfr2r09
From: Magnus Damm <[email protected]>
Fix the kfr2r09 board code so it compiles if CONFIG_I2C=n.
Signed-off-by Magnus Damm <[email protected]>
---
arch/sh/boards/mach-kfr2r09/setup.c | 7 +++++++ 1 file changed, 7 insertions(+)
arch/sh/boards/mach-kfr2r09/setup.c +7 -0
@@ -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 ) {
Quoted 1 line · Magnus Damm
Fix the kfr2r09 board code so it compiles if
CONFIG_I2C=n.
Quoted 2 lines · Magnus Damm
Add instruction cache and TLB invalidation code for the the kfr2r09 romimage target.
Quoted 3 lines · Magnus Damm
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.
Quoted 2 lines · Magnus Damm
Add romImage defconfig for the kfr2r09 board. This defconfig should be used to build the kernel based boot loader.
Quoted 1 line · Magnus Damm
Update the kfr2r09 defconfig with support for LCDC and USB gadget.
All applied, thanks.