MXC: remove board specific setup of MXC_LL_UART_[PV]ADDR
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Родитель
d30c74a02f
Коммит
ccc1a6f8ee
|
@ -12,11 +12,4 @@
|
|||
#ifndef __ASM_ARCH_MXC_BOARD_ARMADILLO5X0_H__
|
||||
#define __ASM_ARCH_MXC_BOARD_ARMADILLO5X0_H__
|
||||
|
||||
#include <mach/hardware.h>
|
||||
|
||||
/* mandatory for CONFIG_DEBUG_LL */
|
||||
|
||||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR
|
||||
#define MXC_LL_UART_VADDR AIPS1_IO_ADDRESS(UART1_BASE_ADDR)
|
||||
|
||||
#endif
|
||||
|
|
|
@ -14,12 +14,6 @@
|
|||
#ifndef __ASM_ARCH_MXC_BOARD_MX21ADS_H__
|
||||
#define __ASM_ARCH_MXC_BOARD_MX21ADS_H__
|
||||
|
||||
/*
|
||||
* MXC UART EVB board level configurations
|
||||
*/
|
||||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR
|
||||
#define MXC_LL_UART_VADDR AIPI_IO_ADDRESS(UART1_BASE_ADDR)
|
||||
|
||||
/*
|
||||
* Memory-mapped I/O on MX21ADS base board
|
||||
*/
|
||||
|
|
|
@ -25,12 +25,6 @@
|
|||
#define MXC_MAX_BOARD_INTS (MXC_MAX_EXP_IO_LINES + \
|
||||
MXC_MAX_VIRTUAL_INTS)
|
||||
|
||||
/*
|
||||
* MXC UART EVB board level configurations
|
||||
*/
|
||||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR
|
||||
#define MXC_LL_UART_VADDR AIPI_IO_ADDRESS(UART1_BASE_ADDR)
|
||||
|
||||
/*
|
||||
* @name Memory Size parameters
|
||||
*/
|
||||
|
|
|
@ -11,9 +11,4 @@
|
|||
#ifndef __ASM_ARCH_MXC_BOARD_MX27LITE_H__
|
||||
#define __ASM_ARCH_MXC_BOARD_MX27LITE_H__
|
||||
|
||||
/* mandatory for CONFIG_DEBUG_LL */
|
||||
|
||||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR
|
||||
#define MXC_LL_UART_VADDR AIPS1_IO_ADDRESS(UART1_BASE_ADDR)
|
||||
|
||||
#endif /* __ASM_ARCH_MXC_BOARD_MX27LITE_H__ */
|
||||
|
|
|
@ -11,9 +11,4 @@
|
|||
#ifndef __ASM_ARCH_MXC_BOARD_MX27PDK_H__
|
||||
#define __ASM_ARCH_MXC_BOARD_MX27PDK_H__
|
||||
|
||||
/* mandatory for CONFIG_DEBUG_LL */
|
||||
|
||||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR
|
||||
#define MXC_LL_UART_VADDR AIPS1_IO_ADDRESS(UART1_BASE_ADDR)
|
||||
|
||||
#endif /* __ASM_ARCH_MXC_BOARD_MX27PDK_H__ */
|
||||
|
|
|
@ -114,9 +114,4 @@
|
|||
|
||||
#define MXC_MAX_EXP_IO_LINES 16
|
||||
|
||||
/* mandatory for CONFIG_DEBUG_LL */
|
||||
|
||||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR
|
||||
#define MXC_LL_UART_VADDR AIPS1_IO_ADDRESS(UART1_BASE_ADDR)
|
||||
|
||||
#endif /* __ASM_ARCH_MXC_BOARD_MX31ADS_H__ */
|
||||
|
|
|
@ -22,11 +22,6 @@
|
|||
#ifndef __ASM_ARCH_MXC_BOARD_MX31LILLY_H__
|
||||
#define __ASM_ARCH_MXC_BOARD_MX31LILLY_H__
|
||||
|
||||
/* mandatory for CONFIG_LL_DEBUG */
|
||||
|
||||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR
|
||||
#define MXC_LL_UART_VADDR (AIPI_BASE_ADDR_VIRT + 0x0A000)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
enum mx31lilly_boards {
|
||||
|
|
|
@ -11,8 +11,5 @@
|
|||
#ifndef __ASM_ARCH_MXC_BOARD_MX31LITE_H__
|
||||
#define __ASM_ARCH_MXC_BOARD_MX31LITE_H__
|
||||
|
||||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR
|
||||
#define MXC_LL_UART_VADDR AIPS1_IO_ADDRESS(UART1_BASE_ADDR)
|
||||
|
||||
#endif /* __ASM_ARCH_MXC_BOARD_MX31LITE_H__ */
|
||||
|
||||
|
|
|
@ -19,11 +19,6 @@
|
|||
#ifndef __ASM_ARCH_MXC_BOARD_MX31MOBOARD_H__
|
||||
#define __ASM_ARCH_MXC_BOARD_MX31MOBOARD_H__
|
||||
|
||||
/* mandatory for CONFIG_DEBUG_LL */
|
||||
|
||||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR
|
||||
#define MXC_LL_UART_VADDR (AIPI_BASE_ADDR_VIRT + 0x0A000)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
enum mx31moboard_boards {
|
||||
|
|
|
@ -11,11 +11,6 @@
|
|||
#ifndef __ASM_ARCH_MXC_BOARD_MX31PDK_H__
|
||||
#define __ASM_ARCH_MXC_BOARD_MX31PDK_H__
|
||||
|
||||
/* mandatory for CONFIG_DEBUG_LL */
|
||||
|
||||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR
|
||||
#define MXC_LL_UART_VADDR AIPS1_IO_ADDRESS(UART1_BASE_ADDR)
|
||||
|
||||
/* Definitions for components on the Debug board */
|
||||
|
||||
/* Base address of CPLD controller on the Debug board */
|
||||
|
|
|
@ -19,9 +19,4 @@
|
|||
#ifndef __ASM_ARCH_MXC_BOARD_MX35PDK_H__
|
||||
#define __ASM_ARCH_MXC_BOARD_MX35PDK_H__
|
||||
|
||||
/* mandatory for CONFIG_DEBUG_LL */
|
||||
|
||||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR
|
||||
#define MXC_LL_UART_VADDR AIPS1_IO_ADDRESS(UART1_BASE_ADDR)
|
||||
|
||||
#endif /* __ASM_ARCH_MXC_BOARD_MX35PDK_H__ */
|
||||
|
|
|
@ -19,9 +19,4 @@
|
|||
#ifndef __ASM_ARCH_MXC_BOARD_PCM037_H__
|
||||
#define __ASM_ARCH_MXC_BOARD_PCM037_H__
|
||||
|
||||
/* mandatory for CONFIG_DEBUG_LL */
|
||||
|
||||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR
|
||||
#define MXC_LL_UART_VADDR AIPS1_IO_ADDRESS(UART1_BASE_ADDR)
|
||||
|
||||
#endif /* __ASM_ARCH_MXC_BOARD_PCM037_H__ */
|
||||
|
|
|
@ -19,11 +19,6 @@
|
|||
#ifndef __ASM_ARCH_MXC_BOARD_PCM038_H__
|
||||
#define __ASM_ARCH_MXC_BOARD_PCM038_H__
|
||||
|
||||
/* mandatory for CONFIG_DEBUG_LL */
|
||||
|
||||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR
|
||||
#define MXC_LL_UART_VADDR (AIPI_BASE_ADDR_VIRT + 0x0A000)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
/*
|
||||
* This CPU module needs a baseboard to work. After basic initializing
|
||||
|
|
|
@ -19,9 +19,4 @@
|
|||
#ifndef __ASM_ARCH_MXC_BOARD_PCM043_H__
|
||||
#define __ASM_ARCH_MXC_BOARD_PCM043_H__
|
||||
|
||||
/* mandatory for CONFIG_LL_DEBUG */
|
||||
|
||||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR
|
||||
#define MXC_LL_UART_VADDR AIPS1_IO_ADDRESS(UART1_BASE_ADDR)
|
||||
|
||||
#endif /* __ASM_ARCH_MXC_BOARD_PCM043_H__ */
|
||||
|
|
|
@ -11,11 +11,6 @@
|
|||
#ifndef __ASM_ARCH_MXC_BOARD_QONG_H__
|
||||
#define __ASM_ARCH_MXC_BOARD_QONG_H__
|
||||
|
||||
/* mandatory for CONFIG_DEBUG_LL */
|
||||
|
||||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR
|
||||
#define MXC_LL_UART_VADDR AIPS1_IO_ADDRESS(UART1_BASE_ADDR)
|
||||
|
||||
/* NOR FLASH */
|
||||
#define QONG_NOR_SIZE (128*1024*1024)
|
||||
|
||||
|
|
|
@ -11,52 +11,35 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <mach/hardware.h>
|
||||
#ifdef CONFIG_ARCH_MX1
|
||||
#include <mach/mx1.h>
|
||||
#define UART_PADDR UART1_BASE_ADDR
|
||||
#define UART_VADDR IO_ADDRESS(UART1_BASE_ADDR)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MACH_MX31ADS
|
||||
#include <mach/board-mx31ads.h>
|
||||
#ifdef CONFIG_ARCH_MX2
|
||||
#ifdef UART_PADDR
|
||||
#error "CONFIG_DEBUG_LL is incompatible with multiple archs"
|
||||
#endif
|
||||
#ifdef CONFIG_MACH_PCM037
|
||||
#include <mach/board-pcm037.h>
|
||||
#include <mach/mx2x.h>
|
||||
#define UART_PADDR UART1_BASE_ADDR
|
||||
#define UART_VADDR AIPI_IO_ADDRESS(UART1_BASE_ADDR)
|
||||
#endif
|
||||
#ifdef CONFIG_MACH_MX31LITE
|
||||
#include <mach/board-mx31lite.h>
|
||||
|
||||
#ifdef CONFIG_ARCH_MX3
|
||||
#ifdef UART_PADDR
|
||||
#error "CONFIG_DEBUG_LL is incompatible with multiple archs"
|
||||
#endif
|
||||
#ifdef CONFIG_MACH_MX27ADS
|
||||
#include <mach/board-mx27ads.h>
|
||||
#endif
|
||||
#ifdef CONFIG_MACH_MX21ADS
|
||||
#include <mach/board-mx21ads.h>
|
||||
#endif
|
||||
#ifdef CONFIG_MACH_PCM038
|
||||
#include <mach/board-pcm038.h>
|
||||
#endif
|
||||
#ifdef CONFIG_MACH_MX31_3DS
|
||||
#include <mach/board-mx31pdk.h>
|
||||
#endif
|
||||
#ifdef CONFIG_MACH_QONG
|
||||
#include <mach/board-qong.h>
|
||||
#endif
|
||||
#ifdef CONFIG_MACH_PCM043
|
||||
#include <mach/board-pcm043.h>
|
||||
#endif
|
||||
#ifdef CONFIG_MACH_MX27_3DS
|
||||
#include <mach/board-mx27pdk.h>
|
||||
#endif
|
||||
#ifdef CONFIG_MACH_ARMADILLO5X0
|
||||
#include <mach/board-armadillo5x0.h>
|
||||
#endif
|
||||
#ifdef CONFIG_MACH_MX35_3DS
|
||||
#include <mach/board-mx35pdk.h>
|
||||
#endif
|
||||
#ifdef CONFIG_MACH_MX27LITE
|
||||
#include <mach/board-mx27lite.h>
|
||||
#include <mach/mx3x.h>
|
||||
#define UART_PADDR UART1_BASE_ADDR
|
||||
#define UART_VADDR AIPS1_IO_ADDRESS(UART1_BASE_ADDR)
|
||||
#endif
|
||||
|
||||
.macro addruart,rx
|
||||
mrc p15, 0, \rx, c1, c0
|
||||
tst \rx, #1 @ MMU enabled?
|
||||
ldreq \rx, =MXC_LL_UART_PADDR @ physical
|
||||
ldrne \rx, =MXC_LL_UART_VADDR @ virtual
|
||||
ldreq \rx, =UART_PADDR @ physical
|
||||
ldrne \rx, =UART_VADDR @ virtual
|
||||
.endm
|
||||
|
||||
.macro senduart,rd,rx
|
||||
|
|
|
@ -179,8 +179,4 @@
|
|||
#define DMA_REQ_UART1_T 30
|
||||
#define DMA_REQ_UART1_R 31
|
||||
|
||||
/* mandatory for CONFIG_DEBUG_LL */
|
||||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR
|
||||
#define MXC_LL_UART_VADDR IO_ADDRESS(UART1_BASE_ADDR)
|
||||
|
||||
#endif /* __ASM_ARCH_MXC_MX1_H__ */
|
||||
|
|
Загрузка…
Ссылка в новой задаче