| aca95fb6 | 31-Jan-2025 |
Paul Mackerras <paulus@ozlabs.org> |
powerpc/microwatt: Add SMP support
This adds support for Microwatt systems with more than one core, and updates the device tree for a 2-core version.
The secondary CPUs are started and sent to spin
powerpc/microwatt: Add SMP support
This adds support for Microwatt systems with more than one core, and updates the device tree for a 2-core version.
The secondary CPUs are started and sent to spin in __secondary_hold very early on, in the platform probe function. The reason for doing this is so that they are there when smp_release_cpus() gets called, which is before the platform init_smp function or even the platform setup_arch function gets called.
Note that having two CPUs in the device tree doesn't preclude operation with only one CPU. The SYSCON_CPU_CTRL register has a read-only field which indicates the number of CPU cores, so microwatt_init_smp() will only start as many CPU cores as are present in the system, and any extra CPU device-tree nodes will just be ignored.
Signed-off-by: Paul Mackerras <paulus@ozlabs.org> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/Z5xt8aooKyXZv6Kf@thinks.paulus.ozlabs.org
show more ...
|
| 2b0a438d | 31-Jan-2025 |
Paul Mackerras <paulus@ozlabs.org> |
powerpc/microwatt: Define an idle power-save function
This uses the 'wait' instruction to pause instruction execution when idle until an interrupt occurs.
Signed-off-by: Paul Mackerras <paulus@ozla
powerpc/microwatt: Define an idle power-save function
This uses the 'wait' instruction to pause instruction execution when idle until an interrupt occurs.
Signed-off-by: Paul Mackerras <paulus@ozlabs.org> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/Z5xtl1m_Gqc-HLjY@thinks.paulus.ozlabs.org
show more ...
|
| c25769fd | 18-Jun-2021 |
Paul Mackerras <paulus@ozlabs.org> |
powerpc/microwatt: Add support for hardware random number generator
Microwatt's hardware RNG is accessed using the DARN instruction.
Signed-off-by: Paul Mackerras <paulus@ozlabs.org> Reviewed-by: N
powerpc/microwatt: Add support for hardware random number generator
Microwatt's hardware RNG is accessed using the DARN instruction.
Signed-off-by: Paul Mackerras <paulus@ozlabs.org> Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/YMwXPHlV/ZleiQUY@thinks.paulus.ozlabs.org
show more ...
|
| 48b545b8 | 18-Jun-2021 |
Benjamin Herrenschmidt <benh@kernel.crashing.org> |
powerpc/microwatt: Use standard 16550 UART for console
This adds support to the Microwatt platform to use the standard 16550-style UART which available in the standalone Microwatt FPGA.
Signed-off-
powerpc/microwatt: Use standard 16550 UART for console
This adds support to the Microwatt platform to use the standard 16550-style UART which available in the standalone Microwatt FPGA.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@ozlabs.org> Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/YMwXGCTzedpQje7r@thinks.paulus.ozlabs.org
show more ...
|
| 0d0f9e5f | 18-Jun-2021 |
Benjamin Herrenschmidt <benh@kernel.crashing.org> |
powerpc/microwatt: Populate platform bus from device-tree
Just like any other embedded platform.
Add an empty soc node.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-
powerpc/microwatt: Populate platform bus from device-tree
Just like any other embedded platform.
Add an empty soc node.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@ozlabs.org> Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/YMwWx98+PMibZq/G@thinks.paulus.ozlabs.org
show more ...
|