Skip to content

Commit

Permalink
[ARM] 3954/1: AT91: Update drivers for new headers
Browse files Browse the repository at this point in the history
This patch updates the drivers (and other files) which include the
hardware headers.  This fixes the breakage introduced in patches 3950/1
and 3951/1 (those patches were getting big).

The AVR32 architecture uses the same serial driver and had its own copy
of at91rm9200_pdc.h.  Renamed it to at91_pdc.h

Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Andrew Victor authored and Russell King committed Nov 30, 2006
1 parent a5c4745 commit 55d8bae
Show file tree
Hide file tree
Showing 17 changed files with 50 additions and 11 deletions.
3 changes: 2 additions & 1 deletion arch/arm/mach-at91rm9200/at91rm9200.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <asm/arch/at91rm9200.h>
#include <asm/arch/at91_pmc.h>
#include <asm/arch/at91_st.h>

#include <asm/hardware.h>
#include "generic.h"
#include "clock.h"

Expand Down
2 changes: 2 additions & 0 deletions arch/arm/mach-at91rm9200/at91rm9200_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#include <asm/io.h>
#include <asm/mach/time.h>

#include <asm/arch/at91_st.h>

static unsigned long last_crtr;

/*
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-at91rm9200/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <asm/mach-types.h>

#include <asm/hardware.h>
#include <asm/arch/at91_pmc.h>

#include "clock.h"

Expand Down
2 changes: 2 additions & 0 deletions arch/arm/mach-at91rm9200/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#include <asm/io.h>
#include <asm/hardware.h>
#include <asm/arch/at91_pio.h>
#include <asm/arch/at91_pmc.h>
#include <asm/arch/gpio.h>

#include "generic.h"
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/mach-at91rm9200/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#include <asm/mach/irq.h>
#include <asm/mach-types.h>

#include <asm/arch/at91_pmc.h>
#include <asm/arch/at91rm9200_mc.h>
#include <asm/arch/gpio.h>

#include "generic.h"
Expand Down
1 change: 1 addition & 0 deletions drivers/char/watchdog/at91rm9200_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/watchdog.h>
#include <asm/bitops.h>
#include <asm/uaccess.h>
#include <asm/arch/at91_st.h>


#define WDT_DEFAULT_TIME 5 /* seconds */
Expand Down
4 changes: 2 additions & 2 deletions drivers/mmc/at91_mci.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
#include <asm/mach/mmc.h>
#include <asm/arch/board.h>
#include <asm/arch/gpio.h>
#include <asm/arch/at91rm9200_mci.h>
#include <asm/arch/at91rm9200_pdc.h>
#include <asm/arch/at91_mci.h>
#include <asm/arch/at91_pdc.h>

#define DRIVER_NAME "at91_mci"

Expand Down
2 changes: 1 addition & 1 deletion drivers/pcmcia/at91_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
#include <asm/io.h>
#include <asm/sizes.h>

#include <asm/arch/at91rm9200.h>
#include <asm/arch/board.h>
#include <asm/arch/gpio.h>
#include <asm/arch/at91rm9200_mc.h>


/*
Expand Down
2 changes: 1 addition & 1 deletion drivers/serial/atmel_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@

#include <asm/io.h>

#include <asm/arch/at91rm9200_pdc.h>
#include <asm/mach/serial_at91.h>
#include <asm/arch/board.h>
#include <asm/arch/at91_pdc.h>
#ifdef CONFIG_ARM
#include <asm/arch/system.h>
#include <asm/arch/gpio.h>
Expand Down
16 changes: 16 additions & 0 deletions include/asm-arm/arch-at91rm9200/at91rm9200.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,22 @@
#define AT91_BASE_SYS 0xfffff000


/*
* System Peripherals (offset from AT91_BASE_SYS)
*/
#define AT91_AIC (0xfffff000 - AT91_BASE_SYS) /* Advanced Interrupt Controller */
#define AT91_DBGU (0xfffff200 - AT91_BASE_SYS) /* Debug Unit */
#define AT91_PIOA (0xfffff400 - AT91_BASE_SYS) /* PIO Controller A */
#define AT91_PIOB (0xfffff600 - AT91_BASE_SYS) /* PIO Controller B */
#define AT91_PIOC (0xfffff800 - AT91_BASE_SYS) /* PIO Controller C */
#define AT91_PIOD (0xfffffa00 - AT91_BASE_SYS) /* PIO Controller D */
#define AT91_PMC (0xfffffc00 - AT91_BASE_SYS) /* Power Management Controller */
#define AT91_ST (0xfffffd00 - AT91_BASE_SYS) /* System Timer */
#define AT91_RTC (0xfffffe00 - AT91_BASE_SYS) /* Real-Time Clock */
#define AT91_MC (0xffffff00 - AT91_BASE_SYS) /* Memory Controllers */

#define AT91_MATRIX 0 /* not supported */

/*
* Internal Memory.
*/
Expand Down
1 change: 1 addition & 0 deletions include/asm-arm/arch-at91rm9200/debug-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/

#include <asm/hardware.h>
#include <asm/arch/at91_dbgu.h>

.macro addruart,rx
mrc p15, 0, \rx, c1, c0
Expand Down
1 change: 1 addition & 0 deletions include/asm-arm/arch-at91rm9200/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
*/

#include <asm/hardware.h>
#include <asm/arch/at91_aic.h>

.macro disable_fiq
.endm
Expand Down
10 changes: 9 additions & 1 deletion include/asm-arm/arch-at91rm9200/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@

#include <asm/sizes.h>

#if defined(CONFIG_ARCH_AT91RM9200)
#include <asm/arch/at91rm9200.h>
#include <asm/arch/at91rm9200_sys.h>
#elif defined(CONFIG_ARCH_AT91SAM9260)
#include <asm/arch/at91sam9260.h>
#elif defined(CONFIG_ARCH_AT91SAM9261)
#include <asm/arch/at91sam9261.h>
#else
#error "Unsupported AT91 processor"
#endif


/*
* Remap the peripherals from address 0xFFFA0000 .. 0xFFFFFFFF
Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-at91rm9200/irqs.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#ifndef __ASM_ARCH_IRQS_H
#define __ASM_ARCH_IRQS_H

#include <asm/arch/at91_aic.h>

#define NR_AIC_IRQS 32


Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-at91rm9200/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#define __ASM_ARCH_SYSTEM_H

#include <asm/hardware.h>
#include <asm/arch/at91_st.h>
#include <asm/arch/at91_dbgu.h>

static inline void arch_idle(void)
{
Expand Down
4 changes: 2 additions & 2 deletions include/asm-arm/arch-at91rm9200/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
#define __ASM_ARCH_UNCOMPRESS_H

#include <asm/hardware.h>
#include <asm/arch/at91_dbgu.h>

/*
* The following code assumes the serial port has already been
* initialized by the bootloader. We search for the first enabled
* port in the most probable order. If you didn't setup a port in
* initialized by the bootloader. If you didn't setup a port in
* your bootloader then nothing will appear (which might be desired).
*
* This does not append a newline
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* include/asm-arm/arch-at91rm9200/at91rm9200_pdc.h
* include/asm-arm/arch-at91rm9200/at91_pdc.h
*
* Copyright (C) 2005 Ivan Kokshaysky
* Copyright (C) SAN People
Expand All @@ -13,8 +13,8 @@
* (at your option) any later version.
*/

#ifndef AT91RM9200_PDC_H
#define AT91RM9200_PDC_H
#ifndef AT91_PDC_H
#define AT91_PDC_H

#define AT91_PDC_RPR 0x100 /* Receive Pointer Register */
#define AT91_PDC_RCR 0x104 /* Receive Counter Register */
Expand Down

0 comments on commit 55d8bae

Please sign in to comment.