Skip to content

Commit

Permalink
nds32: Remove the architecture
Browse files Browse the repository at this point in the history
As removal of nds32 has been ack'd for the Linux kernel, remove support
here as well.

Cc: Rick Chen <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Reviewed-by: Rick Chen <[email protected]>
  • Loading branch information
trini committed Apr 25, 2022
1 parent 8cfac23 commit 1123213
Show file tree
Hide file tree
Showing 89 changed files with 15 additions and 5,659 deletions.
6 changes: 3 additions & 3 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,10 @@ stages:
vmImage: $(ubuntu_vm)
strategy:
# Use almost the same target division in .travis.yml, only merged
# 4 small build jobs (arc/microblaze/nds32/xtensa) into one.
# 3 small build jobs (arc/microblaze/xtensa) into one.
matrix:
arc_microblaze_nds32_xtensa:
BUILDMAN: "arc microblaze nds32 xtensa"
arc_microblaze_xtensa:
BUILDMAN: "arc microblaze xtensa"
arm11_arm7_arm920t_arm946es:
BUILDMAN: "arm11 arm7 arm920t arm946es"
arm926ejs:
Expand Down
6 changes: 0 additions & 6 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -1057,12 +1057,6 @@ S: Orphaned (Since 2018-07)
T: git https://source.denx.de/u-boot/custodians/u-boot-nand-flash.git
F: drivers/mtd/nand/raw/

NDS32
M: Rick Chen <[email protected]>
S: Maintained
T: git https://source.denx.de/u-boot/custodians/u-boot-nds32.git
F: arch/nds32/

NETWORK
M: Joe Hershberger <[email protected]>
M: Ramon Fried <[email protected]>
Expand Down
22 changes: 2 additions & 20 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ Directory Hierarchy:
/m68k Files generic to m68k architecture
/microblaze Files generic to microblaze architecture
/mips Files generic to MIPS architecture
/nds32 Files generic to NDS32 architecture
/nios2 Files generic to Altera NIOS2 architecture
/powerpc Files generic to PowerPC architecture
/riscv Files generic to RISC-V architecture
Expand Down Expand Up @@ -2689,8 +2688,8 @@ details; basically, the header defines the following image properties:
LynxOS, pSOS, QNX, RTEMS, INTEGRITY;
Currently supported: Linux, NetBSD, VxWorks, QNX, RTEMS, INTEGRITY).
* Target CPU Architecture (Provisions for Alpha, ARM, Intel x86,
IA64, MIPS, NDS32, Nios II, PowerPC, IBM S390, SuperH, Sparc, Sparc 64 Bit;
Currently supported: ARM, Intel x86, MIPS, NDS32, Nios II, PowerPC).
IA64, MIPS, Nios II, PowerPC, IBM S390, SuperH, Sparc, Sparc 64 Bit;
Currently supported: ARM, Intel x86, MIPS, Nios II, PowerPC).
* Compression Type (uncompressed, gzip, bzip2)
* Load Address
* Entry Point
Expand Down Expand Up @@ -3402,23 +3401,6 @@ On Nios II, the ABI is documented here:
Note: on Nios II, we give "-G0" option to gcc and don't use gp
to access small data sections, so gp is free.

On NDS32, the following registers are used:

R0-R1: argument/return
R2-R5: argument
R15: temporary register for assembler
R16: trampoline register
R28: frame pointer (FP)
R29: global pointer (GP)
R30: link register (LP)
R31: stack pointer (SP)
PC: program counter (PC)

==> U-Boot will use R10 to hold a pointer to the global data

NOTE: DECLARE_GLOBAL_DATA_PTR must be used with file-global scope,
or current versions of GCC may "optimize" the code too much.

On RISC-V, the following registers are used:

x0: hard-wired zero (zero)
Expand Down
11 changes: 3 additions & 8 deletions arch/Kconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
config ARCH_MAP_SYSMEM
depends on SANDBOX || NDS32
depends on SANDBOX
def_bool y

config CREATE_ARCH_SYMLINK
Expand Down Expand Up @@ -87,10 +87,6 @@ config MIPS
select SUPPORT_OF_CONTROL
select SPL_SEPARATE_BSS if SPL

config NDS32
bool "NDS32 architecture"
select SUPPORT_OF_CONTROL

config NIOS2
bool "Nios II architecture"
select CPU
Expand Down Expand Up @@ -382,7 +378,7 @@ config SYS_IMMR

config SKIP_LOWLEVEL_INIT
bool "Skip the calls to certain low level initialization functions"
depends on ARM || NDS32 || MIPS || RISCV
depends on ARM || MIPS || RISCV
help
If enabled, then certain low level initializations (like setting up
the memory controller) are omitted and/or U-Boot does not relocate
Expand All @@ -393,7 +389,7 @@ config SKIP_LOWLEVEL_INIT

config SPL_SKIP_LOWLEVEL_INIT
bool "Skip the calls to certain low level initialization functions"
depends on SPL && (ARM || NDS32 || MIPS || RISCV)
depends on SPL && (ARM || MIPS || RISCV)
help
If enabled, then certain low level initializations (like setting up
the memory controller) are omitted and/or U-Boot does not relocate
Expand Down Expand Up @@ -442,7 +438,6 @@ source "arch/arm/Kconfig"
source "arch/m68k/Kconfig"
source "arch/microblaze/Kconfig"
source "arch/mips/Kconfig"
source "arch/nds32/Kconfig"
source "arch/nios2/Kconfig"
source "arch/powerpc/Kconfig"
source "arch/sandbox/Kconfig"
Expand Down
46 changes: 0 additions & 46 deletions arch/nds32/Kconfig

This file was deleted.

6 changes: 0 additions & 6 deletions arch/nds32/Makefile

This file was deleted.

18 changes: 0 additions & 18 deletions arch/nds32/config.mk

This file was deleted.

13 changes: 0 additions & 13 deletions arch/nds32/cpu/n1213/Makefile

This file was deleted.

16 changes: 0 additions & 16 deletions arch/nds32/cpu/n1213/ae3xx/Makefile

This file was deleted.

46 changes: 0 additions & 46 deletions arch/nds32/cpu/n1213/ae3xx/cpu.c

This file was deleted.

Loading

0 comments on commit 1123213

Please sign in to comment.