diff options
| author | Deng-Cheng Zhu <dengcheng.zhu@imgtec.com> | 2013-10-07 12:45:04 -0400 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2013-10-29 16:25:28 -0400 |
| commit | 70002f76db5f8ed4ab72f539fc600510e2a98022 (patch) | |
| tree | 2847d99eeec2e4be97fd1e70edcc385c25faad10 /arch/mips/include/asm/mips-boards | |
| parent | f7886e87546cc68844e8edb66150aaaeacaf7204 (diff) | |
MIPS: Get rid of hard-coded values for Malta PIIX4 fixups
Make the code more readable by using defines.
Signed-off-by: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Reviewed-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6031/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mips-boards')
| -rw-r--r-- | arch/mips/include/asm/mips-boards/piix4.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mips-boards/piix4.h b/arch/mips/include/asm/mips-boards/piix4.h index a02596cf1abd..06d483131dc4 100644 --- a/arch/mips/include/asm/mips-boards/piix4.h +++ b/arch/mips/include/asm/mips-boards/piix4.h | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Carsten Langgaard, carstenl@mips.com | 2 | * Carsten Langgaard, carstenl@mips.com |
| 3 | * Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved. | 3 | * Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved. |
| 4 | * Copyright (C) 2013 Imagination Technologies Ltd. | ||
| 4 | * | 5 | * |
| 5 | * This program is free software; you can distribute it and/or modify it | 6 | * This program is free software; you can distribute it and/or modify it |
| 6 | * under the terms of the GNU General Public License (Version 2) as | 7 | * under the terms of the GNU General Public License (Version 2) as |
| @@ -20,6 +21,28 @@ | |||
| 20 | #ifndef __ASM_MIPS_BOARDS_PIIX4_H | 21 | #ifndef __ASM_MIPS_BOARDS_PIIX4_H |
| 21 | #define __ASM_MIPS_BOARDS_PIIX4_H | 22 | #define __ASM_MIPS_BOARDS_PIIX4_H |
| 22 | 23 | ||
| 24 | /* PIRQX Route Control */ | ||
| 25 | #define PIIX4_FUNC0_PIRQRC 0x60 | ||
| 26 | #define PIIX4_FUNC0_PIRQRC_IRQ_ROUTING_DISABLE (1 << 7) | ||
| 27 | #define PIIX4_FUNC0_PIRQRC_IRQ_ROUTING_MASK 0xf | ||
| 28 | #define PIIX4_FUNC0_PIRQRC_IRQ_ROUTING_MAX 16 | ||
| 29 | /* Top Of Memory */ | ||
| 30 | #define PIIX4_FUNC0_TOM 0x69 | ||
| 31 | #define PIIX4_FUNC0_TOM_TOP_OF_MEMORY_MASK 0xf0 | ||
| 32 | /* Deterministic Latency Control */ | ||
| 33 | #define PIIX4_FUNC0_DLC 0x82 | ||
| 34 | #define PIIX4_FUNC0_DLC_USBPR_EN (1 << 2) | ||
| 35 | #define PIIX4_FUNC0_DLC_PASSIVE_RELEASE_EN (1 << 1) | ||
| 36 | #define PIIX4_FUNC0_DLC_DELAYED_TRANSACTION_EN (1 << 0) | ||
| 37 | |||
| 38 | /* IDE Timing */ | ||
| 39 | #define PIIX4_FUNC1_IDETIM_PRIMARY_LO 0x40 | ||
| 40 | #define PIIX4_FUNC1_IDETIM_PRIMARY_HI 0x41 | ||
| 41 | #define PIIX4_FUNC1_IDETIM_PRIMARY_HI_IDE_DECODE_EN (1 << 7) | ||
| 42 | #define PIIX4_FUNC1_IDETIM_SECONDARY_LO 0x42 | ||
| 43 | #define PIIX4_FUNC1_IDETIM_SECONDARY_HI 0x43 | ||
| 44 | #define PIIX4_FUNC1_IDETIM_SECONDARY_HI_IDE_DECODE_EN (1 << 7) | ||
| 45 | |||
| 23 | /************************************************************************ | 46 | /************************************************************************ |
| 24 | * IO register offsets | 47 | * IO register offsets |
| 25 | ************************************************************************/ | 48 | ************************************************************************/ |
