提交 71d7472f 编写于 作者: K Kuninori Morimoto 提交者: Simon Horman

ARM: shmobile: bockw: enable global use of FPGA

This patch enables global use of FPGA,
since it will be used from many devices.
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NSimon Horman <horms+renesas@verge.net.au>
上级 37bf8103
...@@ -38,6 +38,10 @@ ...@@ -38,6 +38,10 @@
#include <mach/r8a7778.h> #include <mach/r8a7778.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#define FPGA 0x18200000
#define IRQ0MR 0x30
static void __iomem *fpga;
/* /*
* CN9(Upper side) SCIF/RCAN selection * CN9(Upper side) SCIF/RCAN selection
* *
...@@ -224,8 +228,6 @@ static const struct pinctrl_map bockw_pinctrl_map[] = { ...@@ -224,8 +228,6 @@ static const struct pinctrl_map bockw_pinctrl_map[] = {
"vin1_data8", "vin1"), "vin1_data8", "vin1"),
}; };
#define FPGA 0x18200000
#define IRQ0MR 0x30
#define PFC 0xfffc0000 #define PFC 0xfffc0000
#define PUPR4 0x110 #define PUPR4 0x110
static void __init bockw_init(void) static void __init bockw_init(void)
...@@ -269,8 +271,8 @@ static void __init bockw_init(void) ...@@ -269,8 +271,8 @@ static void __init bockw_init(void)
/* for SMSC */ /* for SMSC */
base = ioremap_nocache(FPGA, SZ_1M); fpga = ioremap_nocache(FPGA, SZ_1M);
if (base) { if (fpga) {
/* /*
* CAUTION * CAUTION
* *
...@@ -278,10 +280,9 @@ static void __init bockw_init(void) ...@@ -278,10 +280,9 @@ static void __init bockw_init(void)
* it should be cared in the future * it should be cared in the future
* Now, it is assuming IRQ0 was used only from SMSC. * Now, it is assuming IRQ0 was used only from SMSC.
*/ */
u16 val = ioread16(base + IRQ0MR); u16 val = ioread16(fpga + IRQ0MR);
val &= ~(1 << 4); /* enable SMSC911x */ val &= ~(1 << 4); /* enable SMSC911x */
iowrite16(val, base + IRQ0MR); iowrite16(val, fpga + IRQ0MR);
iounmap(base);
regulator_register_fixed(0, dummy_supplies, regulator_register_fixed(0, dummy_supplies,
ARRAY_SIZE(dummy_supplies)); ARRAY_SIZE(dummy_supplies));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册