diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-03 17:31:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-03 17:31:24 -0400 |
commit | be82ae0238b0453afcf4a76f0512b7dde34ba500 (patch) | |
tree | aaa3f5f11fd51fd73365ee1a2164aad9a03de060 /arch/arm/mach-dove/common.c | |
parent | 4b4fd27c0b5ec638a1f06ced9226fd95229dbbf0 (diff) | |
parent | 7b70c4275f28702b76b273c8534c38f8313812e9 (diff) |
Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (291 commits)
ARM: AMBA: Add pclk support to AMBA bus infrastructure
ARM: 6278/2: fix regression in RealView after the introduction of pclk
ARM: 6277/1: mach-shmobile: Allow users to select HZ, default to 128
ARM: 6276/1: mach-shmobile: remove duplicate NR_IRQS_LEGACY
ARM: 6246/1: mmci: support larger MMCIDATALENGTH register
ARM: 6245/1: mmci: enable hardware flow control on Ux500 variants
ARM: 6244/1: mmci: add variant data and default MCICLOCK support
ARM: 6243/1: mmci: pass power_mode to the translate_vdd callback
ARM: 6274/1: add global control registers definition header file for nuc900
mx2_camera: fix type of dma buffer virtual address pointer
mx2_camera: Add soc_camera support for i.MX25/i.MX27
arm/imx/gpio: add spinlock protection
ARM: Add support for the LPC32XX arch
ARM: LPC32XX: Arch config menu supoport and makefiles
ARM: LPC32XX: Phytec 3250 platform support
ARM: LPC32XX: Misc support functions
ARM: LPC32XX: Serial support code
ARM: LPC32XX: System suspend support
ARM: LPC32XX: GPIO, timer, and IRQ drivers
ARM: LPC32XX: Clock driver
...
Diffstat (limited to 'arch/arm/mach-dove/common.c')
-rw-r--r-- | arch/arm/mach-dove/common.c | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c index 5da2cf402c81..f7a12586a1f5 100644 --- a/arch/arm/mach-dove/common.c +++ b/arch/arm/mach-dove/common.c | |||
@@ -752,6 +752,67 @@ void __init dove_xor1_init(void) | |||
752 | platform_device_register(&dove_xor11_channel); | 752 | platform_device_register(&dove_xor11_channel); |
753 | } | 753 | } |
754 | 754 | ||
755 | /***************************************************************************** | ||
756 | * SDIO | ||
757 | ****************************************************************************/ | ||
758 | static u64 sdio_dmamask = DMA_BIT_MASK(32); | ||
759 | |||
760 | static struct resource dove_sdio0_resources[] = { | ||
761 | { | ||
762 | .start = DOVE_SDIO0_PHYS_BASE, | ||
763 | .end = DOVE_SDIO0_PHYS_BASE + 0xff, | ||
764 | .flags = IORESOURCE_MEM, | ||
765 | }, { | ||
766 | .start = IRQ_DOVE_SDIO0, | ||
767 | .end = IRQ_DOVE_SDIO0, | ||
768 | .flags = IORESOURCE_IRQ, | ||
769 | }, | ||
770 | }; | ||
771 | |||
772 | static struct platform_device dove_sdio0 = { | ||
773 | .name = "sdhci-mv", | ||
774 | .id = 0, | ||
775 | .dev = { | ||
776 | .dma_mask = &sdio_dmamask, | ||
777 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
778 | }, | ||
779 | .resource = dove_sdio0_resources, | ||
780 | .num_resources = ARRAY_SIZE(dove_sdio0_resources), | ||
781 | }; | ||
782 | |||
783 | void __init dove_sdio0_init(void) | ||
784 | { | ||
785 | platform_device_register(&dove_sdio0); | ||
786 | } | ||
787 | |||
788 | static struct resource dove_sdio1_resources[] = { | ||
789 | { | ||
790 | .start = DOVE_SDIO1_PHYS_BASE, | ||
791 | .end = DOVE_SDIO1_PHYS_BASE + 0xff, | ||
792 | .flags = IORESOURCE_MEM, | ||
793 | }, { | ||
794 | .start = IRQ_DOVE_SDIO1, | ||
795 | .end = IRQ_DOVE_SDIO1, | ||
796 | .flags = IORESOURCE_IRQ, | ||
797 | }, | ||
798 | }; | ||
799 | |||
800 | static struct platform_device dove_sdio1 = { | ||
801 | .name = "sdhci-mv", | ||
802 | .id = 1, | ||
803 | .dev = { | ||
804 | .dma_mask = &sdio_dmamask, | ||
805 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
806 | }, | ||
807 | .resource = dove_sdio1_resources, | ||
808 | .num_resources = ARRAY_SIZE(dove_sdio1_resources), | ||
809 | }; | ||
810 | |||
811 | void __init dove_sdio1_init(void) | ||
812 | { | ||
813 | platform_device_register(&dove_sdio1); | ||
814 | } | ||
815 | |||
755 | void __init dove_init(void) | 816 | void __init dove_init(void) |
756 | { | 817 | { |
757 | int tclk; | 818 | int tclk; |