Skip to content

Commit

Permalink
Merge branch 'clps711x/cleanup' into next/cleanup
Browse files Browse the repository at this point in the history
* clps711x/cleanup:
  ARM: clps711x: Combine header files into one for clps711x-targets

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Arnd Bergmann committed May 13, 2012
2 parents 68f4c31 + 94bd327 commit 985f03c
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 193 deletions.
59 changes: 59 additions & 0 deletions arch/arm/include/asm/hardware/clps7111.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@

#define PADR (0x0000)
#define PBDR (0x0001)
#define PCDR (0x0002)
#define PDDR (0x0003)
#define PADDR (0x0040)
#define PBDDR (0x0041)
#define PCDDR (0x0042)
#define PDDDR (0x0043)
#define PEDR (0x0080)
#define PEDDR (0x00c0)
Expand Down Expand Up @@ -76,6 +78,18 @@
#define SS2POP (0x16c0)
#define KBDEOI (0x1700)

#define DAIR (0x2000)
#define DAIR0 (0x2040)
#define DAIDR1 (0x2080)
#define DAIDR2 (0x20c0)
#define DAISR (0x2100)
#define SYSCON3 (0x2200)
#define INTSR3 (0x2240)
#define INTMR3 (0x2280)
#define LEDFLSH (0x22c0)
#define SDCONF (0x2300)
#define SDRFPR (0x2340)

/* common bits: SYSCON1 / SYSCON2 */
#define SYSCON_UARTEN (1 << 8)

Expand Down Expand Up @@ -172,4 +186,49 @@
#define SYNCIO_SMCKEN (1 << 13)
#define SYNCIO_TXFRMEN (1 << 14)

#define DAIR_DAIEN (1 << 16)
#define DAIR_ECS (1 << 17)
#define DAIR_LCTM (1 << 19)
#define DAIR_LCRM (1 << 20)
#define DAIR_RCTM (1 << 21)
#define DAIR_RCRM (1 << 22)
#define DAIR_LBM (1 << 23)

#define DAIDR2_FIFOEN (1 << 15)
#define DAIDR2_FIFOLEFT (0x0d << 16)
#define DAIDR2_FIFORIGHT (0x11 << 16)

#define DAISR_RCTS (1 << 0)
#define DAISR_RCRS (1 << 1)
#define DAISR_LCTS (1 << 2)
#define DAISR_LCRS (1 << 3)
#define DAISR_RCTU (1 << 4)
#define DAISR_RCRO (1 << 5)
#define DAISR_LCTU (1 << 6)
#define DAISR_LCRO (1 << 7)
#define DAISR_RCNF (1 << 8)
#define DAISR_RCNE (1 << 9)
#define DAISR_LCNF (1 << 10)
#define DAISR_LCNE (1 << 11)
#define DAISR_FIFO (1 << 12)

#define SYSCON3_ADCCON (1 << 0)
#define SYSCON3_DAISEL (1 << 3)
#define SYSCON3_ADCCKNSEN (1 << 4)
#define SYSCON3_FASTWAKE (1 << 8)
#define SYSCON3_DAIEN (1 << 9)

#define SDCONF_ACTIVE (1 << 10)
#define SDCONF_CLKCTL (1 << 9)
#define SDCONF_WIDTH_4 (0 << 7)
#define SDCONF_WIDTH_8 (1 << 7)
#define SDCONF_WIDTH_16 (2 << 7)
#define SDCONF_WIDTH_32 (3 << 7)
#define SDCONF_SIZE_16 (0 << 5)
#define SDCONF_SIZE_64 (1 << 5)
#define SDCONF_SIZE_128 (2 << 5)
#define SDCONF_SIZE_256 (3 << 5)
#define SDCONF_CASLAT_2 (2)
#define SDCONF_CASLAT_3 (3)

#endif /* __ASM_HARDWARE_CLPS7111_H */
49 changes: 0 additions & 49 deletions arch/arm/include/asm/hardware/cs89712.h

This file was deleted.

31 changes: 0 additions & 31 deletions arch/arm/include/asm/hardware/ep7211.h

This file was deleted.

71 changes: 0 additions & 71 deletions arch/arm/include/asm/hardware/ep7212.h

This file was deleted.

21 changes: 4 additions & 17 deletions arch/arm/mach-clps711x/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if ARCH_CLPS711X

menu "CLPS711X/EP721X Implementations"
menu "CLPS711X/EP721X/EP731X Implementations"

config ARCH_AUTCPU12
bool "AUTCPU12"
Expand Down Expand Up @@ -45,26 +45,13 @@ config ARCH_P720T
config ARCH_FORTUNET
bool "FORTUNET"

# XXX Maybe these should indicate register compatibility
# instead of being mutually exclusive.
config ARCH_EP7211
bool
depends on ARCH_EDB7211
default y

config ARCH_EP7212
bool
depends on ARCH_P720T || ARCH_CEIVA
default y

config EP72XX_ROM_BOOT
bool "EP72xx ROM boot"
depends on ARCH_EP7211 || ARCH_EP7212
---help---
bool "EP721x/EP731x ROM boot"
help
If you say Y here, your CLPS711x-based kernel will use the bootstrap
mode memory map instead of the normal memory map.

Processors derived from the Cirrus CLPS-711X core support two boot
Processors derived from the Cirrus CLPS711X core support two boot
modes. Normal mode boots from the external memory device at CS0.
Bootstrap mode rearranges parts of the memory map, placing an
internal 128 byte bootstrap ROM at CS0. This option performs the
Expand Down
23 changes: 0 additions & 23 deletions arch/arm/mach-clps711x/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,32 +61,11 @@
#define CS7_PHYS_BASE (0x00000000)
#endif

#if defined (CONFIG_ARCH_EP7211)

#include <asm/hardware/ep7211.h>

#elif defined (CONFIG_ARCH_EP7212)

#include <asm/hardware/ep7212.h>

#endif

#define SYSPLD_VIRT_BASE 0xfe000000
#define SYSPLD_BASE SYSPLD_VIRT_BASE

#if defined (CONFIG_ARCH_AUTCPU12)

#include <asm/hardware/ep7212.h>
#include <asm/hardware/cs89712.h>

#endif


#if defined (CONFIG_ARCH_CDB89712)

#include <asm/hardware/ep7212.h>
#include <asm/hardware/cs89712.h>

#define ETHER_START 0x20000000
#define ETHER_SIZE 0x1000
#define ETHER_BASE 0xfe000000
Expand Down Expand Up @@ -149,8 +128,6 @@

#if defined (CONFIG_ARCH_CEIVA)

#include <asm/hardware/ep7212.h>

/*
* The two flash banks are wired to chip selects 0 and 1. This is the mapping
* for them.
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/irda/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ config KINGSUN_DONGLE
kingsun-sir.

config EP7211_DONGLE
tristate "EP7211 I/R support"
depends on IRTTY_SIR && ARCH_EP7211 && IRDA && EXPERIMENTAL
tristate "Cirrus Logic clps711x I/R support"
depends on IRTTY_SIR && ARCH_CLPS711X && IRDA && EXPERIMENTAL
help
Say Y here if you want to build support for the Cirrus logic
EP7211 chipset's infrared module.
Expand Down

0 comments on commit 985f03c

Please sign in to comment.