diff options
author | Terry Lv <r65388@freescale.com> | 2010-04-16 11:03:03 +0800 |
---|---|---|
committer | Terry Lv <r65388@freescale.com> | 2010-04-16 11:13:30 +0800 |
commit | 260584a4e6144d1e8a5477c4fb55a67dd4fa2ac3 (patch) | |
tree | eaaf014cf2b072962a472c3f8146f845e47063c7 /include/asm-arm/arch-mx23/mx23.h | |
parent | 31ca7ee9538c2845893c1f08086caefbce38e8e1 (diff) | |
download | u-boot-imx-260584a4e6144d1e8a5477c4fb55a67dd4fa2ac3.zip u-boot-imx-260584a4e6144d1e8a5477c4fb55a67dd4fa2ac3.tar.gz u-boot-imx-260584a4e6144d1e8a5477c4fb55a67dd4fa2ac3.tar.bz2 |
ENGR00122342: missing mx23 evk machine ID setting
Change stmp378x to mx23evk in u-boot.
Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'include/asm-arm/arch-mx23/mx23.h')
-rw-r--r-- | include/asm-arm/arch-mx23/mx23.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/asm-arm/arch-mx23/mx23.h b/include/asm-arm/arch-mx23/mx23.h new file mode 100644 index 0000000..d24a112 --- /dev/null +++ b/include/asm-arm/arch-mx23/mx23.h @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2008 Embedded Alley Solutions Inc. + * + * (C) Copyright 2009-2010 Freescale Semiconductor, Inc. + * + * 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 MX23_H +#define MX23_H + +/* + * Most of 378x SoC registers are associated with four addresses + * used for different operations - read/write, set, clear and toggle bits. + * + * Some of registers do not implement such feature and, thus, should be + * accessed/manipulated via single address in common way. + */ +#define REG_RD(x) (*(volatile unsigned int *)(x)) +#define REG_WR(x, v) ((*(volatile unsigned int *)(x)) = (v)) +#define REG_SET(x, v) ((*(volatile unsigned int *)((x) + 0x04)) = (v)) +#define REG_CLR(x, v) ((*(volatile unsigned int *)((x) + 0x08)) = (v)) +#define REG_TOG(x, v) ((*(volatile unsigned int *)((x) + 0x0c)) = (v)) + +#define MX23_OCRAM_BASE 0x00000000 +#define MX23_SDRAM_BASE 0x40000000 +#define MX23_REGS_BASE 0x80000000 + +#endif /* STMP378X_H */ |