]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
arm64: zynqmp: Remove slcr with mio status pin detection
authorMichal Simek <michal.simek@xilinx.com>
Thu, 2 Nov 2017 07:48:48 +0000 (08:48 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 28 Nov 2017 15:08:55 +0000 (16:08 +0100)
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
arch/arm/cpu/armv8/zynqmp/slcr.c [deleted file]
arch/arm/include/asm/arch-zynqmp/sys_proto.h

index 013f136707b5ce891bbaae529fbd2259174d8a39..72dee3ded48f4c6213a90f8a68f5f1bafb9adc2f 100644 (file)
@@ -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 (file)
index 713e9a6..0000000
+++ /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;
-}
index e52abd71a5a30ca013ed861b274cea9395c0a619..db1d5ef306f8a5b6d576716d204cdb46ea469631 100644 (file)
@@ -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);