diff options
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7724.c | 2 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7757.c | 22 | ||||
-rw-r--r-- | arch/sh/kernel/smp.c | 2 | ||||
-rw-r--r-- | arch/sh/kernel/topology.c | 2 |
4 files changed, 24 insertions, 4 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7724.c b/arch/sh/kernel/cpu/sh4a/clock-sh7724.c index b3c039a5064a..70bd96646f42 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7724.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7724.c | |||
@@ -343,7 +343,7 @@ static struct clk_lookup lookups[] = { | |||
343 | CLKDEV_DEV_ID("sh_mobile_ceu.1", &mstp_clks[HWBLK_CEU1]), | 343 | CLKDEV_DEV_ID("sh_mobile_ceu.1", &mstp_clks[HWBLK_CEU1]), |
344 | CLKDEV_CON_ID("beu1", &mstp_clks[HWBLK_BEU1]), | 344 | CLKDEV_CON_ID("beu1", &mstp_clks[HWBLK_BEU1]), |
345 | CLKDEV_CON_ID("2ddmac0", &mstp_clks[HWBLK_2DDMAC]), | 345 | CLKDEV_CON_ID("2ddmac0", &mstp_clks[HWBLK_2DDMAC]), |
346 | CLKDEV_CON_ID("spu0", &mstp_clks[HWBLK_SPU]), | 346 | CLKDEV_DEV_ID("sh_fsi.0", &mstp_clks[HWBLK_SPU]), |
347 | CLKDEV_CON_ID("jpu0", &mstp_clks[HWBLK_JPU]), | 347 | CLKDEV_CON_ID("jpu0", &mstp_clks[HWBLK_JPU]), |
348 | CLKDEV_DEV_ID("sh-vou.0", &mstp_clks[HWBLK_VOU]), | 348 | CLKDEV_DEV_ID("sh-vou.0", &mstp_clks[HWBLK_VOU]), |
349 | CLKDEV_CON_ID("beu0", &mstp_clks[HWBLK_BEU0]), | 349 | CLKDEV_CON_ID("beu0", &mstp_clks[HWBLK_BEU0]), |
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7757.c b/arch/sh/kernel/cpu/sh4a/setup-sh7757.c index a7b2da6b3a1a..2875e8be4f72 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7757.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7757.c | |||
@@ -133,7 +133,7 @@ static struct resource spi0_resources[] = { | |||
133 | [0] = { | 133 | [0] = { |
134 | .start = 0xfe002000, | 134 | .start = 0xfe002000, |
135 | .end = 0xfe0020ff, | 135 | .end = 0xfe0020ff, |
136 | .flags = IORESOURCE_MEM, | 136 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_32BIT, |
137 | }, | 137 | }, |
138 | [1] = { | 138 | [1] = { |
139 | .start = 86, | 139 | .start = 86, |
@@ -661,6 +661,25 @@ static struct platform_device spi0_device = { | |||
661 | .resource = spi0_resources, | 661 | .resource = spi0_resources, |
662 | }; | 662 | }; |
663 | 663 | ||
664 | static struct resource spi1_resources[] = { | ||
665 | { | ||
666 | .start = 0xffd8ee70, | ||
667 | .end = 0xffd8eeff, | ||
668 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8BIT, | ||
669 | }, | ||
670 | { | ||
671 | .start = 54, | ||
672 | .flags = IORESOURCE_IRQ, | ||
673 | }, | ||
674 | }; | ||
675 | |||
676 | static struct platform_device spi1_device = { | ||
677 | .name = "sh_spi", | ||
678 | .id = 1, | ||
679 | .num_resources = ARRAY_SIZE(spi1_resources), | ||
680 | .resource = spi1_resources, | ||
681 | }; | ||
682 | |||
664 | static struct resource usb_ehci_resources[] = { | 683 | static struct resource usb_ehci_resources[] = { |
665 | [0] = { | 684 | [0] = { |
666 | .start = 0xfe4f1000, | 685 | .start = 0xfe4f1000, |
@@ -720,6 +739,7 @@ static struct platform_device *sh7757_devices[] __initdata = { | |||
720 | &dma2_device, | 739 | &dma2_device, |
721 | &dma3_device, | 740 | &dma3_device, |
722 | &spi0_device, | 741 | &spi0_device, |
742 | &spi1_device, | ||
723 | &usb_ehci_device, | 743 | &usb_ehci_device, |
724 | &usb_ohci_device, | 744 | &usb_ohci_device, |
725 | }; | 745 | }; |
diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c index 3147a9a6fb8b..f624174bf239 100644 --- a/arch/sh/kernel/smp.c +++ b/arch/sh/kernel/smp.c | |||
@@ -63,7 +63,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
63 | mp_ops->prepare_cpus(max_cpus); | 63 | mp_ops->prepare_cpus(max_cpus); |
64 | 64 | ||
65 | #ifndef CONFIG_HOTPLUG_CPU | 65 | #ifndef CONFIG_HOTPLUG_CPU |
66 | init_cpu_present(&cpu_possible_map); | 66 | init_cpu_present(cpu_possible_mask); |
67 | #endif | 67 | #endif |
68 | } | 68 | } |
69 | 69 | ||
diff --git a/arch/sh/kernel/topology.c b/arch/sh/kernel/topology.c index 4649a6ff0cfe..772caffba22f 100644 --- a/arch/sh/kernel/topology.c +++ b/arch/sh/kernel/topology.c | |||
@@ -27,7 +27,7 @@ static cpumask_t cpu_coregroup_map(unsigned int cpu) | |||
27 | * Presently all SH-X3 SMP cores are multi-cores, so just keep it | 27 | * Presently all SH-X3 SMP cores are multi-cores, so just keep it |
28 | * simple until we have a method for determining topology.. | 28 | * simple until we have a method for determining topology.. |
29 | */ | 29 | */ |
30 | return cpu_possible_map; | 30 | return *cpu_possible_mask; |
31 | } | 31 | } |
32 | 32 | ||
33 | const struct cpumask *cpu_coregroup_mask(unsigned int cpu) | 33 | const struct cpumask *cpu_coregroup_mask(unsigned int cpu) |