Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313847
b: refs/heads/master
c: 0220874
h: refs/heads/master
i:
  313845: 6ad0747
  313843: 425fe1a
  313839: fd1f217
v: v3
  • Loading branch information
Steven Miao authored and Bob Liu committed Jul 24, 2012
1 parent 57d85bc commit ba1d608
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 433b58877d454f420e9d6ac1f889de80ee454df0
refs/heads/master: 0220874aad7160d127f9a95eb556cec2c374cd51
17 changes: 16 additions & 1 deletion trunk/arch/blackfin/mach-bf609/boards/ezkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,10 +677,25 @@ int bf609_nor_flash_init(struct platform_device *dev)
return 0;
}

void bf609_nor_flash_exit(struct platform_device *dev)
{
const unsigned short pins[] = {
P_A3, P_A4, P_A5, P_A6, P_A7, P_A8, P_A9, P_A10, P_A11, P_A12,
P_A13, P_A14, P_A15, P_A16, P_A17, P_A18, P_A19, P_A20, P_A21,
P_A22, P_A23, P_A24, P_A25, P_NORCK, 0,
};

peripheral_free_list(pins);

bfin_write32(SMC_GCTL, 0);
return 0;
}

static struct physmap_flash_data ezkit_flash_data = {
.width = 2,
.parts = ezkit_partitions,
.init = bf609_nor_flash_init,
.init = bf609_nor_flash_init,
.exit = bf609_nor_flash_exit,
.nr_parts = ARRAY_SIZE(ezkit_partitions),
#ifdef CONFIG_ROMKERNEL
.probe_type = "map_rom",
Expand Down

0 comments on commit ba1d608

Please sign in to comment.