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: Cleanup IRQ handling
  ARM clps711x: Removed unused header mach/time.h
  ARM: clps711x: Added note about support EP731x CPU to Kconfig
  ARM: clps711x: Added missing register definitions
  ARM: clps711x: Used own subarch directory for store header file

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Arnd Bergmann committed May 16, 2012
2 parents 48b9bf0 + 0573a2b commit 0e896b1
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 77 deletions.
4 changes: 2 additions & 2 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,12 @@ config ARCH_HIGHBANK
Support for the Calxeda Highbank SoC based boards.

config ARCH_CLPS711X
bool "Cirrus Logic CLPS711x/EP721x-based"
bool "Cirrus Logic CLPS711x/EP721x/EP731x-based"
select CPU_ARM720T
select ARCH_USES_GETTIMEOFFSET
select NEED_MACH_MEMORY_H
help
Support for Cirrus Logic 711x/721x based boards.
Support for Cirrus Logic 711x/721x/731x based boards.

config ARCH_CNS3XXX
bool "Cavium Networks CNS3XXX family"
Expand Down
12 changes: 0 additions & 12 deletions arch/arm/mach-clps711x/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ static void int1_mask(struct irq_data *d)

static void int1_ack(struct irq_data *d)
{
u32 intmr1;

intmr1 = clps_readl(INTMR1);
intmr1 &= ~(1 << d->irq);
clps_writel(intmr1, INTMR1);

switch (d->irq) {
case IRQ_CSINT: clps_writel(0, COEOI); break;
case IRQ_TC1OI: clps_writel(0, TC1EOI); break;
Expand Down Expand Up @@ -108,12 +102,6 @@ static void int2_mask(struct irq_data *d)

static void int2_ack(struct irq_data *d)
{
u32 intmr2;

intmr2 = clps_readl(INTMR2);
intmr2 &= ~(1 << (d->irq - 16));
clps_writel(intmr2, INTMR2);

switch (d->irq) {
case IRQ_KBDINT: clps_writel(0, KBDEOI); break;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/*
* arch/arm/include/asm/hardware/clps7111.h
*
* This file contains the hardware definitions of the CLPS7111 internal
* registers.
* This file contains the hardware definitions of the Cirrus Logic
* ARM7 CLPS711X internal registers.
*
* Copyright (C) 2000 Deep Blue Solutions Ltd.
*
Expand All @@ -20,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __ASM_HARDWARE_CLPS7111_H
#define __ASM_HARDWARE_CLPS7111_H
#ifndef __MACH_CLPS711X_H
#define __MACH_CLPS711X_H

#define CLPS711X_PHYS_BASE (0x80000000)

Expand All @@ -43,7 +41,7 @@
#define INTSR1 (0x0240)
#define INTMR1 (0x0280)
#define LCDCON (0x02c0)
#define TC1D (0x0300)
#define TC1D (0x0300)
#define TC2D (0x0340)
#define RTCDR (0x0380)
#define RTCMR (0x03c0)
Expand Down Expand Up @@ -89,6 +87,14 @@
#define LEDFLSH (0x22c0)
#define SDCONF (0x2300)
#define SDRFPR (0x2340)
#define UNIQID (0x2440)
#define DAI64FS (0x2600)
#define PLLW (0x2610)
#define PLLR (0xa5a8)
#define RANDID0 (0x2700)
#define RANDID1 (0x2704)
#define RANDID2 (0x2708)
#define RANDID3 (0x270c)

/* common bits: SYSCON1 / SYSCON2 */
#define SYSCON_UARTEN (1 << 8)
Expand Down Expand Up @@ -136,6 +142,8 @@
#define SYSFLG1_CTXFF (1 << 25)
#define SYSFLG1_SSIBUSY (1 << 26)
#define SYSFLG1_ID (1 << 29)
#define SYSFLG1_VERID(x) (((x) >> 30) & 3)
#define SYSFLG1_VERID_MASK (3 << 30)

#define SYSFLG2_SSRXOF (1 << 0)
#define SYSFLG2_RESVAL (1 << 1)
Expand Down Expand Up @@ -183,9 +191,12 @@
#define UBRLCR_WRDLEN8 (3 << 17)
#define UBRLCR_WRDLEN_MASK (3 << 17)

#define SYNCIO_FRMLEN(x) (((x) & 0x3f) << 7)
#define SYNCIO_CFGLEN(x) ((x) & 0x7f)
#define SYNCIO_SMCKEN (1 << 13)
#define SYNCIO_TXFRMEN (1 << 14)

#define DAIR_RESERVED (0x0404)
#define DAIR_DAIEN (1 << 16)
#define DAIR_ECS (1 << 17)
#define DAIR_LCTM (1 << 19)
Expand All @@ -212,11 +223,23 @@
#define DAISR_LCNE (1 << 11)
#define DAISR_FIFO (1 << 12)

#define DAI64FS_I2SF64 (1 << 0)
#define DAI64FS_AUDIOCLKEN (1 << 1)
#define DAI64FS_AUDIOCLKSRC (1 << 2)
#define DAI64FS_MCLK256EN (1 << 3)
#define DAI64FS_LOOPBACK (1 << 5)

#define SYSCON3_ADCCON (1 << 0)
#define SYSCON3_CLKCTL0 (1 << 1)
#define SYSCON3_CLKCTL1 (1 << 2)
#define SYSCON3_DAISEL (1 << 3)
#define SYSCON3_ADCCKNSEN (1 << 4)
#define SYSCON3_VERSN(x) (((x) >> 5) & 7)
#define SYSCON3_VERSN_MASK (7 << 5)
#define SYSCON3_FASTWAKE (1 << 8)
#define SYSCON3_DAIEN (1 << 9)
#define SYSCON3_128FS SYSCON3_DAIEN
#define SYSCON3_ENPD67 (1 << 10)

#define SDCONF_ACTIVE (1 << 10)
#define SDCONF_CLKCTL (1 << 9)
Expand All @@ -231,4 +254,25 @@
#define SDCONF_CASLAT_2 (2)
#define SDCONF_CASLAT_3 (3)

#endif /* __ASM_HARDWARE_CLPS7111_H */
#define MEMCFG_BUS_WIDTH_32 (1)
#define MEMCFG_BUS_WIDTH_16 (0)
#define MEMCFG_BUS_WIDTH_8 (3)

#define MEMCFG_WAITSTATE_8_3 (0 << 2)
#define MEMCFG_WAITSTATE_7_3 (1 << 2)
#define MEMCFG_WAITSTATE_6_3 (2 << 2)
#define MEMCFG_WAITSTATE_5_3 (3 << 2)
#define MEMCFG_WAITSTATE_4_2 (4 << 2)
#define MEMCFG_WAITSTATE_3_2 (5 << 2)
#define MEMCFG_WAITSTATE_2_2 (6 << 2)
#define MEMCFG_WAITSTATE_1_2 (7 << 2)
#define MEMCFG_WAITSTATE_8_1 (8 << 2)
#define MEMCFG_WAITSTATE_7_1 (9 << 2)
#define MEMCFG_WAITSTATE_6_1 (10 << 2)
#define MEMCFG_WAITSTATE_5_1 (11 << 2)
#define MEMCFG_WAITSTATE_4_0 (12 << 2)
#define MEMCFG_WAITSTATE_3_0 (13 << 2)
#define MEMCFG_WAITSTATE_2_0 (14 << 2)
#define MEMCFG_WAITSTATE_1_0 (15 << 2)

#endif /* __MACH_CLPS711X_H */
2 changes: 1 addition & 1 deletion arch/arm/mach-clps711x/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#ifndef __MACH_HARDWARE_H
#define __MACH_HARDWARE_H

#include <asm/hardware/clps7111.h>
#include <mach/clps711x.h>

#define CLPS711X_VIRT_BASE IOMEM(0xff000000)

Expand Down
5 changes: 1 addition & 4 deletions arch/arm/mach-clps711x/include/mach/irqs.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#define IRQ_SSEOTI 15

#define INT1_IRQS (0x0000fff0)
#define INT1_ACK_IRQS (0x00004f10)

/*
* Interrupts from INTSR2
Expand All @@ -47,7 +46,5 @@
#define IRQ_URXINT2 (16+13) /* bit 13 */

#define INT2_IRQS (0x30070000)
#define INT2_ACK_IRQS (0x00010000)

#define NR_IRQS 30

#define NR_IRQS 30
49 changes: 0 additions & 49 deletions arch/arm/mach-clps711x/include/mach/time.h

This file was deleted.

2 changes: 1 addition & 1 deletion arch/arm/mach-clps711x/include/mach/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <asm/hardware/clps7111.h>
#include <mach/clps711x.h>

#ifdef CONFIG_DEBUG_CLPS711X_UART2
#define SYSFLGx SYSFLG2
Expand Down

0 comments on commit 0e896b1

Please sign in to comment.