From 32b6f1a5c8fbf57dd9245c9e12d8867e0b3d99ee Mon Sep 17 00:00:00 2001
From: Christian Lamparter <chunkeey@gmail.com>
Date: Sat, 31 Jul 2021 23:16:05 +0200
Subject: [PATCH] ath79: nand: enable software BCH support

This is necessary to support the Meraki MR18 and likely Z1
as well.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
---
 target/linux/ath79/nand/config-default | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/ath79/nand/config-default b/target/linux/ath79/nand/config-default
index c04a3d1990..3072feea2f 100644
--- a/target/linux/ath79/nand/config-default
+++ b/target/linux/ath79/nand/config-default
@@ -8,6 +8,7 @@ CONFIG_LZO_DECOMPRESS=y
 CONFIG_MTD_NAND=y
 CONFIG_MTD_NAND_AR934X=y
 CONFIG_MTD_NAND_CORE=y
+CONFIG_MTD_NAND_ECC_SW_BCH=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_MTD_SPI_NAND=y
 CONFIG_MTD_UBI=y
-- 
2.30.2