File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 49
49
#define LTQ_SPI_RXCNT 0x84
50
50
#define LTQ_SPI_DMACON 0xec
51
51
#define LTQ_SPI_IRNEN 0xf4
52
- #define LTQ_SPI_IRNICR 0xf8
53
- #define LTQ_SPI_IRNCR 0xfc
54
52
55
53
#define LTQ_SPI_CLC_SMC_S 16 /* Clock divider for sleep mode */
56
54
#define LTQ_SPI_CLC_SMC_M (0xFF << LTQ_SPI_CLC_SMC_S)
158
156
#define LTQ_SPI_IRNEN_ALL 0x1F
159
157
160
158
struct lantiq_ssc_hwcfg {
161
- unsigned int irnen_r ;
162
- unsigned int irnen_t ;
159
+ unsigned int irnen_r ;
160
+ unsigned int irnen_t ;
161
+ unsigned int irncr ;
162
+ unsigned int irnicr ;
163
163
};
164
164
165
165
struct lantiq_ssc_spi {
@@ -792,13 +792,17 @@ static int lantiq_ssc_transfer_one(struct spi_master *master,
792
792
}
793
793
794
794
static const struct lantiq_ssc_hwcfg lantiq_ssc_xway = {
795
- .irnen_r = LTQ_SPI_IRNEN_R_XWAY ,
796
- .irnen_t = LTQ_SPI_IRNEN_T_XWAY ,
795
+ .irnen_r = LTQ_SPI_IRNEN_R_XWAY ,
796
+ .irnen_t = LTQ_SPI_IRNEN_T_XWAY ,
797
+ .irnicr = 0xF8 ,
798
+ .irncr = 0xFC ,
797
799
};
798
800
799
801
static const struct lantiq_ssc_hwcfg lantiq_ssc_xrx = {
800
- .irnen_r = LTQ_SPI_IRNEN_R_XRX ,
801
- .irnen_t = LTQ_SPI_IRNEN_T_XRX ,
802
+ .irnen_r = LTQ_SPI_IRNEN_R_XRX ,
803
+ .irnen_t = LTQ_SPI_IRNEN_T_XRX ,
804
+ .irnicr = 0xF8 ,
805
+ .irncr = 0xFC ,
802
806
};
803
807
804
808
static const struct of_device_id lantiq_ssc_match [] = {
You can’t perform that action at this time.
0 commit comments