* console/uart.c, include/bsp.h, smc/smc.c, startup/bspstart.c: Merge
	smdk2410 with gp32.
This commit is contained in:
Joel Sherrill
2008-05-06 20:54:06 +00:00
parent e06b6b0a09
commit 0542a23b3f
5 changed files with 21 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
2008-05-06 Ray Xu <rayx.cn@gmail.com>
* console/uart.c, include/bsp.h, smc/smc.c, startup/bspstart.c: Merge
smdk2410 with gp32.
2008-03-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/linkcmds: Add wildcard to gcc_except_table section so

View File

@@ -25,7 +25,7 @@
#include <rtems/bspIo.h>
/* Put the CPU (or UART) specific header file #include here */
#include <s3c2400.h>
#include <s3c24xx.h>
#include <libchip/serial.h>
#include <libchip/sersupp.h>

View File

@@ -28,7 +28,7 @@ extern "C" {
#include <rtems/iosupp.h>
#include <rtems/console.h>
#include <rtems/clockdrv.h>
#include <s3c2400.h>
#include <s3c24xx.h>
#define gp32_initButtons() {rPBCON=0x0;}
#define gp32_getButtons() \

View File

@@ -17,7 +17,7 @@
#include "rtems/diskdevs.h"
#include "smc.h"
#include <rtems/bspIo.h>
#include <s3c2400.h>
#include <s3c24xx.h>
#define SMC_DEVICE_NAME "/dev/smc"
#define SMC_SAMSUNG_ID 0xEC
@@ -58,6 +58,14 @@ struct SMC_INFO
uint32_t mb;
};
#ifdef CPU_S3C2410 //different regester map
#define rPBDAT rGPBDAT
#define rPBCON rGPBCON
#define rPDDAT rGPDDAT
#define rPEDAT rGPEDAT
#endif
static struct SMC_INFO smc_info;
uint32_t smc_l2p[0x2000];

View File

@@ -18,7 +18,7 @@
#include <rtems/libcsupport.h>
#include <rtems/libio.h>
#include <rtems/bspIo.h>
#include <s3c2400.h>
#include <s3c24xx.h>
/*-------------------------------------------------------------------------+
| Global Variables
@@ -92,8 +92,11 @@ void bsp_start_default( void )
int i;
/* stop RTC */
#ifdef CPU_S3C2400
rTICINT=0x0;
#else
rTICNT=0x0;
#endif
/* stop watchdog,ADC and timers */
rWTCON=0x0;
rTCON=0x0;