summaryrefslogtreecommitdiffstats
path: root/arch/mips/mach-mscc/include/mach
Commit message (Collapse)AuthorAgeFilesLines
* mscc: Drop dm.h header fileSimon Glass2020-08-035-15/+0
| | | | | | | This header file should not be included in other header files. Remove it from each one and use a forward declaration instead. Signed-off-by: Simon Glass <sjg@chromium.org>
* common: Drop linux/bitops.h from common headerSimon Glass2020-05-1817-0/+20
| | | | | | Move this uncommon header out of the common header. Signed-off-by: Simon Glass <sjg@chromium.org>
* mips: vcoreiii: Fix cache coherency issuesLars Povlsen2020-04-091-4/+0
| | | | | | | | | | | | | | | | | This patch fixes an stability issue seen on some vcoreiii targets, which was root caused to a cache inconsistency situation. The inconsistency was caused by having kuseg pointing to NOR area but used as a stack/gd/heap area during initialization, while only relatively late remapping the RAM area into kuseg position. The fix is to initialize the DDR right after the TLB setup, and then remapping it into position before gd/stack/heap usage. Reported-by: Ramin Seyed-Moussavi <ramin.moussavi@yacoub.de> Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com> Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>
* net: mscc: ocelot: Update network driver for pcb120Horatiu Vultur2019-05-031-0/+1
| | | | | | Update Ocelot network driver to have support also for pcb120. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
* mips: mscc: serval: Fix resetHoratiu Vultur2019-05-031-25/+30
| | | | | | | | | In case the ddr training was failing, it couldn't reset, it was just hanging. Therefore reimplement it, so when ddr training is failing it would call _machine_restart, which power downs the DDR and does a force reset. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
* net: Add MSCC ServalT network driver.Horatiu Vultur2019-04-121-0/+2
| | | | | | | | Add network driver for Microsemi Ethernet switch. It is present on ServalT SoCs. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
* MSCC: Add support for Serval SoC family.Horatiu Vultur2019-01-236-9/+400
| | | | | | | | As Ocelot, Servalt, Luton and Jaguar2, this family of SoCs are found in Microsemi Switches solution. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
* MSCC: Add support for Servalt SoC family.Horatiu Vultur2019-01-236-8/+407
| | | | | | | | As Ocelot, Luton and Jaguar2, this family of SoCs are found in Microsemi Switches solution. Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
* MSCC: Add support for Jaguar2 SOC familyHoratiu Vultur2019-01-166-7/+426
| | | | | | | As the Ocelot and Luton SoCs, this family of SoCs are found in Microsemi Switches solution. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
* mips: spi: mscc: Add fast bitbang SPI driverLars Povlsen2019-01-161-0/+38
| | | | | | | | | | This patch add a new SPI driver for MSCC SOCs that does not sport the designware SPI hardware controller. Performance gain: 7.664 seconds vs. 17.633 for 1 Mbyte write. Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
* mips: mscc: luton+ocelot: Remove board config options, do probingLars Povlsen2019-01-161-0/+2
| | | | | | | | | | | | | | | As we are moving to multi-dtb and board detection, remove static board config options, and introduce board probing instead. Luton: This add single-binary support for the two MSCC luton-based reference boards - pcb090 and pcb091. The SoC chip ID is used to determine the board type. Ocelot: This add single-binary support for the two MSCC ocelot-based reference boards - pcb120 and pcb123. The PHY ids on specific ports are used to determine the board type. Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>
* mips: mscc: Add generic GPIO control utility functionLars Povlsen2019-01-163-0/+6
| | | | | | | The GPIO control function can be used for controlling alternate functions associated with a GPIO. Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>
* mips: mscc: Add generic PHY MIIM utility functionsLars Povlsen2019-01-163-0/+71
| | | | | | | The PHY MIIM utility functions can/will be used for board detection purposes. Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>
* MSCC: add support for Luton SoCsGregory CLEMENT2018-12-195-3/+396
| | | | | | | As the Ocelots SoCs, this family of SoCs are found in the Microsemi Switches solution. Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
* MSCC: add support for Ocelot SoCsGregory CLEMENT2018-12-196-0/+1106
This family of SoCs are found in the Microsemi Switches solution and have already a support in the linux kernel. Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>