Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148559
b: refs/heads/master
c: ee0263c
h: refs/heads/master
i:
  148557: ee9deb8
  148555: af9875b
  148551: 0c60f6c
  148543: 7f3de34
v: v3
  • Loading branch information
Graf Yang authored and Mike Frysinger committed Jun 12, 2009
1 parent 2fe3201 commit b0ee20e
Show file tree
Hide file tree
Showing 3 changed files with 15 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: 7f3aee3c187641ec7c7e260d9cabb71ac4ac9f7c
refs/heads/master: ee0263cc2e7d774655bba6a6750a06099a3cebf0
9 changes: 9 additions & 0 deletions trunk/arch/blackfin/mach-bf518/boards/ezbrd.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ static struct physmap_flash_data ezbrd_flash_data = {

static struct resource ezbrd_flash_resource = {
.start = 0x20000000,
#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
.end = 0x202fffff,
#else
.end = 0x203fffff,
#endif
.flags = IORESOURCE_MEM,
};

Expand Down Expand Up @@ -678,6 +682,11 @@ static int __init ezbrd_init(void)
ARRAY_SIZE(bfin_i2c_board_info));
platform_add_devices(stamp_devices, ARRAY_SIZE(stamp_devices));
spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info));
/* setup BF518-EZBRD GPIO pin PG11 to AMS2, PG15 to AMS3. */
peripheral_request(P_AMS2, "ParaFlash");
#if !defined(CONFIG_SPI_BFIN) && !defined(CONFIG_SPI_BFIN_MODULE)
peripheral_request(P_AMS3, "ParaFlash");
#endif
return 0;
}

Expand Down
6 changes: 5 additions & 1 deletion trunk/arch/blackfin/mach-bf518/include/mach/portmux.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@
#define P_PTP_PPS (P_DEFINED | P_IDENT(GPIO_PG12) | P_FUNCT(2))
#define P_PTP_CLKOUT (P_DEFINED | P_IDENT(GPIO_PG13) | P_FUNCT(2))

#define P_HWAIT (P_DEFINED | P_IDENT(GPIO_PG000000000) | P_FUNCT(1))
/* AMS */
#define P_AMS2 (P_DEFINED | P_IDENT(GPIO_PG11) | P_FUNCT(1))
#define P_AMS3 (P_DEFINED | P_IDENT(GPIO_PG15) | P_FUNCT(2))

#define P_HWAIT (P_DEFINED | P_IDENT(GPIO_PG000000000) | P_FUNCT(1))

#endif /* _MACH_PORTMUX_H_ */

0 comments on commit b0ee20e

Please sign in to comment.