From f1991bdf9743cbdf90b98331232f90d4c12bbce3 Mon Sep 17 00:00:00 2001
From: Heinrich Schuchardt <xypron.glpk@gmx.de>
Date: Mon, 16 Aug 2021 07:54:10 +0200
Subject: [PATCH] doc: move i.MX7D/i.MX8MM A/B booting to board specific

Having "i.MX7D/i.MX8MM SRC_GPR10 PERSIST_SECONDARY_BOOT for bootloader A/B
switching" at the top level of the documentation tree does not make sense.
Move it to board specific information.

Fixes: 59e3d1bd4992 ("doc: imx: psb: Document usage of SRC_GPR10 PERSIST_SECONDARY_BOOT for A/B switching")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 doc/board/freescale/index.rst             |  1 +
 doc/{imx/misc => board/freescale}/psb.rst |  0
 doc/imx/index.rst                         |  9 ---------
 doc/imx/misc/index.rst                    |  9 ---------
 doc/index.rst                             | 11 -----------
 5 files changed, 1 insertion(+), 29 deletions(-)
 rename doc/{imx/misc => board/freescale}/psb.rst (100%)
 delete mode 100644 doc/imx/index.rst
 delete mode 100644 doc/imx/misc/index.rst

diff --git a/doc/board/freescale/index.rst b/doc/board/freescale/index.rst
index bddc6c6c2c..aa192effab 100644
--- a/doc/board/freescale/index.rst
+++ b/doc/board/freescale/index.rst
@@ -17,3 +17,4 @@ Freescale
    mx6sabresd
    mx6ul_14x14_evk
    mx6ullevk
+   psb
diff --git a/doc/imx/misc/psb.rst b/doc/board/freescale/psb.rst
similarity index 100%
rename from doc/imx/misc/psb.rst
rename to doc/board/freescale/psb.rst
diff --git a/doc/imx/index.rst b/doc/imx/index.rst
deleted file mode 100644
index b225b1d183..0000000000
--- a/doc/imx/index.rst
+++ /dev/null
@@ -1,9 +0,0 @@
-.. SPDX-License-Identifier: GPL-2.0+
-
-NXP i.MX Machine-specific doc
-=============================
-
-.. toctree::
-   :maxdepth: 2
-
-   misc/index
diff --git a/doc/imx/misc/index.rst b/doc/imx/misc/index.rst
deleted file mode 100644
index 85fbdb6588..0000000000
--- a/doc/imx/misc/index.rst
+++ /dev/null
@@ -1,9 +0,0 @@
-.. SPDX-License-Identifier: GPL-2.0+
-
-Miscellaneous
-=============
-
-.. toctree::
-   :maxdepth: 2
-
-   psb
diff --git a/doc/index.rst b/doc/index.rst
index 8066fcbfc0..02de1d4684 100644
--- a/doc/index.rst
+++ b/doc/index.rst
@@ -64,17 +64,6 @@ implementation.
 
    arch/index
 
-Machine-specific doc
---------------------
-
-These books provide programming details about machine-specific
-implementation.
-
-.. toctree::
-   :maxdepth: 2
-
-   imx/index
-
 Board-specific doc
 ------------------
 
-- 
2.39.5