Changeset 47952


Ignore:
Timestamp:
2015-12-19T12:32:20+01:00 (2 years ago)
Author:
nbd
Message:

ar71xx: Add ath79_register_m25p80_large to support >16MB SPI chips

The following patch is to add ath79_register_m25p80_large, which sets
is_flash to false to support bit banging. This is needed on some 32MB+
SPI chips, such as the S25FL256S1

Signed-off-by: Chris R Blake <chrisrblake93@…>

Location:
trunk/target/linux/ar71xx/files/arch/mips/ath79
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ath79/dev-m25p80.c

    r35392 r47952  
    107107} 
    108108 
     109void __init ath79_register_m25p80_large(struct flash_platform_data *pdata) 
     110{ 
     111        ath79_spi_data.bus_num = 0; 
     112        ath79_spi_data.num_chipselect = 1; 
     113        ath79_spi0_cdata.is_flash = false; 
     114        ath79_spi_info[0].platform_data = pdata; 
     115        ath79_register_spi(&ath79_spi_data, ath79_spi_info, 1); 
     116} 
    109117 
    110118void __init ath79_register_m25p80_multi(struct flash_platform_data *pdata) 
  • trunk/target/linux/ar71xx/files/arch/mips/ath79/dev-m25p80.h

    r30405 r47952  
    1313 
    1414void ath79_register_m25p80(struct flash_platform_data *pdata) __init; 
     15void ath79_register_m25p80_large(struct flash_platform_data *pdata) __init; 
    1516void ath79_register_m25p80_multi(struct flash_platform_data *pdata) __init; 
    1617 
Note: See TracChangeset for help on using the changeset viewer.