diff options
| author | Steven Miao <realmz6@gmail.com> | 2012-05-04 01:01:47 -0400 |
|---|---|---|
| committer | Bob Liu <lliubbo@gmail.com> | 2012-07-24 01:39:53 -0400 |
| commit | 0220874aad7160d127f9a95eb556cec2c374cd51 (patch) | |
| tree | f8861e69a0b57b45b3d5a85cd0856c6d8fd2506e | |
| parent | 433b58877d454f420e9d6ac1f889de80ee454df0 (diff) | |
PM: add BF60x flash suspend and resume support
Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
| -rw-r--r-- | arch/blackfin/mach-bf609/boards/ezkit.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/arch/blackfin/mach-bf609/boards/ezkit.c b/arch/blackfin/mach-bf609/boards/ezkit.c index 9f9f597dc1be..36fbdacc0b76 100644 --- a/arch/blackfin/mach-bf609/boards/ezkit.c +++ b/arch/blackfin/mach-bf609/boards/ezkit.c | |||
| @@ -677,10 +677,25 @@ int bf609_nor_flash_init(struct platform_device *dev) | |||
| 677 | return 0; | 677 | return 0; |
| 678 | } | 678 | } |
| 679 | 679 | ||
| 680 | void bf609_nor_flash_exit(struct platform_device *dev) | ||
| 681 | { | ||
| 682 | const unsigned short pins[] = { | ||
| 683 | P_A3, P_A4, P_A5, P_A6, P_A7, P_A8, P_A9, P_A10, P_A11, P_A12, | ||
| 684 | P_A13, P_A14, P_A15, P_A16, P_A17, P_A18, P_A19, P_A20, P_A21, | ||
| 685 | P_A22, P_A23, P_A24, P_A25, P_NORCK, 0, | ||
| 686 | }; | ||
| 687 | |||
| 688 | peripheral_free_list(pins); | ||
| 689 | |||
| 690 | bfin_write32(SMC_GCTL, 0); | ||
| 691 | return 0; | ||
| 692 | } | ||
| 693 | |||
| 680 | static struct physmap_flash_data ezkit_flash_data = { | 694 | static struct physmap_flash_data ezkit_flash_data = { |
| 681 | .width = 2, | 695 | .width = 2, |
| 682 | .parts = ezkit_partitions, | 696 | .parts = ezkit_partitions, |
| 683 | .init = bf609_nor_flash_init, | 697 | .init = bf609_nor_flash_init, |
| 698 | .exit = bf609_nor_flash_exit, | ||
| 684 | .nr_parts = ARRAY_SIZE(ezkit_partitions), | 699 | .nr_parts = ARRAY_SIZE(ezkit_partitions), |
| 685 | #ifdef CONFIG_ROMKERNEL | 700 | #ifdef CONFIG_ROMKERNEL |
| 686 | .probe_type = "map_rom", | 701 | .probe_type = "map_rom", |
