xes: Remove leftover code
The platforms here have been removed, but the common code directory was
forgotten. Clean up.
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
diff --git a/board/xes/common/Makefile b/board/xes/common/Makefile
deleted file mode 100644
index b00accc..0000000
--- a/board/xes/common/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# (C) Copyright 2006
-# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
-
-obj-$(CONFIG_MPC86xx) += fsl_8xxx_clk.o
-obj-$(CONFIG_ARCH_P2020) += fsl_8xxx_clk.o
-obj-$(CONFIG_MPC85xx) += fsl_8xxx_misc.o board.o
-obj-$(CONFIG_MPC86xx) += fsl_8xxx_misc.o board.o
diff --git a/board/xes/common/board.c b/board/xes/common/board.c
deleted file mode 100644
index 053b07a..0000000
--- a/board/xes/common/board.c
+++ /dev/null
@@ -1,67 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright 2009 Extreme Engineering Solutions, Inc.
- */
-
-#include <common.h>
-#include <env.h>
-#include "fsl_8xxx_misc.h"
-#include <init.h>
-
-int checkboard(void)
-{
- char name[] = CONFIG_SYS_BOARD_NAME;
- char buf[64];
- char *s;
- int i;
-
-#ifdef CONFIG_SYS_FORM_CUSTOM
- s = "Custom";
-#elif CONFIG_SYS_FORM_6U_CPCI
- s = "6U CompactPCI";
-#elif CONFIG_SYS_FORM_ATCA_PMC
- s = "ATCA w/PMC";
-#elif CONFIG_SYS_FORM_ATCA_AMC
- s = "ATCA w/AMC";
-#elif CONFIG_SYS_FORM_VME
- s = "VME";
-#elif CONFIG_SYS_FORM_6U_VPX
- s = "6U VPX";
-#elif CONFIG_SYS_FORM_PMC
- s = "PMC";
-#elif CONFIG_SYS_FORM_PCI
- s = "PCI";
-#elif CONFIG_SYS_FORM_3U_CPCI
- s = "3U CompactPCI";
-#elif CONFIG_SYS_FORM_AMC
- s = "AdvancedMC";
-#elif CONFIG_SYS_FORM_XMC
- s = "XMC";
-#elif CONFIG_SYS_FORM_PMC_XMC
- s = "PMC/XMC";
-#elif CONFIG_SYS_FORM_PCI_EXPRESS
- s = "PCI Express";
-#elif CONFIG_SYS_FORM_3U_VPX
- s = "3U VPX";
-#else
-#error "Form factor not defined"
-#endif
-
- name[strlen(name) - 1] += get_board_derivative();
- printf("Board: X-ES %s %s SBC\n", name, s);
-
- /* Display board specific information */
- puts(" ");
- i = env_get_f("board_rev", buf, sizeof(buf));
- if (i > 0)
- printf("Rev %s, ", buf);
- i = env_get_f("serial#", buf, sizeof(buf));
- if (i > 0)
- printf("Serial# %s, ", buf);
- i = env_get_f("board_cfg", buf, sizeof(buf));
- if (i > 0)
- printf("Cfg %s", buf);
- puts("\n");
-
- return 0;
-}
diff --git a/board/xes/common/fsl_8xxx_clk.c b/board/xes/common/fsl_8xxx_clk.c
deleted file mode 100644
index c36b2af..0000000
--- a/board/xes/common/fsl_8xxx_clk.c
+++ /dev/null
@@ -1,54 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright 2008 Extreme Engineering Solutions, Inc.
- */
-
-#include <common.h>
-#include <clock_legacy.h>
-#include <asm/io.h>
-
-/*
- * Return SYSCLK input frequency - 50 MHz or 66 MHz depending on POR config
- */
-unsigned long get_board_sys_clk(void)
-{
-#if defined(CONFIG_MPC85xx)
- volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
-#elif defined(CONFIG_MPC86xx)
- immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
- volatile ccsr_gur_t *gur = &immap->im_gur;
-#endif
-
- if (in_be32(&gur->gpporcr) & 0x10000)
- return 66666666;
- else
-#ifdef CONFIG_ARCH_P2020
- return 100000000;
-#else
- return 50000000;
-#endif
-}
-
-#ifdef CONFIG_MPC85xx
-/*
- * Return DDR input clock - synchronous with SYSCLK or 66 MHz
- * Note: 86xx doesn't support asynchronous DDR clk
- */
-unsigned long get_board_ddr_clk(void)
-{
- volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
- u32 ddr_ratio = (in_be32(&gur->porpllsr) & 0x00003e00) >> 9;
-
- if (ddr_ratio == 0x7)
- return get_board_sys_clk();
-
-#ifdef CONFIG_ARCH_P2020
- if (in_be32(&gur->gpporcr) & 0x20000)
- return 66666666;
- else
- return 100000000;
-#else
- return 66666666;
-#endif
-}
-#endif
diff --git a/board/xes/common/fsl_8xxx_misc.c b/board/xes/common/fsl_8xxx_misc.c
deleted file mode 100644
index bc7e5c5..0000000
--- a/board/xes/common/fsl_8xxx_misc.c
+++ /dev/null
@@ -1,43 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright 2008 Extreme Engineering Solutions, Inc.
- */
-
-#include <common.h>
-#include <asm/mmu.h>
-#ifdef CONFIG_PCA953X
-#include <pca953x.h>
-
-/*
- * Determine if a board's flashes are write protected
- */
-int board_flash_wp_on(void)
-{
- if (pca953x_get_val(CFG_SYS_I2C_PCA953X_ADDR0) &
- CONFIG_SYS_PCA953X_NVM_WP)
- return 1;
-
- return 0;
-}
-#endif
-
-/*
- * Return a board's derivative model number. For example:
- * return 2 for the XPedite5372 and return 1 for the XPedite5201.
- */
-uint get_board_derivative(void)
-{
-#if defined(CONFIG_MPC85xx)
- volatile ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
-#elif defined(CONFIG_MPC86xx)
- volatile immap_t *immap = (immap_t *)CFG_SYS_CCSRBAR;
- volatile ccsr_gur_t *gur = &immap->im_gur;
-#endif
-
- /*
- * The top 4 lines of the local bus address are pulled low/high and
- * can be read to determine the least significant digit of a board's
- * model number.
- */
- return gur->gpporcr >> 28;
-}
diff --git a/board/xes/common/fsl_8xxx_misc.h b/board/xes/common/fsl_8xxx_misc.h
deleted file mode 100644
index 6e4858f..0000000
--- a/board/xes/common/fsl_8xxx_misc.h
+++ /dev/null
@@ -1,11 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright 2008 Extreme Engineering Solutions, Inc.
- */
-
-#ifndef __FSL_8XXX_MISC_H___
-#define __FSL_8XXX_MISC_H___
-
-uint get_board_derivative(void);
-
-#endif /* __FSL_8XXX_MISC_H__ */