Commit d4e2237
mtd: spinand: Gather all the bus interface steps in one single function
[ Upstream commit be0b86c ]
Writing the quad enable bit in one helper and doing the chip
configuration in another does not make much sense from a bus interface
setup point of view.
Instead, let's create a broader helper which is going to be in charge of
all the bus configuration steps at once. This will specifically allow to
transition to octal DDR mode, and even fallback to quad (if suppoorted)
or single mode otherwise.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Stable-dep-of: 25a915f ("mtd: spinand: winbond: Clarify when to enable the HS bit")
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent a602b7e commit d4e2237
1 file changed
Lines changed: 37 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
| 181 | + | |
181 | 182 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | 183 | | |
193 | 184 | | |
194 | 185 | | |
| |||
1314 | 1305 | | |
1315 | 1306 | | |
1316 | 1307 | | |
1317 | | - | |
1318 | | - | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
1323 | 1308 | | |
1324 | 1309 | | |
1325 | 1310 | | |
| |||
1496 | 1481 | | |
1497 | 1482 | | |
1498 | 1483 | | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
1499 | 1509 | | |
1500 | 1510 | | |
1501 | 1511 | | |
| |||
1506 | 1516 | | |
1507 | 1517 | | |
1508 | 1518 | | |
1509 | | - | |
1510 | | - | |
1511 | | - | |
1512 | | - | |
1513 | 1519 | | |
1514 | 1520 | | |
1515 | 1521 | | |
| |||
1522 | 1528 | | |
1523 | 1529 | | |
1524 | 1530 | | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
1525 | 1535 | | |
1526 | 1536 | | |
1527 | 1537 | | |
1528 | 1538 | | |
1529 | | - | |
| 1539 | + | |
1530 | 1540 | | |
1531 | 1541 | | |
1532 | 1542 | | |
1533 | | - | |
| 1543 | + | |
1534 | 1544 | | |
1535 | 1545 | | |
1536 | | - | |
1537 | | - | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
1538 | 1550 | | |
1539 | 1551 | | |
1540 | 1552 | | |
| |||
0 commit comments