summaryrefslogtreecommitdiffstats
path: root/external
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2015-11-25 16:12:36 +1030
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-26 15:16:36 +1100
commit4623ea7d713eff18014af9dc1b50a23caacf58b7 (patch)
tree31fe6b7f55438e20c080c507e4df84342893a8fa /external
parent558c819962d39ed9700a0503b1a3c11a044e6d33 (diff)
downloadtalos-skiboot-4623ea7d713eff18014af9dc1b50a23caacf58b7.tar.gz
talos-skiboot-4623ea7d713eff18014af9dc1b50a23caacf58b7.zip
pflash: Remove ast.h
pflash contained a copy of the include/ast.h header. It had grown stale, so remove in and link in the common header. Note that it's hard to test that we haven't broken tools in the external/ directory these days; when making changes we need to test with amd64, ppc64, ppc64le and arm to ensure that everything can build! Signed-off-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Cédric Le Goater <clg@fr.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rw-r--r--external/common/rules.mk1
-rw-r--r--external/pflash/ast.h67
2 files changed, 1 insertions, 67 deletions
diff --git a/external/common/rules.mk b/external/common/rules.mk
index 3ae9181d..7ebf4853 100644
--- a/external/common/rules.mk
+++ b/external/common/rules.mk
@@ -20,6 +20,7 @@ endif
.PHONY: arch_links
arch_links:
ln -sf ../../hw/ast-bmc/ast-sf-ctrl.c common/ast-sf-ctrl.c
+ ln -sf ../../include/ast.h common/ast.h
ln -sf arch_flash_$(arch)_io.h common/io.h
.PHONY: arch_clean
diff --git a/external/pflash/ast.h b/external/pflash/ast.h
deleted file mode 100644
index 1910eb49..00000000
--- a/external/pflash/ast.h
+++ /dev/null
@@ -1,67 +0,0 @@
-#ifndef __AST_H
-#define __AST_H
-
-/*
- * AHB bus registers
- */
-
-/* SPI Flash controller #1 (BMC) */
-#define BMC_SPI_FCTL_BASE 0x1E620000
-#define BMC_SPI_FCTL_CTRL (BMC_SPI_FCTL_BASE + 0x10)
-#define BMC_SPI_FREAD_TIMING (BMC_SPI_FCTL_BASE + 0x94)
-#define BMC_FLASH_BASE 0x20000000
-
-/* SPI Flash controller #2 (PNOR) */
-#define PNOR_SPI_FCTL_BASE 0x1E630000
-#define PNOR_SPI_FCTL_CONF (PNOR_SPI_FCTL_BASE + 0x00)
-#define PNOR_SPI_FCTL_CTRL (PNOR_SPI_FCTL_BASE + 0x04)
-#define PNOR_SPI_FREAD_TIMING (PNOR_SPI_FCTL_BASE + 0x14)
-#define PNOR_FLASH_BASE 0x30000000
-
-/* LPC registers */
-#define LPC_BASE 0x1e789000
-#define LPC_HICR6 (LPC_BASE + 0x80)
-#define LPC_HICR7 (LPC_BASE + 0x88)
-#define LPC_HICR8 (LPC_BASE + 0x8c)
-
-/* SCU registers */
-#define SCU_BASE 0x1e6e2000
-#define SCU_HW_STRAPPING (SCU_BASE + 0x70)
-
-/*
- * AHB Accessors
- */
-#ifndef __SKIBOOT__
-#include "common/io.h"
-#else
-
-/*
- * Register accessors, return byteswapped values
- * (IE. LE registers)
- */
-void ast_ahb_writel(uint32_t val, uint32_t reg);
-uint32_t ast_ahb_readl(uint32_t reg);
-
-/*
- * copy to/from accessors. Cannot cross IDSEL boundaries (256M)
- */
-int ast_copy_to_ahb(uint32_t reg, const void *src, uint32_t len);
-int ast_copy_from_ahb(void *dst, uint32_t reg, uint32_t len);
-
-void ast_io_init(void);
-
-#endif /* __SKIBOOT__ */
-
-/*
- * SPI Flash controllers
- */
-#define AST_SF_TYPE_PNOR 0
-#define AST_SF_TYPE_BMC 1
-#define AST_SF_TYPE_MEM 2
-
-struct spi_flash_ctrl;
-int ast_sf_open(uint8_t type, struct spi_flash_ctrl **ctrl);
-void ast_sf_close(struct spi_flash_ctrl *ctrl);
-
-
-#endif /* __AST_H */
OpenPOWER on IntegriCloud