diff options
author | Joel Stanley <joel@jms.id.au> | 2016-07-13 16:36:57 +0930 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2016-07-27 15:44:01 +0930 |
commit | a83e1bc06bef1dc155b7f4d9f96f2bfc315d4dd7 (patch) | |
tree | 3775efb7c903177917da2cba9cd389485a9a531f /arch/arm/cpu/arm926ejs | |
parent | 19ce924ff914f315dc2fdf79f357825c513aed6e (diff) | |
download | blackbird-obmc-uboot-a83e1bc06bef1dc155b7f4d9f96f2bfc315d4dd7.tar.gz blackbird-obmc-uboot-a83e1bc06bef1dc155b7f4d9f96f2bfc315d4dd7.zip |
ARM: AST2500: add support
Extracted from ast_sdk.v00.03.21 which is based on u-boot v2013.
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'arch/arm/cpu/arm926ejs')
-rw-r--r-- | arch/arm/cpu/arm926ejs/aspeed/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/cpu/arm926ejs/aspeed/cpu.c | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/aspeed/Makefile b/arch/arm/cpu/arm926ejs/aspeed/Makefile new file mode 100644 index 0000000000..e085b7b442 --- /dev/null +++ b/arch/arm/cpu/arm926ejs/aspeed/Makefile @@ -0,0 +1 @@ +obj-y += cpu.o diff --git a/arch/arm/cpu/arm926ejs/aspeed/cpu.c b/arch/arm/cpu/arm926ejs/aspeed/cpu.c new file mode 100644 index 0000000000..488d540ba9 --- /dev/null +++ b/arch/arm/cpu/arm926ejs/aspeed/cpu.c @@ -0,0 +1,23 @@ +/* + * 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 + */ + +#include <common.h> +#include <asm/io.h> + +void enable_caches(void) +{ + icache_enable(); + //TODO ..... + dcache_enable(); + +} + |