u-boot-brain/arch/nds32/include/asm
Gabor Juhos bea2868f5e nds32: introduce macros for bit manipulation
U-Boot does not compile for the adp-ag101 boards since
commit f6c3b34697 (mmc:
update Faraday FTSDC010 for rw performance)

The driver assumes that the bit manipulation macros
are provided by all architectures. This is not the
case for nds32 and it causes a build error like this:

  ftsdc010_mci.c: In function 'ftsdc010_clkset':
  ftsdc010_mci.c:118: warning: implicit declaration of function 'setbits_le32'
  ftsdc010_mci.c:123: warning: implicit declaration of function 'clrbits_le32'
  drivers/mmc/libmmc.o: In function `ftsdc010_request':
  /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:234: undefined reference to `setbits_le32'
  /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:243: undefined reference to `clrbits_le32'
  /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:234: undefined reference to `clrbits_le32'
  drivers/mmc/libmmc.o: In function `ftsdc010_clkset':
  /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:118: undefined reference to `clrbits_le32'
  /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:118: undefined reference to `clrbits_le32'
  /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:121: undefined reference to `setbits_le32'
  /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:123: undefined reference to `setbits_le32'
  /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:123: undefined reference to `setbits_le32'

The patch adds bit manipulation macros for the
nds32 architecture to avoid the errors. The macros
are copied from the ARM implementation.

Compile tested only.

Cc: Kuo-Jung Su <dantesu@faraday-tech.com>
Cc: Macpaul Lin <macpaul@andestech.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
2013-07-24 11:49:16 +08:00
..
arch-ag101 nds32/ag101: cpu and init funcs of SoC ag101 2011-10-22 00:52:51 +02:00
arch-ag102 nds32/ag102: add header support of ag102 soc 2012-04-22 16:58:23 +08:00
bitops.h nds32: add header files support for nds32 2011-10-22 00:51:37 +02:00
byteorder.h nds32: add header files support for nds32 2011-10-22 00:51:37 +02:00
cache.h nds32: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment 2011-11-01 12:47:17 +08:00
config.h nds32: add header files support for nds32 2011-10-22 00:51:37 +02:00
errno.h nds32: Add a basic errno.h 2013-02-18 15:29:07 +08:00
global_data.h nds32: Use generic global_data 2013-02-04 09:05:46 -05:00
io.h nds32: introduce macros for bit manipulation 2013-07-24 11:49:16 +08:00
linkage.h nds32: add linkage support 2012-02-28 13:09:23 +08:00
mach-types.h nds32/ag102: add header support of ag102 soc 2012-04-22 16:58:23 +08:00
macro.h nds32: add header files support for nds32 2011-10-22 00:51:37 +02:00
posix_types.h nds32: add header files support for nds32 2011-10-22 00:51:37 +02:00
processor.h nds32: add header files support for nds32 2011-10-22 00:51:37 +02:00
ptrace.h nds32: fix ptrace and interrupt register overflow 2012-03-19 15:53:07 +08:00
sections.h Introduce generic link section.h symbol files 2013-03-15 16:13:58 -04:00
string.h nds32: add header files support for nds32 2011-10-22 00:51:37 +02:00
system.h nds32: add header files support for nds32 2011-10-22 00:51:37 +02:00
types.h nds32: add header files support for nds32 2011-10-22 00:51:37 +02:00
u-boot-nds32.h nds32: Use sections header to obtain link symbols 2013-05-08 12:38:10 +08:00
u-boot.h nds32: Change global data baudrate to int 2012-10-19 15:25:46 -07:00
unaligned.h nds32: add header files support for nds32 2011-10-22 00:51:37 +02:00