All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 01/11] arm64: zynqmp: Remove slcr with mio status pin detection
@ 2017-11-06 12:02 Michal Simek
  2017-11-06 12:02 ` [U-Boot] [PATCH 02/11] arm64: zynqmp: mp: Correct the R5 release sequence Michal Simek
                   ` (9 more replies)
  0 siblings, 10 replies; 13+ messages in thread
From: Michal Simek @ 2017-11-06 12:02 UTC (permalink / raw)
  To: u-boot

This code is not used on this platform and it is not called.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 arch/arm/cpu/armv8/zynqmp/Makefile           |  1 -
 arch/arm/cpu/armv8/zynqmp/slcr.c             | 63 ----------------------------
 arch/arm/include/asm/arch-zynqmp/sys_proto.h |  2 -
 3 files changed, 66 deletions(-)
 delete mode 100644 arch/arm/cpu/armv8/zynqmp/slcr.c

diff --git a/arch/arm/cpu/armv8/zynqmp/Makefile b/arch/arm/cpu/armv8/zynqmp/Makefile
index 013f136707b5..72dee3ded48f 100644
--- a/arch/arm/cpu/armv8/zynqmp/Makefile
+++ b/arch/arm/cpu/armv8/zynqmp/Makefile
@@ -8,5 +8,4 @@
 obj-y	+= clk.o
 obj-y	+= cpu.o
 obj-$(CONFIG_MP)	+= mp.o
-obj-y	+= slcr.o
 obj-$(CONFIG_SPL_BUILD) += spl.o handoff.o
diff --git a/arch/arm/cpu/armv8/zynqmp/slcr.c b/arch/arm/cpu/armv8/zynqmp/slcr.c
deleted file mode 100644
index 713e9a62c019..000000000000
--- a/arch/arm/cpu/armv8/zynqmp/slcr.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * (C) Copyright 2014 - 2015 Xilinx, Inc.
- * Michal Simek <michal.simek@xilinx.com>
- *
- * SPDX-License-Identifier:	GPL-2.0+
- */
-
-#include <common.h>
-#include <asm/io.h>
-#include <malloc.h>
-#include <asm/arch/hardware.h>
-#include <asm/arch/sys_proto.h>
-#include <asm/arch/clk.h>
-
-/*
- * zynq_slcr_mio_get_status - Get the status of MIO peripheral.
- *
- * @peri_name: Name of the peripheral for checking MIO status
- * @get_pins: Pointer to array of get pin for this peripheral
- * @num_pins: Number of pins for this peripheral
- * @mask: Mask value
- * @check_val: Required check value to get the status of  periph
- */
-struct zynq_slcr_mio_get_status {
-	const char *peri_name;
-	const int *get_pins;
-	int num_pins;
-	u32 mask;
-	u32 check_val;
-};
-
-static const struct zynq_slcr_mio_get_status mio_periphs[] = {
-};
-
-/*
- * zynq_slcr_get_mio_pin_status - Get the MIO pin status of peripheral.
- *
- * @periph: Name of the peripheral
- *
- * Returns count to indicate the number of pins configured for the
- * given @periph.
- */
-int zynq_slcr_get_mio_pin_status(const char *periph)
-{
-	const struct zynq_slcr_mio_get_status *mio_ptr;
-	int val, i, j;
-	int mio = 0;
-
-	for (i = 0; i < ARRAY_SIZE(mio_periphs); i++) {
-		if (strcmp(periph, mio_periphs[i].peri_name) == 0) {
-			mio_ptr = &mio_periphs[i];
-			for (j = 0; j < mio_ptr->num_pins; j++) {
-				val = readl(&slcr_base->mio_pin
-						[mio_ptr->get_pins[j]]);
-				if ((val & mio_ptr->mask) == mio_ptr->check_val)
-					mio++;
-			}
-			break;
-		}
-	}
-
-	return mio;
-}
diff --git a/arch/arm/include/asm/arch-zynqmp/sys_proto.h b/arch/arm/include/asm/arch-zynqmp/sys_proto.h
index e52abd71a5a3..db1d5ef306f8 100644
--- a/arch/arm/include/asm/arch-zynqmp/sys_proto.h
+++ b/arch/arm/include/asm/arch-zynqmp/sys_proto.h
@@ -29,8 +29,6 @@ enum {
 	TCM_SPLIT,
 };
 
-int zynq_slcr_get_mio_pin_status(const char *periph);
-
 unsigned int zynqmp_get_silicon_version(void);
 
 void psu_init(void);
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-11-21 11:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-06 12:02 [U-Boot] [PATCH 01/11] arm64: zynqmp: Remove slcr with mio status pin detection Michal Simek
2017-11-06 12:02 ` [U-Boot] [PATCH 02/11] arm64: zynqmp: mp: Correct the R5 release sequence Michal Simek
2017-11-06 12:02 ` [U-Boot] [PATCH 03/11] arm64: zynqmp: Provide a Kconfig option to use specified memory for MMU table Michal Simek
2017-11-06 12:02 ` [U-Boot] [PATCH 04/11] tools: mkimage: Extend mkimage to also include pmufw Michal Simek
2017-11-20 15:38   ` Simon Glass
2017-11-21 11:58     ` Michal Simek
2017-11-06 12:02 ` [U-Boot] [PATCH 05/11] arm64: zynqmp: Enable config DEFINE_TCM_OCM_MMAP if CONFIG_MP defined Michal Simek
2017-11-06 12:02 ` [U-Boot] [PATCH 06/11] arm64: zynqmp: Add SD1 level shifter mode to alternative selection Michal Simek
2017-11-06 12:02 ` [U-Boot] [PATCH 07/11] arm64: zynqmp: Use u32 type instead of uint32_t Michal Simek
2017-11-06 12:02 ` [U-Boot] [PATCH 08/11] arm64: zynqmp: Add support for CG/EG/EV device detection Michal Simek
2017-11-06 12:02 ` [U-Boot] [PATCH 09/11] arm64: zynqmp: Add new ID for RFSoC Michal Simek
2017-11-06 12:02 ` [U-Boot] [PATCH 10/11] arm64: zynqmp: Enable debug uart for zc1751 dc5 Michal Simek
2017-11-06 12:02 ` [U-Boot] [PATCH 11/11] arm64: zynqmp: Wire QSPI boot mode for SPL Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.