diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2008-05-06 23:41:26 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-05-06 23:41:26 -0400 |
commit | 14b03204c8060d036b04cbb18bbd6f6f311f4fed (patch) | |
tree | e4ac8f5e2a74fc63dd811aac9e349ac890670134 /arch/blackfin/mach-bf527 | |
parent | 19d6d7d53c8ff809182a1f092d2c6918146414e9 (diff) |
[Blackfin] arch: Functional power management support: Add CPU and platform voltage scaling support
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-bf527')
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezkit.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c index 583d53811f03..90dd0869edc9 100644 --- a/arch/blackfin/mach-bf527/boards/ezkit.c +++ b/arch/blackfin/mach-bf527/boards/ezkit.c | |||
@@ -50,6 +50,7 @@ | |||
50 | #include <asm/reboot.h> | 50 | #include <asm/reboot.h> |
51 | #include <asm/nand.h> | 51 | #include <asm/nand.h> |
52 | #include <asm/portmux.h> | 52 | #include <asm/portmux.h> |
53 | #include <asm/dpmc.h> | ||
53 | #include <linux/spi/ad7877.h> | 54 | #include <linux/spi/ad7877.h> |
54 | 55 | ||
55 | /* | 56 | /* |
@@ -839,7 +840,32 @@ static struct platform_device bfin_gpios_device = { | |||
839 | .resource = &bfin_gpios_resources, | 840 | .resource = &bfin_gpios_resources, |
840 | }; | 841 | }; |
841 | 842 | ||
843 | static const unsigned int cclk_vlev_datasheet[] = | ||
844 | { | ||
845 | VRPAIR(VLEV_100, 400000000), | ||
846 | VRPAIR(VLEV_105, 426000000), | ||
847 | VRPAIR(VLEV_110, 500000000), | ||
848 | VRPAIR(VLEV_115, 533000000), | ||
849 | VRPAIR(VLEV_120, 600000000), | ||
850 | }; | ||
851 | |||
852 | static struct bfin_dpmc_platform_data bfin_dmpc_vreg_data = { | ||
853 | .tuple_tab = cclk_vlev_datasheet, | ||
854 | .tabsize = ARRAY_SIZE(cclk_vlev_datasheet), | ||
855 | .vr_settling_time = 25 /* us */, | ||
856 | }; | ||
857 | |||
858 | static struct platform_device bfin_dpmc = { | ||
859 | .name = "bfin dpmc", | ||
860 | .dev = { | ||
861 | .platform_data = &bfin_dmpc_vreg_data, | ||
862 | }, | ||
863 | }; | ||
864 | |||
842 | static struct platform_device *stamp_devices[] __initdata = { | 865 | static struct platform_device *stamp_devices[] __initdata = { |
866 | |||
867 | &bfin_dpmc, | ||
868 | |||
843 | #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) | 869 | #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE) |
844 | &bf5xx_nand_device, | 870 | &bf5xx_nand_device, |
845 | #endif | 871 | #endif |