-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 137240 b: refs/heads/master c: e00f0b4 h: refs/heads/master v: v3
- Loading branch information
Valentin Longchamp
authored and
Sascha Hauer
committed
Mar 13, 2009
1 parent
30e13e8
commit 17397ee
Showing
6 changed files
with
155 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: e180a5c26fae12dcc02244df68a6089cd5522df7 | ||
refs/heads/master: e00f0b4a9316c9de000697e489f6102271e94dc4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Copyright (C) 2009 Valentin Longchamp, EPFL Mobots group | ||
* | ||
* 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 | ||
*/ | ||
|
||
#include <linux/types.h> | ||
#include <linux/init.h> | ||
|
||
#include <linux/platform_device.h> | ||
|
||
#include <mach/hardware.h> | ||
#include <mach/common.h> | ||
#include <mach/imx-uart.h> | ||
#include <mach/iomux-mx3.h> | ||
|
||
#include "devices.h" | ||
|
||
static struct imxuart_platform_data uart_pdata = { | ||
.flags = IMXUART_HAVE_RTSCTS, | ||
}; | ||
|
||
static int mxc_uart1_pins[] = { | ||
MX31_PIN_CTS2__CTS2, MX31_PIN_RTS2__RTS2, | ||
MX31_PIN_TXD2__TXD2, MX31_PIN_RXD2__RXD2, | ||
}; | ||
|
||
/* | ||
* system init for baseboard usage. Will be called by mx31moboard init. | ||
*/ | ||
void __init mx31moboard_devboard_init(void) | ||
{ | ||
printk(KERN_INFO "Initializing mx31devboard peripherals\n"); | ||
mxc_iomux_setup_multiple_pins(mxc_uart1_pins, ARRAY_SIZE(mxc_uart1_pins), "uart1"); | ||
mxc_register_device(&mxc_uart_device1, &uart_pdata); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright (C) 2009 Valentin Longchamp, EPFL Mobots group | ||
* | ||
* 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 | ||
*/ | ||
|
||
#include <linux/types.h> | ||
#include <linux/init.h> | ||
|
||
#include <linux/platform_device.h> | ||
|
||
#include <mach/hardware.h> | ||
#include <mach/common.h> | ||
#include <mach/imx-uart.h> | ||
#include <mach/iomux-mx3.h> | ||
|
||
#include "devices.h" | ||
|
||
/* | ||
* system init for baseboard usage. Will be called by mx31moboard init. | ||
*/ | ||
void __init mx31moboard_marxbot_init(void) | ||
{ | ||
printk(KERN_INFO "Initializing mx31marxbot peripherals\n"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright (C) 2009 Valentin Longchamp, EPFL Mobots group | ||
* | ||
* 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., 51 Franklin Street, Fifth Floor, Boston, | ||
* MA 02110-1301, USA. | ||
*/ | ||
|
||
#ifndef __ASM_ARCH_MXC_BOARD_MX31MOBOARD_H__ | ||
#define __ASM_ARCH_MXC_BOARD_MX31MOBOARD_H__ | ||
|
||
/* mandatory for CONFIG_LL_DEBUG */ | ||
|
||
#define MXC_LL_UART_PADDR UART1_BASE_ADDR | ||
#define MXC_LL_UART_VADDR (AIPI_BASE_ADDR_VIRT + 0x0A000) | ||
|
||
#ifndef __ASSEMBLY__ | ||
|
||
enum mx31moboard_boards { | ||
MX31NOBOARD = 0, | ||
MX31DEVBOARD = 1, | ||
MX31MARXBOT = 2, | ||
}; | ||
|
||
/* | ||
* This CPU module needs a baseboard to work. After basic initializing | ||
* its own devices, it calls baseboard's init function. | ||
*/ | ||
|
||
extern void mx31moboard_devboard_init(void); | ||
extern void mx31moboard_marxbot_init(void); | ||
|
||
#endif | ||
|
||
#endif /* __ASM_ARCH_MXC_BOARD_MX31MOBOARD_H__ */ |