public inbox for ecos-patches@sourceware.org
 help / color / mirror / Atom feed
* drivers for LPC2xxx on-chip peripherals
@ 2007-07-12 15:22 Hans Rosenfeld
  2007-08-12 21:33 ` Sergei Gavrikov
  2007-08-20 16:26 ` Hans Rosenfeld
  0 siblings, 2 replies; 9+ messages in thread
From: Hans Rosenfeld @ 2007-07-12 15:22 UTC (permalink / raw)
  To: ecos-patches

[-- Attachment #1: Type: text/plain, Size: 663 bytes --]

The attached tarballs contains four new drivers to support the on-chip
flash memory, RTC (wallclock), I2C and SPI units of the LPC2xxx
controllers.

The flash driver is not much more than a wrapper around the IAP routine
of the boot rom. Since I can't test on other devices, it is currently
limited to those LPC2xxx variants using two erase block sizes (8k and
64k) and containing 256k of flash memory, of which the upper 8x8k are
usable. This is enough for RedBoot to support FIS and fconfig.

It shouldn't be hard to extend the driver to fully support the simpler
devices using all 8k blocks.


-- 
%SYSTEM-F-ANARCHISM, The operating system has been overthrown

[-- Attachment #2: lpc2xxx_drivers.diff --]
[-- Type: text/plain, Size: 3150 bytes --]

Index: packages/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/ChangeLog,v
retrieving revision 1.181
diff -u -w -r1.181 ChangeLog
--- packages/ChangeLog	3 Jul 2007 14:42:17 -0000	1.181
+++ packages/ChangeLog	12 Jul 2007 14:25:13 -0000
@@ -1,3 +1,8 @@
+2007-07-12  Hans Rosenfeld  <rosenfeld@grumpf.hope-2000.org>
+
+	* ecos.db: added drivers for LPC2xxx on-chip flash, RTC, I2C and
+	SPI units
+
 2007-07-02   uwe.kindler <uwe.kindler@cetoni.de>
 
 	* ecos.db CAN driver for LPC2xxx. Updated entry for loop
Index: packages/ecos.db
===================================================================
RCS file: /cvs/ecos/ecos/packages/ecos.db,v
retrieving revision 1.167
diff -u -w -r1.167 ecos.db
--- packages/ecos.db	3 Jul 2007 14:42:18 -0000	1.167
+++ packages/ecos.db	12 Jul 2007 14:25:21 -0000
@@ -197,6 +197,16 @@
            This package contains generic support for FLASH memory."
 }
 
+package CYGPKG_DEVS_FLASH_ARM_LPC2XXX {
+        alias           { "Support for the internal flash memory of LPC2xxx devices" flash_arm_lpc2xxx }
+        directory       devs/flash/arm/lpc2xxx
+        script          flash_arm_lpc2xxx.cdl
+        hardware
+        description     "
+           This package contains hardware support for the internal
+           flash memory of the LPC2xxx devices."
+}
+
 package CYGPKG_DEVS_FLASH_ARM_AAED2000 {
 	alias 		{ "Support for flash memory on Agilent AAED2000 board" flash_aaed2000 }
 	directory	devs/flash/arm/aaed2000
@@ -1973,6 +1983,16 @@
            also necessary to select an actual driver implementation."
 }
 
+package CYGPKG_DEVICES_WALLCLOCK_ARM_LPC2XXX {
+        alias           { "Wallclock driver for LPC2xxx RTC module" }
+        directory       devs/wallclock/arm/lpc2xxx
+        script          lpc2xxx_wallclock.cdl
+        hardware
+        description "
+           This package provides a wallclock driver implementation for the
+           LPC2xxx RTC module."
+}
+
 package CYGPKG_DEVICES_WALLCLOCK_SH3 {
 	alias		{ "Wallclock driver for SH3 RTC module" devices_wallclock_sh3 device_wallclock_sh3 }
 	directory	devs/wallclock/sh/sh3
@@ -2208,6 +2228,15 @@
     description   "Atmel AT91EB55 spi devices."
 }
 
+package CYGPKG_DEVS_SPI_ARM_LPC2XXX {
+    alias         { "LPC2xxx SPI driver" }
+    hardware
+    directory     devs/spi/arm/lpc2xxx
+    script        spi_lpc2xxx.cdl
+    description "This package provides a driver for the I2C unit of the LPC2xxx
+                 controller family."
+}
+
 package CYGPKG_IO_SPI {
         alias      { "Generic SPI support" spi io_spi spi_io }
         directory  io/spi
@@ -2231,6 +2260,15 @@
             support for bit-banged I2C buses."
 }
 
+package CYGPKG_DEVS_I2C_ARM_LPC2XXX {
+    alias           { "LPC2xxx I2C driver" }
+    hardware
+    directory       devs/i2c/arm/lpc2xxx
+    script          i2c_lpc2xxx.cdl
+    description "This package provides a driver for the I2C unit of the LPC2xxx
+                 controller family."
+}
+
 package CYGPKG_DEVS_I2C_MCF52xx {
 	alias		{ "MCF52xx I2C driver" devs_i2c_mcf52xx mcf52xx_i2c_driver }
 	hardware

[-- Attachment #3: lpc2xxx_drivers.tar --]
[-- Type: application/x-tar, Size: 92160 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-08-22  9:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-12 15:22 drivers for LPC2xxx on-chip peripherals Hans Rosenfeld
2007-08-12 21:33 ` Sergei Gavrikov
2007-08-12 23:57   ` Hans Rosenfeld
2007-08-13  7:33     ` Andrew Lunn
2007-08-13 19:07     ` Sergei Gavrikov
2007-08-20 16:26 ` Hans Rosenfeld
2007-08-21  7:15   ` Daniel Néri
2007-08-22  8:57     ` Hans Rosenfeld
2007-08-22  9:32       ` Daniel Néri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).