summaryrefslogtreecommitdiffstats
path: root/u-boot/board/goldelico/beagle-expander/beagleexpander.c
diff options
context:
space:
mode:
Diffstat (limited to 'u-boot/board/goldelico/beagle-expander/beagleexpander.c')
-rw-r--r--u-boot/board/goldelico/beagle-expander/beagleexpander.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/u-boot/board/goldelico/beagle-expander/beagleexpander.c b/u-boot/board/goldelico/beagle-expander/beagleexpander.c
new file mode 100644
index 0000000..bd58b1f
--- /dev/null
+++ b/u-boot/board/goldelico/beagle-expander/beagleexpander.c
@@ -0,0 +1,24 @@
+#include <common.h>
+#include <twl4030.h>
+#include <asm/io.h>
+#include <asm/arch/mmc_host_def.h>
+#include <asm/arch/mux.h>
+#include <asm/arch/sys_proto.h>
+#include <asm/arch/gpio.h>
+#include <asm/mach-types.h>
+#include "../../ti/beagle/beagle.h"
+#include "beagleexpander.h"
+
+// make us initialize using both pinmux sets
+
+void muxinit(void)
+{
+ MUX_BEAGLE();
+ MUX_BEAGLE_EXPANDER();
+}
+
+#undef MUX_BEAGLE
+#define MUX_BEAGLE() muxinit()
+
+// take the original beagle.c code
+#include "../../ti/beagle/beagle.c"