@@ -135,8 +135,8 @@ struct s3c64xx_spi_dma_data {
135
135
136
136
/**
137
137
* struct s3c64xx_spi_port_config - SPI Controller hardware info
138
- * @fifo_lvl_mask: Bit-mask for {TX|RX}_FIFO_LVL bits in SPI_STATUS register .
139
- * @rx_lvl_offset: Bit offset of RX_FIFO_LVL bits in SPI_STATUS regiter .
138
+ * @fifo_lvl_mask: [DEPRECATED] use @{rx, tx}_fifomask instead .
139
+ * @rx_lvl_offset: [DEPRECATED] use @{rx,tx}_fifomask instead .
140
140
* @fifo_depth: depth of the FIFO.
141
141
* @rx_fifomask: SPI_STATUS.RX_FIFO_LVL mask. Shifted mask defining the field's
142
142
* length and position.
@@ -192,7 +192,7 @@ struct s3c64xx_spi_port_config {
192
192
* @rx_dma: Local receive DMA data (e.g. chan and direction)
193
193
* @tx_dma: Local transmit DMA data (e.g. chan and direction)
194
194
* @port_conf: Local SPI port configuration data
195
- * @port_id: Port identification number
195
+ * @port_id: [DEPRECATED] use @{rx,tx}_fifomask instead.
196
196
* @fifo_depth: depth of the FIFO.
197
197
* @rx_fifomask: SPI_STATUS.RX_FIFO_LVL mask. Shifted mask defining the field's
198
198
* length and position.
@@ -1508,30 +1508,38 @@ static const struct dev_pm_ops s3c64xx_spi_pm = {
1508
1508
};
1509
1509
1510
1510
static const struct s3c64xx_spi_port_config s3c2443_spi_port_config = {
1511
+ /* fifo_lvl_mask is deprecated. Use {rx, tx}_fifomask instead. */
1511
1512
.fifo_lvl_mask = { 0x7f },
1513
+ /* rx_lvl_offset is deprecated. Use {rx, tx}_fifomask instead. */
1512
1514
.rx_lvl_offset = 13 ,
1513
1515
.tx_st_done = 21 ,
1514
1516
.clk_div = 2 ,
1515
1517
.high_speed = true,
1516
1518
};
1517
1519
1518
1520
static const struct s3c64xx_spi_port_config s3c6410_spi_port_config = {
1521
+ /* fifo_lvl_mask is deprecated. Use {rx, tx}_fifomask instead. */
1519
1522
.fifo_lvl_mask = { 0x7f , 0x7F },
1523
+ /* rx_lvl_offset is deprecated. Use {rx, tx}_fifomask instead. */
1520
1524
.rx_lvl_offset = 13 ,
1521
1525
.tx_st_done = 21 ,
1522
1526
.clk_div = 2 ,
1523
1527
};
1524
1528
1525
1529
static const struct s3c64xx_spi_port_config s5pv210_spi_port_config = {
1530
+ /* fifo_lvl_mask is deprecated. Use {rx, tx}_fifomask instead. */
1526
1531
.fifo_lvl_mask = { 0x1ff , 0x7F },
1532
+ /* rx_lvl_offset is deprecated. Use {rx, tx}_fifomask instead. */
1527
1533
.rx_lvl_offset = 15 ,
1528
1534
.tx_st_done = 25 ,
1529
1535
.clk_div = 2 ,
1530
1536
.high_speed = true,
1531
1537
};
1532
1538
1533
1539
static const struct s3c64xx_spi_port_config exynos4_spi_port_config = {
1540
+ /* fifo_lvl_mask is deprecated. Use {rx, tx}_fifomask instead. */
1534
1541
.fifo_lvl_mask = { 0x1ff , 0x7F , 0x7F },
1542
+ /* rx_lvl_offset is deprecated. Use {rx, tx}_fifomask instead. */
1535
1543
.rx_lvl_offset = 15 ,
1536
1544
.tx_st_done = 25 ,
1537
1545
.clk_div = 2 ,
@@ -1541,7 +1549,9 @@ static const struct s3c64xx_spi_port_config exynos4_spi_port_config = {
1541
1549
};
1542
1550
1543
1551
static const struct s3c64xx_spi_port_config exynos7_spi_port_config = {
1552
+ /* fifo_lvl_mask is deprecated. Use {rx, tx}_fifomask instead. */
1544
1553
.fifo_lvl_mask = { 0x1ff , 0x7F , 0x7F , 0x7F , 0x7F , 0x1ff },
1554
+ /* rx_lvl_offset is deprecated. Use {rx, tx}_fifomask instead. */
1545
1555
.rx_lvl_offset = 15 ,
1546
1556
.tx_st_done = 25 ,
1547
1557
.clk_div = 2 ,
@@ -1551,7 +1561,9 @@ static const struct s3c64xx_spi_port_config exynos7_spi_port_config = {
1551
1561
};
1552
1562
1553
1563
static const struct s3c64xx_spi_port_config exynos5433_spi_port_config = {
1564
+ /* fifo_lvl_mask is deprecated. Use {rx, tx}_fifomask instead. */
1554
1565
.fifo_lvl_mask = { 0x1ff , 0x7f , 0x7f , 0x7f , 0x7f , 0x1ff },
1566
+ /* rx_lvl_offset is deprecated. Use {rx, tx}_fifomask instead. */
1555
1567
.rx_lvl_offset = 15 ,
1556
1568
.tx_st_done = 25 ,
1557
1569
.clk_div = 2 ,
@@ -1562,7 +1574,9 @@ static const struct s3c64xx_spi_port_config exynos5433_spi_port_config = {
1562
1574
};
1563
1575
1564
1576
static const struct s3c64xx_spi_port_config exynos850_spi_port_config = {
1577
+ /* fifo_lvl_mask is deprecated. Use {rx, tx}_fifomask instead. */
1565
1578
.fifo_lvl_mask = { 0x7f , 0x7f , 0x7f },
1579
+ /* rx_lvl_offset is deprecated. Use {rx, tx}_fifomask instead. */
1566
1580
.rx_lvl_offset = 15 ,
1567
1581
.tx_st_done = 25 ,
1568
1582
.clk_div = 4 ,
@@ -1573,8 +1587,10 @@ static const struct s3c64xx_spi_port_config exynos850_spi_port_config = {
1573
1587
};
1574
1588
1575
1589
static const struct s3c64xx_spi_port_config exynosautov9_spi_port_config = {
1590
+ /* fifo_lvl_mask is deprecated. Use {rx, tx}_fifomask instead. */
1576
1591
.fifo_lvl_mask = { 0x1ff , 0x1ff , 0x7f , 0x7f , 0x7f , 0x7f , 0x1ff , 0x7f ,
1577
1592
0x7f , 0x7f , 0x7f , 0x7f },
1593
+ /* rx_lvl_offset is deprecated. Use {rx, tx}_fifomask instead. */
1578
1594
.rx_lvl_offset = 15 ,
1579
1595
.tx_st_done = 25 ,
1580
1596
.clk_div = 4 ,
@@ -1586,7 +1602,9 @@ static const struct s3c64xx_spi_port_config exynosautov9_spi_port_config = {
1586
1602
};
1587
1603
1588
1604
static const struct s3c64xx_spi_port_config fsd_spi_port_config = {
1605
+ /* fifo_lvl_mask is deprecated. Use {rx, tx}_fifomask instead. */
1589
1606
.fifo_lvl_mask = { 0x7f , 0x7f , 0x7f , 0x7f , 0x7f },
1607
+ /* rx_lvl_offset is deprecated. Use {rx, tx}_fifomask instead. */
1590
1608
.rx_lvl_offset = 15 ,
1591
1609
.tx_st_done = 25 ,
1592
1610
.clk_div = 2 ,
@@ -1597,8 +1615,10 @@ static const struct s3c64xx_spi_port_config fsd_spi_port_config = {
1597
1615
};
1598
1616
1599
1617
static const struct s3c64xx_spi_port_config gs101_spi_port_config = {
1618
+ /* fifo_lvl_mask is deprecated. Use {rx, tx}_fifomask instead. */
1600
1619
.fifo_lvl_mask = { 0x7f , 0x7f , 0x7f , 0x7f , 0x7f , 0x7f , 0x7f , 0x7f ,
1601
1620
0x7f , 0x7f , 0x7f , 0x7f , 0x7f , 0x7f , 0x7f , 0x7f },
1621
+ /* rx_lvl_offset is deprecated. Use {rx, tx}_fifomask instead. */
1602
1622
.rx_lvl_offset = 15 ,
1603
1623
.tx_st_done = 25 ,
1604
1624
.clk_div = 4 ,
0 commit comments