add mcf5307 support
PATCH 2/3 add mcf5307 support
Architecture includes.
# new file: arch/m68k/include/asm/immap_5307.h # new file: arch/m68k/include/asm/m5307.h
Signed-off-by Angelo Dureghello <[email protected]>
---
arch/m68k/include/asm/immap_5307.h new file +78 -0
@@ -0,0 +1,78 @@ +/* +* MCF5307 Internal Memory Map +* +* Copyright (c) 2011 Angelo Dureghello <[email protected]> +* +* See file CREDITS for list of people who contributed to this +* project. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#ifndef __IMMAP_5307__ +#define __IMMAP_5307__ + +#define MMAP_INTC (CONFIG_SYS_MBAR + 0x00000040) +#define MMAP_CSM (CONFIG_SYS_MBAR + 0x00000080) +#define MMAP_DTMR0 (CONFIG_SYS_MBAR + 0x00000140) +#define MMAP_DTMR1 (CONFIG_SYS_MBAR + 0x00000180) +#define MMAP_UART0 (CONFIG_SYS_MBAR + 0x000001C0) +#define MMAP_UART1 (CONFIG_SYS_MBAR + 0x00000200) + +typedef struct csm { +u16 csar0;/* Chip-select Address */ +u16 res0a; +u32 csmr0;/* Chip-select Mask */ +u16 res0b; +u16 cscr0;/* Chip-select Control */ +u16 csar1; +u16 res1a; +u32 csmr1; +u16 res1b; +u16 cscr1; +u16 csar2; +u16 res2a; +u32 csmr2; +u16 res2b; +u16 cscr2; +u16 csar3; +u16 res3a; +u32 csmr3; +u16 res3b; +u16 cscr3; +u16 csar4; +u16 res4a; +u32 csmr4; +u16 res4b; +u16 cscr4; +u16 csar5; +u16 res5a; +u32 csmr5; +u16 res5b; +u16 cscr5; +u16 csar6; +u16 res6a; +u32 csmr6; +u16 res6b; +u16 cscr6; +u16 csar7; +u16 res7a; +u32 csmr7; +u16 res7b; +u16 cscr7; +}csm_t ; + +#endif /* __IMMAP_5307__ */
arch/m68k/include/asm/m5307.h new file +119 -0
119 lines not on this page · raw message