From 4e58f9387a0d4485f5e9678a93528cad9afb167f Mon Sep 17 00:00:00 2001
From: Scott Lahteine <github@thinkyhead.com>
Date: Sun, 4 Aug 2019 21:17:34 -0500
Subject: [PATCH] Onboard SD for MKS Robin

In response to #9771
---
 Marlin/src/pins/stm32/pins_MKS_ROBIN.h | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/Marlin/src/pins/stm32/pins_MKS_ROBIN.h b/Marlin/src/pins/stm32/pins_MKS_ROBIN.h
index dd43383c0e..1cd120091f 100644
--- a/Marlin/src/pins/stm32/pins_MKS_ROBIN.h
+++ b/Marlin/src/pins/stm32/pins_MKS_ROBIN.h
@@ -124,5 +124,18 @@
 #define FSMC_CS_PIN        PG12  // NE4
 #define FSMC_RS_PIN        PF0   // A0
 
-#define SD_DETECT_PIN      PF12
-#define SDSS               -1
+//
+// Custom SPI pins
+//
+#define SCK_PIN            PC12
+#define MISO_PIN           PC8
+#define MOSI_PIN           PD2
+#define SS_PIN              -1
+
+//
+// Onboard SD Card
+//
+#define ONBOARD_SD_CS      PC11
+#define SDSS               PD2
+
+#define SD_DETECT_PIN       -1   // PF12
-- 
GitLab