u-boot/arch
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
..
arm Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTM 2013-07-16 17:44:30 -05:00
avr32 Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTM 2013-07-16 17:44:30 -05:00
blackfin blackfin: x86: bootm: Handle PREP stage of bootm 2013-07-12 10:32:39 -04:00
m68k Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTM 2013-07-16 17:44:30 -05:00
microblaze Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTM 2013-07-16 17:44:30 -05:00
mips Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTM 2013-07-16 17:44:30 -05:00
nds32 nds32: introduce macros for bit manipulation 2013-07-24 11:49:16 +08:00
nios2 Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTM 2013-07-16 17:44:30 -05:00
openrisc Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTM 2013-07-16 17:44:30 -05:00
powerpc powerpc/mpc85xx:Disable Debug TLB entry for non-minimal SPL 2013-07-16 17:44:30 -05:00
sandbox sandbox: Support trace feature 2013-06-26 10:16:41 -04:00
sh Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTM 2013-07-16 17:44:30 -05:00
sparc Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTM 2013-07-16 17:44:30 -05:00
x86 Build arch/$ARCH/lib/bootm.o depending on CONFIG_CMD_BOOTM 2013-07-16 17:44:30 -05:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00