Update of /cvsroot/blob/blob/src/blob
In directory usw-pr-cvs1:/tmp/cvs-serv791/src/blob
Modified Files:
Makefile.am memsetup-sa1110.S
Added Files:
h3600.c
Log Message:
Initial support for the Compaq Ipaq H3600 series
--- NEW FILE: h3600.c ---
/*
* h3600.c: Ipaq H3600 specific stuff
*
* Copyright (C) 2001 Erik Mouw (J.A...@it...)
*
* $Id: h3600.c,v 1.1 2001/10/27 21:04:20 erikm Exp $
*
* 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
*
*/
#ident "$Id: h3600.c,v 1.1 2001/10/27 21:04:20 erikm Exp $"
#ifdef HAVE_CONFIG_H
# include <blob/config.h>
#endif
#include <blob/flash.h>
#include <blob/init.h>
/* flash descriptor for H3600 flash */
/* 2x Intel ??? (16MB) */
static flash_descriptor_t h3600_flash_descriptors[] =
{
{
size: 2 * 128 * 1024,
num: 64,
lockable: 1
},
{
/* NULL block */
},
};
static void init_h3600_flash_driver(void)
{
flash_descriptors = h3600_flash_descriptors;
flash_driver = &intel32_flash_driver;
}
__initlist(init_h3600_flash_driver, INIT_LEVEL_OTHER_STUFF);
/* H3600 EGPIO register */
static u32 *egpio = (u32 *)0x49000000;
/* taken from Linux include/asm-arm/arch-sa1100/h3600.h */
#define EGPIO_H3600_VPP_ON (1 << 0)
#define EGPIO_H3600_RS232_ON (1 << 7) /* UART3 transceiver force on. Active high. */
static void h3600_init_egpio(void)
{
/* enable RS232 tranceiver */
*egpio = EGPIO_H3600_RS232_ON;
}
__initlist(h3600_init_egpio, INIT_LEVEL_INITIAL_HARDWARE);
Index: Makefile.am
===================================================================
RCS file: /cvsroot/blob/blob/src/blob/Makefile.am,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- Makefile.am 2001/10/21 21:37:07 1.7
+++ Makefile.am 2001/10/27 21:04:20 1.8
@@ -100,6 +100,7 @@
assabet.c \
brutus.c \
clart.c \
+ h3600.c \
lart.c \
nesa.c \
pleb.c \
Index: memsetup-sa1110.S
===================================================================
RCS file: /cvsroot/blob/blob/src/blob/memsetup-sa1110.S,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- memsetup-sa1110.S 2001/10/25 11:50:34 1.3
+++ memsetup-sa1110.S 2001/10/27 21:04:20 1.4
@@ -51,7 +51,7 @@
MEM_REG_BASE: .long 0xa0000000
MEM_START: .long 0xc0000000
-#if (defined ASSABET) || (defined CLART)
+#if (defined ASSABET) || (defined CLART) || (defined H3600)
MEMORY_CONFIG:
.long 0x72547254 /* 0x0 MDCNFG */
.long 0xAAAAAA7F /* 0x04 MDCAS00 */
|