lkml.org 
[lkml]   [2009]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 64/72] Blackfin: fix BF54x SPI CS resources
    Date
    From: Yi Li <yi.li@analog.com>

    The BF54x has three slave select signals for SPI0/SPI1, not eight.

    Signed-off-by: Yi Li <yi.li@analog.com>
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
    ---
    arch/blackfin/mach-bf548/boards/cm_bf548.c | 4 ++--
    arch/blackfin/mach-bf548/boards/ezkit.c | 4 ++--
    2 files changed, 4 insertions(+), 4 deletions(-)

    diff --git a/arch/blackfin/mach-bf548/boards/cm_bf548.c b/arch/blackfin/mach-bf548/boards/cm_bf548.c
    index f5a3c30..290b6e9 100644
    --- a/arch/blackfin/mach-bf548/boards/cm_bf548.c
    +++ b/arch/blackfin/mach-bf548/boards/cm_bf548.c
    @@ -642,7 +642,7 @@ static struct resource bfin_spi1_resource[] = {

    /* SPI controller data */
    static struct bfin5xx_spi_master bf54x_spi_master_info0 = {
    - .num_chipselect = 8,
    + .num_chipselect = 3,
    .enable_dma = 1, /* master has the ability to do dma transfer */
    .pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0},
    };
    @@ -658,7 +658,7 @@ static struct platform_device bf54x_spi_master0 = {
    };

    static struct bfin5xx_spi_master bf54x_spi_master_info1 = {
    - .num_chipselect = 8,
    + .num_chipselect = 3,
    .enable_dma = 1, /* master has the ability to do dma transfer */
    .pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0},
    };
    diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c
    index e50d136..c66f380 100644
    --- a/arch/blackfin/mach-bf548/boards/ezkit.c
    +++ b/arch/blackfin/mach-bf548/boards/ezkit.c
    @@ -783,7 +783,7 @@ static struct resource bfin_spi1_resource[] = {

    /* SPI controller data */
    static struct bfin5xx_spi_master bf54x_spi_master_info0 = {
    - .num_chipselect = 8,
    + .num_chipselect = 3,
    .enable_dma = 1, /* master has the ability to do dma transfer */
    .pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0},
    };
    @@ -799,7 +799,7 @@ static struct platform_device bf54x_spi_master0 = {
    };

    static struct bfin5xx_spi_master bf54x_spi_master_info1 = {
    - .num_chipselect = 8,
    + .num_chipselect = 3,
    .enable_dma = 1, /* master has the ability to do dma transfer */
    .pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0},
    };
    --
    1.6.4.2


    \
     
     \ /
      Last update: 2009-09-14 22:45    [W:0.020 / U:59.772 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site