提交 639f6571 编写于 作者: B Bryan Wu

Blackfin arch: move include/asm-blackfin header files to arch/blackfin

Signed-off-by: NBryan Wu <cooloney@kernel.org>
上级 3d9b7a5c
......@@ -98,36 +98,20 @@ libs-y += arch/$(ARCH)/lib/
drivers-$(CONFIG_OPROFILE) += arch/$(ARCH)/oprofile/
machdirs := $(patsubst %,arch/blackfin/mach-%/, $(machine-y))
KBUILD_CFLAGS += -Iarch/$(ARCH)/include/
KBUILD_CFLAGS += -Iarch/$(ARCH)/mach-$(MACHINE)/include
# Update machine arch symlinks if something which affects
# them changed. We use .mach to indicate when they were updated
# last, otherwise make uses the target directory mtime.
show_mach_symlink = :
quiet_show_mach_symlink = echo ' SYMLINK include/asm-$(ARCH)/mach-$(MACHINE) -> include/asm-$(ARCH)/mach'
silent_show_mach_symlink = :
include/asm-blackfin/.mach: $(wildcard include/config/arch/*.h) include/config/auto.conf
@$($(quiet)show_mach_symlink)
ifneq ($(KBUILD_SRC),)
$(Q)mkdir -p include/asm-$(ARCH)
$(Q)ln -fsn $(srctree)/include/asm-$(ARCH)/mach-$(MACHINE) include/asm-$(ARCH)/mach
else
$(Q)ln -fsn mach-$(MACHINE) include/asm-$(ARCH)/mach
endif
@touch $@
KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs))
CLEAN_FILES += \
include/asm-$(ARCH)/asm-offsets.h \
arch/$(ARCH)/include/asm/asm-offsets.h \
arch/$(ARCH)/kernel/asm-offsets.s \
include/asm-$(ARCH)/mach \
include/asm-$(ARCH)/.mach
archprepare: include/asm-blackfin/.mach
archclean:
$(Q)$(MAKE) $(clean)=$(boot)
INSTALL_PATH ?= /tftpboot
boot := arch/$(ARCH)/boot
BOOT_TARGETS = vmImage
......
......@@ -11,7 +11,7 @@
#define HI(con32) (((con32) >> 16) & 0xFFFF)
#define hi(con32) (((con32) >> 16) & 0xFFFF)
#include <asm/mach/anomaly.h>
#include <mach/anomaly.h>
#ifndef __ASSEMBLY__
......@@ -86,7 +86,7 @@ static inline void CSYNC(void)
#endif /* __ASSEMBLY__ */
#include <asm/mach/blackfin.h>
#include <mach/blackfin.h>
#include <asm/bfin-global.h>
#endif /* _BLACKFIN_H_ */
......@@ -33,7 +33,7 @@
#warning cdef_LPBlackfin.h should only be included for 532 compatible chips.
#endif
*/
#include <asm/mach-common/def_LPBlackfin.h>
#include <asm/def_LPBlackfin.h>
/*Cache & SRAM Memory*/
#define bfin_read_SRAM_BASE_ADDRESS() bfin_read32(SRAM_BASE_ADDRESS)
......
......@@ -31,7 +31,7 @@
#define _CPLB_H
#include <asm/blackfin.h>
#include <asm/mach/anomaly.h>
#include <mach/anomaly.h>
#define SDRAM_IGENERIC (CPLB_L1_CHBL | CPLB_USER_RD | CPLB_VALID | CPLB_PORTPRIO)
#define SDRAM_IKERNEL (SDRAM_IGENERIC | CPLB_LOCK)
......
......@@ -31,7 +31,7 @@
#ifndef _DEF_LPBLACKFIN_H
#define _DEF_LPBLACKFIN_H
#include <asm/mach/anomaly.h>
#include <mach/anomaly.h>
#define MK_BMSK_(x) (1<<x)
......
......@@ -9,7 +9,7 @@
#ifndef __ASM_DELAY_H__
#define __ASM_DELAY_H__
#include <asm/mach/anomaly.h>
#include <mach/anomaly.h>
static inline void __delay(unsigned long loops)
{
......
......@@ -35,7 +35,7 @@
#include <asm/signal.h>
#include <linux/kernel.h>
#include <asm/mach/dma.h>
#include <mach/dma.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <asm/blackfin.h>
......
......@@ -224,7 +224,7 @@
#endif
#ifdef BF548_FAMILY
#include <asm-blackfin/mach-bf548/gpio.h>
#include <mach/gpio.h>
#endif
#ifdef BF561_FAMILY
......
......@@ -17,7 +17,7 @@
#ifndef _BFIN_IRQ_H_
#define _BFIN_IRQ_H_
#include <asm/mach/irq.h>
#include <mach/irq.h>
#include <asm/ptrace.h>
/*******************************************************************************
......@@ -34,7 +34,7 @@
* interrupts apart (just the TX/RX for the various devices)
*******************************************************************************/
/* SYS_IRQS and NR_IRQS are defined in <asm/mach-bf5xx/irq.h>*/
/* SYS_IRQS and NR_IRQS are defined in <mach-bf5xx/irq.h>*/
/*
* Machine specific interrupt sources.
......
......@@ -7,6 +7,6 @@
#ifndef _MEM_MAP_H_
#define _MEM_MAP_H_
#include <asm/mach/mem_map.h>
#include <mach/mem_map.h>
#endif /* _MEM_MAP_H_ */
......@@ -4,7 +4,7 @@
#include <asm-generic/4level-fixup.h>
#include <asm/page.h>
#include <asm/mach-common/def_LPBlackfin.h>
#include <asm/def_LPBlackfin.h>
typedef pte_t *pte_addr_t;
/*
......
......@@ -21,7 +21,7 @@ int peripheral_request_list(const unsigned short per[], const char *label);
void peripheral_free_list(const unsigned short per[]);
#include <asm/gpio.h>
#include <asm/mach/portmux.h>
#include <mach/portmux.h>
#ifndef P_SPORT2_TFS
#define P_SPORT2_TFS P_UNDEF
......
......@@ -36,7 +36,7 @@
#include <linux/linkage.h>
#include <linux/compiler.h>
#include <asm/mach/anomaly.h>
#include <mach/anomaly.h>
/*
* Interrupt configuring macros.
......
......@@ -32,7 +32,7 @@
#include <asm/errno.h>
#include <asm/asm-offsets.h>
#include <asm/mach-common/context.S>
#include <asm/context.S>
#ifdef CONFIG_EXCPT_IRQ_SYSC_L1
.section .l1.text
......
......@@ -31,8 +31,8 @@
#include <linux/init.h>
#include <asm/blackfin.h>
#ifdef CONFIG_BFIN_KERNEL_CLOCK
#include <asm/mach-common/clocks.h>
#include <asm/mach/mem_init.h>
#include <asm/clocks.h>
#include <mach/mem_init.h>
#endif
.section .l1.text
......
......@@ -36,7 +36,7 @@
#include "defBF522.h"
/* include core specific register pointer definitions */
#include <asm/mach-common/cdef_LPBlackfin.h>
#include <asm/cdef_LPBlackfin.h>
/* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF522 */
......
......@@ -36,7 +36,7 @@
#include "defBF525.h"
/* include core specific register pointer definitions */
#include <asm/mach-common/cdef_LPBlackfin.h>
#include <asm/cdef_LPBlackfin.h>
/* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF525 */
......
......@@ -36,7 +36,7 @@
#include "defBF527.h"
/* include core specific register pointer definitions */
#include <asm/mach-common/cdef_LPBlackfin.h>
#include <asm/cdef_LPBlackfin.h>
/* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF527 */
......
......@@ -37,7 +37,7 @@
#include "defBF52x_base.h"
/* Include core specific register pointer definitions */
#include <asm/mach-common/cdef_LPBlackfin.h>
#include <asm/cdef_LPBlackfin.h>
/* ==== begin from cdefBF534.h ==== */
......
......@@ -32,7 +32,7 @@
#define _DEF_BF522_H
/* Include all Core registers and bit definitions */
#include <asm/mach-common/def_LPBlackfin.h>
#include <asm/def_LPBlackfin.h>
/* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF522 */
......
......@@ -32,7 +32,7 @@
#define _DEF_BF525_H
/* Include all Core registers and bit definitions */
#include <asm/mach-common/def_LPBlackfin.h>
#include <asm/def_LPBlackfin.h>
/* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF525 */
......
......@@ -32,7 +32,7 @@
#define _DEF_BF527_H
/* Include all Core registers and bit definitions */
#include <asm/mach-common/def_LPBlackfin.h>
#include <asm/def_LPBlackfin.h>
/* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF527 */
......
......@@ -31,8 +31,8 @@
#include <linux/init.h>
#include <asm/blackfin.h>
#ifdef CONFIG_BFIN_KERNEL_CLOCK
#include <asm/mach-common/clocks.h>
#include <asm/mach/mem_init.h>
#include <asm/clocks.h>
#include <mach/mem_init.h>
#endif
.section .l1.text
......
......@@ -37,7 +37,7 @@
#include "defBF532.h"
/*include core specific register pointer definitions*/
#include <asm/mach-common/cdef_LPBlackfin.h>
#include <asm/cdef_LPBlackfin.h>
#include <asm/system.h>
......
......@@ -48,7 +48,7 @@
#define _DEF_BF532_H
/* include all Core registers and bit definitions */
#include <asm/mach-common/def_LPBlackfin.h>
#include <asm/def_LPBlackfin.h>
/*********************************************************************************** */
/* System MMR Register Map */
......
......@@ -31,8 +31,8 @@
#include <linux/init.h>
#include <asm/blackfin.h>
#ifdef CONFIG_BFIN_KERNEL_CLOCK
#include <asm/mach-common/clocks.h>
#include <asm/mach/mem_init.h>
#include <asm/clocks.h>
#include <mach/mem_init.h>
#endif
.section .l1.text
......
......@@ -38,7 +38,7 @@
#include "defBF534.h"
/* Include core specific register pointer definitions */
#include <asm/mach-common/cdef_LPBlackfin.h>
#include <asm/cdef_LPBlackfin.h>
#include <asm/system.h>
......
......@@ -32,7 +32,7 @@
#define _DEF_BF534_H
/* Include all Core registers and bit definitions */
#include <asm/mach-common/def_LPBlackfin.h>
#include <asm/def_LPBlackfin.h>
/************************************************************************************
** System MMR Register Map
......
......@@ -33,7 +33,7 @@
#define _DEF_BF537_H
/* Include all Core registers and bit definitions*/
#include <asm/mach-common/cdef_LPBlackfin.h>
#include <asm/cdef_LPBlackfin.h>
/* Include all MMR and bit defines common to BF534 */
#include "defBF534.h"
......
......@@ -45,7 +45,7 @@
#include <asm/gpio.h>
#include <asm/nand.h>
#include <asm/portmux.h>
#include <asm/mach/bf54x_keys.h>
#include <mach/bf54x_keys.h>
#include <asm/dpmc.h>
#include <linux/input.h>
#include <linux/spi/ad7877.h>
......@@ -61,7 +61,7 @@ const char bfin_board_name[] = "Bluetechnix CM-BF548";
#if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE)
#include <asm/mach/bf54x-lq043.h>
#include <mach/bf54x-lq043.h>
static struct bfin_bf54xfb_mach_info bf54x_lq043_data = {
.width = 480,
......
......@@ -48,7 +48,7 @@
#include <asm/nand.h>
#include <asm/dpmc.h>
#include <asm/portmux.h>
#include <asm/mach/bf54x_keys.h>
#include <mach/bf54x_keys.h>
#include <linux/input.h>
#include <linux/spi/ad7877.h>
......@@ -106,7 +106,7 @@ arch_initcall(bfin_isp1761_init);
#if defined(CONFIG_FB_BF54X_LQ043) || defined(CONFIG_FB_BF54X_LQ043_MODULE)
#include <asm/mach/bf54x-lq043.h>
#include <mach/bf54x-lq043.h>
static struct bfin_bf54xfb_mach_info bf54x_lq043_data = {
.width = 480,
......
......@@ -31,8 +31,8 @@
#include <linux/init.h>
#include <asm/blackfin.h>
#ifdef CONFIG_BFIN_KERNEL_CLOCK
#include <asm/mach-common/clocks.h>
#include <asm/mach/mem_init.h>
#include <asm/clocks.h>
#include <mach/mem_init.h>
#endif
.section .l1.text
......
......@@ -35,7 +35,7 @@
#include "defBF542.h"
/* include core sbfin_read_()ecific register pointer definitions */
#include <asm/mach-common/cdef_LPBlackfin.h>
#include <asm/cdef_LPBlackfin.h>
/* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF542 */
......
......@@ -35,7 +35,7 @@
#include "defBF544.h"
/* include core sbfin_read_()ecific register pointer definitions */
#include <asm/mach-common/cdef_LPBlackfin.h>
#include <asm/cdef_LPBlackfin.h>
/* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF544 */
......
......@@ -35,7 +35,7 @@
#include "defBF548.h"
/* include core sbfin_read_()ecific register pointer definitions */
#include <asm/mach-common/cdef_LPBlackfin.h>
#include <asm/cdef_LPBlackfin.h>
/* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF548 */
......
......@@ -35,7 +35,7 @@
#include "defBF548.h"
/* include core sbfin_read_()ecific register pointer definitions */
#include <asm/mach-common/cdef_LPBlackfin.h>
#include <asm/cdef_LPBlackfin.h>
/* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF548 */
......
......@@ -35,7 +35,7 @@
#include "defBF549.h"
/* include core sbfin_read_()ecific register pointer definitions */
#include <asm/mach-common/cdef_LPBlackfin.h>
#include <asm/cdef_LPBlackfin.h>
/* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF549 */
......
......@@ -32,7 +32,7 @@
#define _DEF_BF542_H
/* Include all Core registers and bit definitions */
#include <asm/mach-common/def_LPBlackfin.h>
#include <asm/def_LPBlackfin.h>
/* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF542 */
......
......@@ -32,7 +32,7 @@
#define _DEF_BF544_H
/* Include all Core registers and bit definitions */
#include <asm/mach-common/def_LPBlackfin.h>
#include <asm/def_LPBlackfin.h>
/* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF544 */
......
......@@ -32,7 +32,7 @@
#define _DEF_BF548_H
/* Include all Core registers and bit definitions */
#include <asm/mach-common/def_LPBlackfin.h>
#include <asm/def_LPBlackfin.h>
/* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF548 */
......
......@@ -32,7 +32,7 @@
#define _DEF_BF548_H
/* Include all Core registers and bit definitions */
#include <asm/mach-common/def_LPBlackfin.h>
#include <asm/def_LPBlackfin.h>
/* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF548 */
......
......@@ -32,7 +32,7 @@
#define _DEF_BF549_H
/* Include all Core registers and bit definitions */
#include <asm/mach-common/def_LPBlackfin.h>
#include <asm/def_LPBlackfin.h>
/* SYSTEM & MMR ADDRESS DEFINITIONS FOR ADSP-BF549 */
......
......@@ -31,8 +31,8 @@
#include <linux/init.h>
#include <asm/blackfin.h>
#ifdef CONFIG_BFIN_KERNEL_CLOCK
#include <asm/mach-common/clocks.h>
#include <asm/mach/mem_init.h>
#include <asm/clocks.h>
#include <mach/mem_init.h>
#endif
.section .l1.text
......
......@@ -37,7 +37,7 @@
#include "defBF561.h"
/*include core specific register pointer definitions*/
#include <asm/mach-common/cdef_LPBlackfin.h>
#include <asm/cdef_LPBlackfin.h>
#include <asm/system.h>
......
......@@ -37,7 +37,7 @@
#endif
*/
/* include all Core registers and bit definitions */
#include <asm/mach-common/def_LPBlackfin.h>
#include <asm/def_LPBlackfin.h>
/*********************************************************************************** */
/* System MMR Register Map */
......
......@@ -28,8 +28,8 @@
*/
#include <asm/fixed_code.h>
#include <asm/mach/anomaly.h>
#include <asm/mach-common/clocks.h>
#include <mach/anomaly.h>
#include <asm/clocks.h>
#ifdef CONFIG_BFIN_KERNEL_CLOCK
......
......@@ -6,7 +6,7 @@
#include <linux/linkage.h>
#include <asm/blackfin.h>
#include <asm/mach/irq.h>
#include <mach/irq.h>
#include <asm/dpmc.h>
.section .l1.text
......
......@@ -43,7 +43,7 @@
#include <asm/asm-offsets.h>
#include <asm/trace.h>
#include <asm/mach-common/context.S>
#include <asm/context.S>
#if defined(CONFIG_BFIN_SCRATCH_REG_RETN)
# define EX_SCRATCH_REG RETN
......
......@@ -29,7 +29,7 @@
*/
#include <asm/blackfin.h>
#include <asm/mach/irq.h>
#include <mach/irq.h>
#include <linux/linkage.h>
#include <asm/entry.h>
#include <asm/asm-offsets.h>
......@@ -37,7 +37,7 @@
#include <asm/traps.h>
#include <asm/thread_info.h>
#include <asm/mach-common/context.S>
#include <asm/context.S>
.extern _ret_from_exception
......
......@@ -43,7 +43,7 @@
#include <linux/input.h>
#include <asm/portmux.h>
#include <asm/mach/bf54x_keys.h>
#include <mach/bf54x_keys.h>
#define DRV_NAME "bf54x-keys"
#define TIME_SCALE 100 /* 100 ns */
......
......@@ -28,7 +28,7 @@
#endif
#include <asm/gpio.h>
#include <asm/mach/bfin_serial_5xx.h>
#include <mach/bfin_serial_5xx.h>
#ifdef CONFIG_SERIAL_BFIN_DMA
#include <linux/dma-mapping.h>
......
......@@ -58,7 +58,7 @@
#include <asm/gpio.h>
#include <asm/portmux.h>
#include <asm/mach/bf54x-lq043.h>
#include <mach/bf54x-lq043.h>
#define NO_BL_SUPPORT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册