Changeset 559 for trunk/modules/vci_spi


Ignore:
Timestamp:
Oct 25, 2013, 5:44:46 PM (11 years ago)
Author:
bouyer
Message:

Remove Auto Slave Select feature

Location:
trunk/modules/vci_spi
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/vci_spi/caba/source/include/vci_spi.h

    r558 r559  
    7575    sc_signal<bool>                    r_ctrl_cpol;     // clock polarity
    7676    sc_signal<bool>                    r_ctrl_cpha;     // clock phase
    77     sc_signal<bool>                    r_ctrl_ass;      // auto slave select
    7877    sc_signal<bool>                    r_ctrl_ie;       // interrupt enable
    7978    sc_signal<bool>                    r_ctrl_go_bsy;
  • trunk/modules/vci_spi/caba/source/src/vci_spi.cpp

    r558 r559  
    5151        r_divider        = 0xffff;
    5252        r_ctrl_char_len   = 0;
    53         r_ctrl_ass      = false;
    5453        r_ctrl_ie        = false;
    5554        r_ctrl_cpol       = false;
     
    145144                    if (r_ctrl_cpha.read())
    146145                        data |= SPI_CTRL_CPHA;
    147                     if (r_ctrl_ass.read())
    148                         data |= SPI_CTRL_ASS_EN;
    149146                    if (r_ctrl_ie.read())
    150147                        data |= SPI_CTRL_IE_EN;
     
    156153                        r_ctrl_cpol = ((wdata & SPI_CTRL_CPOL) != 0);
    157154                        r_ctrl_cpha = ((wdata & SPI_CTRL_CPHA) != 0);
    158                         r_ctrl_ass = ((wdata & SPI_CTRL_ASS_EN) != 0);
    159155                        r_ctrl_ie  = ((wdata & SPI_CTRL_IE_EN) != 0);
    160156                        r_ctrl_go_bsy = ((wdata & SPI_CTRL_GO_BSY) != 0);
  • trunk/modules/vci_spi/include/soclib/vcispi.h

    r551 r559  
    4040#define SPI_CTRL_CPOL           (1 << 15) /* Clock polarity                */
    4141#define SPI_CTRL_CPHA           (1 << 14) /* Clock phase                   */
    42 #define SPI_CTRL_ASS_EN         (1 << 13) /* Auto Slave Sel Assertion      */
    4342#define SPI_CTRL_IE_EN          (1 << 12) /* Interrupt Enable              */
    4443// 9-11 reserved
Note: See TracChangeset for help on using the changeset viewer.