spi-omap2-mcspi.c (2289fa0704b8d074d256cfa43ceaa6ee620d5697) | spi-omap2-mcspi.c (03adaa404a2c8f9ae0528eb963e86a962a3a2f39) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * OMAP2 McSPI controller driver 4 * 5 * Copyright (C) 2005, 2006 Nokia Corporation 6 * Author: Samuel Ortiz <samuel.ortiz@nokia.com> and 7 * Juha Yrjola <juha.yrjola@nokia.com> 8 */ --- 1450 unchanged lines hidden (view full) --- 1459 1460 match = of_match_device(omap_mcspi_of_match, &pdev->dev); 1461 if (match) { 1462 u32 num_cs = 1; /* default number of chipselect */ 1463 pdata = match->data; 1464 1465 of_property_read_u32(node, "ti,spi-num-cs", &num_cs); 1466 master->num_chipselect = num_cs; | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * OMAP2 McSPI controller driver 4 * 5 * Copyright (C) 2005, 2006 Nokia Corporation 6 * Author: Samuel Ortiz <samuel.ortiz@nokia.com> and 7 * Juha Yrjola <juha.yrjola@nokia.com> 8 */ --- 1450 unchanged lines hidden (view full) --- 1459 1460 match = of_match_device(omap_mcspi_of_match, &pdev->dev); 1461 if (match) { 1462 u32 num_cs = 1; /* default number of chipselect */ 1463 pdata = match->data; 1464 1465 of_property_read_u32(node, "ti,spi-num-cs", &num_cs); 1466 master->num_chipselect = num_cs; |
1467 if (of_get_property(node, "ti,pindir-d0-out-d1-in", NULL)) | 1467 if (of_property_read_bool(node, "ti,pindir-d0-out-d1-in")) |
1468 mcspi->pin_dir = MCSPI_PINDIR_D0_OUT_D1_IN; 1469 } else { 1470 pdata = dev_get_platdata(&pdev->dev); 1471 master->num_chipselect = pdata->num_cs; 1472 mcspi->pin_dir = pdata->pin_dir; 1473 } 1474 regs_offset = pdata->regs_offset; 1475 if (pdata->max_xfer_len) { --- 140 unchanged lines hidden --- | 1468 mcspi->pin_dir = MCSPI_PINDIR_D0_OUT_D1_IN; 1469 } else { 1470 pdata = dev_get_platdata(&pdev->dev); 1471 master->num_chipselect = pdata->num_cs; 1472 mcspi->pin_dir = pdata->pin_dir; 1473 } 1474 regs_offset = pdata->regs_offset; 1475 if (pdata->max_xfer_len) { --- 140 unchanged lines hidden --- |