From 638303b396e1d7b394a3e496a3526518eb8b28c0 Mon Sep 17 00:00:00 2001
From: JamesH1978 <87171443+JamesH1978@users.noreply.github.com>
Date: Fri, 14 Oct 2022 00:35:07 +0100
Subject: [PATCH] spi_flash: Update to fix SKR-3 config (#5827)

it seems I made an error with my code for the SKR 3, and I copied the code from the wrong host , this PR fixes that. I have just retested with the right code and works as expected, this is confirmed by @adelyser who brought the issue to my attention.

Signed-off-by: James Hartley <james@hartleyns.com>
---
 scripts/spi_flash/board_defs.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/spi_flash/board_defs.py b/scripts/spi_flash/board_defs.py
index 43921d43b..51ff276dc 100644
--- a/scripts/spi_flash/board_defs.py
+++ b/scripts/spi_flash/board_defs.py
@@ -89,8 +89,9 @@ BOARD_DEFS = {
     },
     'btt-skr-3': {
         'mcu': 'stm32h743xx',
-        'spi_bus': 'spi3a',
-        'cs_pin': 'PA15',
+        'spi_bus': 'swspi',
+        'spi_pins': "PC8,PD2,PC12",
+        'cs_pin': 'PC11',
         'skip_verify': True
     },
     'creality-v4.2.2': {