drivers for LPC2xxx on-chip peripherals
Hans Rosenfeld
rosenfeld@grumpf.hope-2000.org
Thu Jul 12 15:22:00 GMT 2007
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
-------------- next part --------------
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lpc2xxx_drivers.tar
Type: application/x-tar
Size: 92160 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20070712/8e538c51/attachment.tar>
More information about the Ecos-patches
mailing list