]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arc: Rename AXS101 board to more generic AXS10x
authorAlexey Brodkin <abrodkin@synopsys.com>
Thu, 4 Aug 2016 12:00:35 +0000 (15:00 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Fri, 5 Aug 2016 09:50:33 +0000 (12:50 +0300)
As of now we have 2 flavors of ARC SDP boards:
 1) AXS101 - with ARC770 in ASIC
 2) AXS103 - with ARC HS38 in FPGA

Both options share exactly the same base-board and only differ with
CPU-tiles in use. That means all peripherals are the same (they are
implemented in FPGA on the base-board) and so generic board could be
used for both.

While at it:
 * Recreated defconfigs with savedefconfig
 * In include/configs/axs10x.h numerical sizes replaced with
defines from linux/sizes.h for better readability.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
12 files changed:
arch/arc/Kconfig
arch/arc/dts/Makefile
board/synopsys/axs101/Makefile [deleted file]
board/synopsys/axs10x/Kconfig [moved from board/synopsys/axs101/Kconfig with 62% similarity]
board/synopsys/axs10x/MAINTAINERS [moved from board/synopsys/axs101/MAINTAINERS with 62% similarity]
board/synopsys/axs10x/Makefile [new file with mode: 0644]
board/synopsys/axs10x/axs10x.c [moved from board/synopsys/axs101/axs101.c with 100% similarity]
board/synopsys/axs10x/axs10x.h [moved from board/synopsys/axs101/axs10x.h with 100% similarity]
board/synopsys/axs10x/nand.c [moved from board/synopsys/axs101/nand.c with 100% similarity]
configs/axs101_defconfig
configs/axs103_defconfig
include/configs/axs10x.h [moved from include/configs/axs101.h with 88% similarity]

index b81d0ca3c35ac938c490d42fe8464458ea08fbba..4c5696be1c3c834dcd8626aa412d9f878fbecd72 100644 (file)
@@ -118,7 +118,7 @@ config SYS_DCACHE_OFF
 
 choice
        prompt "Target select"
-       default TARGET_AXS101
+       default TARGET_AXS10X
 
 config TARGET_TB100
        bool "Support tb100"
@@ -126,13 +126,13 @@ config TARGET_TB100
 config TARGET_NSIM
        bool "Support standalone nSIM & Free nSIM"
 
-config TARGET_AXS101
-       bool "Support axs101"
+config TARGET_AXS10X
+       bool "Support Synopsys Designware SDP board (AXS101 & AXS103)"
 
 endchoice
 
 source "board/abilis/tb100/Kconfig"
 source "board/synopsys/Kconfig"
-source "board/synopsys/axs101/Kconfig"
+source "board/synopsys/axs10x/Kconfig"
 
 endmenu
index 196f8829637425bd57703e42d20d93b9260da4f3..1d94c082ab57d9a1adef739b4a5b4889b2aa119b 100644 (file)
@@ -2,7 +2,7 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-dtb-$(CONFIG_TARGET_AXS101) +=  axs10x.dtb
+dtb-$(CONFIG_TARGET_AXS10X) +=  axs10x.dtb
 dtb-$(CONFIG_TARGET_NSIM) +=  nsim.dtb
 dtb-$(CONFIG_TARGET_TB100) +=  abilis_tb100.dtb
 
diff --git a/board/synopsys/axs101/Makefile b/board/synopsys/axs101/Makefile
deleted file mode 100644 (file)
index f0965f7..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#
-# Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
-#
-# SPDX-License-Identifier:     GPL-2.0+
-#
-
-obj-y  += axs101.o
-obj-$(CONFIG_CMD_NAND) += nand.o
similarity index 62%
rename from board/synopsys/axs101/Kconfig
rename to board/synopsys/axs10x/Kconfig
index 79e5400ea86b14f3d6af0c598be8b7c54f07ef58..c60b6a20473e958ee98cb90da2deef98e2f97bdf 100644 (file)
@@ -1,12 +1,12 @@
-if TARGET_AXS101
+if TARGET_AXS10X
 
 config SYS_BOARD
-       default "axs101"
+       default "axs10x"
 
 config SYS_VENDOR
        default "synopsys"
 
 config SYS_CONFIG_NAME
-       default "axs101"
+       default "axs10x"
 
 endif
similarity index 62%
rename from board/synopsys/axs101/MAINTAINERS
rename to board/synopsys/axs10x/MAINTAINERS
index 79fff8eb3e262eede7aee4c9a4fa190c96787bd3..abb890b714cb7df435990001563c9fbff0cc92c3 100644 (file)
@@ -1,7 +1,7 @@
-AXS101 BOARD
+AXS10X BOARD
 M:     Alexey Brodkin <abrodkin@synopsys.com>
 S:     Maintained
-F:     board/synopsys/axs101/
-F:     include/configs/axs101.h
+F:     board/synopsys/axs10x/
+F:     include/configs/axs10x.h
 F:     configs/axs101_defconfig
 F:     configs/axs103_defconfig
diff --git a/board/synopsys/axs10x/Makefile b/board/synopsys/axs10x/Makefile
new file mode 100644 (file)
index 0000000..e29d520
--- /dev/null
@@ -0,0 +1,8 @@
+#
+# Copyright (C) 2013-2016 Synopsys, Inc. All rights reserved.
+#
+# SPDX-License-Identifier:     GPL-2.0+
+#
+
+obj-y  += axs10x.o
+obj-$(CONFIG_CMD_NAND) += nand.o
index 10e802d65530a9be02ce44c4ce0a3e08f1685382..dd82581febcdafd167fc5e9ad3d80cceb5c006bf 100644 (file)
@@ -1,7 +1,7 @@
 CONFIG_ARC=y
 CONFIG_SYS_DCACHE_OFF=y
-CONFIG_DM_SERIAL=y
 CONFIG_SYS_CLK_FREQ=750000000
+CONFIG_DM_SERIAL=y
 CONFIG_SYS_TEXT_BASE=0x81000000
 CONFIG_DEFAULT_DEVICE_TREE="axs10x"
 CONFIG_BOOTDELAY=3
index c8474de3c462226a34ad386d6760cd358b38b94b..8977f81c39bcb2302f4dfdcf252e47c8433bb272 100644 (file)
@@ -1,7 +1,7 @@
 CONFIG_ARC=y
 CONFIG_ISA_ARCV2=y
-CONFIG_DM_SERIAL=y
 CONFIG_SYS_CLK_FREQ=100000000
+CONFIG_DM_SERIAL=y
 CONFIG_SYS_TEXT_BASE=0x81000000
 CONFIG_DEFAULT_DEVICE_TREE="axs10x"
 CONFIG_BOOTDELAY=3
similarity index 88%
rename from include/configs/axs101.h
rename to include/configs/axs10x.h
index c0b68e227753f4db6d80f03881605d56e1333883..b99248ec989a01ea5f860c20c975909104baac57 100644 (file)
@@ -1,12 +1,13 @@
 /*
- * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
+ * Copyright (C) 2013-2016 Synopsys, Inc. All rights reserved.
  *
  * SPDX-License-Identifier:    GPL-2.0+
  */
 
-#ifndef _CONFIG_AXS101_H_
-#define _CONFIG_AXS101_H_
+#ifndef _CONFIG_AXS10X_H_
+#define _CONFIG_AXS10X_H_
 
+#include <linux/sizes.h>
 /*
  *  CPU configuration
  */
 
 #define CONFIG_SYS_DDR_SDRAM_BASE      0x80000000
 #define CONFIG_SYS_SDRAM_BASE          CONFIG_SYS_DDR_SDRAM_BASE
-#define CONFIG_SYS_SDRAM_SIZE          0x20000000      /* 512 Mb */
+#define CONFIG_SYS_SDRAM_SIZE          SZ_512M
 
 #define CONFIG_SYS_INIT_SP_ADDR                \
        (CONFIG_SYS_SDRAM_BASE + 0x1000 - GENERATED_GBL_DATA_SIZE)
 
-#define CONFIG_SYS_MALLOC_LEN          0x200000        /* 2 MB */
-#define CONFIG_SYS_BOOTM_LEN           0x2000000       /* 32 MB */
+#define CONFIG_SYS_MALLOC_LEN          SZ_2M
+#define CONFIG_SYS_BOOTM_LEN           SZ_32M
 #define CONFIG_SYS_LOAD_ADDR           0x82000000
 
 /*
  * Environment settings
  */
 #define CONFIG_ENV_IS_IN_EEPROM
-#define CONFIG_ENV_SIZE                        0x00200         /* 512 bytes */
+#define CONFIG_ENV_SIZE                        SZ_512
 #define CONFIG_ENV_OFFSET              0
 
 /*
  * Console configuration
  */
 #define CONFIG_SYS_LONGHELP
-#define CONFIG_SYS_CBSIZE              256
+#define CONFIG_SYS_CBSIZE              SZ_256
 #define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE
 #define CONFIG_SYS_PBSIZE              (CONFIG_SYS_CBSIZE + \
                                                sizeof(CONFIG_SYS_PROMPT) + 16)
  */
 #define CONFIG_BOUNCE_BUFFER
 
-#endif /* _CONFIG_AXS101_H_ */
+#endif /* _CONFIG_AXS10X_H_ */