2
0
forked from Ivasoft/openwrt

update flash locking code

SVN-Revision: 16359
This commit is contained in:
Gabor Juhos
2009-06-06 15:56:03 +00:00
parent 9668bbeea9
commit 67ace05bfe
5 changed files with 48 additions and 14 deletions

View File

@@ -422,7 +422,6 @@ void ar71xx_device_start(u32 mask);
#define SPI_IOC_CS2 SPI_IOC_CS(2)
#define SPI_IOC_CS_ALL (SPI_IOC_CS0 | SPI_IOC_CS1 | SPI_IOC_CS2)
void ar71xx_flash_lock_enable(void) __init;
void ar71xx_flash_acquire(void);
void ar71xx_flash_release(void);

View File

@@ -55,6 +55,7 @@ struct ar71xx_spi_platform_data {
struct ar91xx_flash_platform_data {
unsigned int width;
u8 is_shared:1;
#ifdef CONFIG_MTD_PARTITIONS
unsigned int nr_parts;
struct mtd_partition *parts;