summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2012-05-11 14:40:25 +0000
committerimp <imp@FreeBSD.org>2012-05-11 14:40:25 +0000
commit2aac3bff63ca2057a8a5b12b9cf8c1335d4bd1bc (patch)
treec724928020d6d8e751d2abb6179cd67679cf616d
parent7e5e00e55fff2185e28629da87dec0d8a84aebe0 (diff)
downloadFreeBSD-src-2aac3bff63ca2057a8a5b12b9cf8c1335d4bd1bc.zip
FreeBSD-src-2aac3bff63ca2057a8a5b12b9cf8c1335d4bd1bc.tar.gz
Hack to unbreak boot2 for at91rm9200 boot loader. When the at91sam
code came in, it moved things around which wound up breaking the build. We have to do this bit of a hack to avoid duplication of a lot of #defines.
-rw-r--r--sys/arm/at91/at91_pioreg.h2
-rw-r--r--sys/boot/arm/at91/libat91/at91rm9200.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/arm/at91/at91_pioreg.h b/sys/arm/at91/at91_pioreg.h
index e3f2ea3..3d7a5cc 100644
--- a/sys/arm/at91/at91_pioreg.h
+++ b/sys/arm/at91/at91_pioreg.h
@@ -28,6 +28,7 @@
#ifndef ARM_AT91_AT91_PIOREG_H
#define ARM_AT91_AT91_PIOREG_H
+#ifndef ATMEL_ENV
/* Registers */
#define PIO_PER 0x00 /* PIO Enable Register */
#define PIO_PDR 0x04 /* PIO Disable Register */
@@ -65,6 +66,7 @@
#define PIO_OWDR 0xa4 /* PIO Output Write Disable Register */
#define PIO_OWSR 0xa8 /* PIO Output Write Status Register */
/* 0xac reserved */
+#endif
#define AT91C_PIO_PA0 ((unsigned int) 1 << 0) // Pin Controlled by PA0
#define AT91C_PIO_PA1 ((unsigned int) 1 << 1) // Pin Controlled by PA1
diff --git a/sys/boot/arm/at91/libat91/at91rm9200.h b/sys/boot/arm/at91/libat91/at91rm9200.h
index 4de14f2..db76708 100644
--- a/sys/boot/arm/at91/libat91/at91rm9200.h
+++ b/sys/boot/arm/at91/libat91/at91rm9200.h
@@ -41,6 +41,8 @@
#ifndef AT91RM9200_H
#define AT91RM9200_H
+#define ATMEL_ENV
+
typedef volatile unsigned int AT91_REG;// Hardware register definition
// *****************************************************************************
OpenPOWER on IntegriCloud