changeset 2585:2f250a337a5e

* cdl/hal_arm_lpc24xx_ea2468.cdl: Fixed typo * include/pkgconf/mlt_arm_lpc24xx_ea2468_ram.h: Reserve 1 MB of SDRAM for RedBoot. * include/pkgconf/mlt_arm_lpc24xx_ea2468_ram.ldi: Reserve 1 MB of SDRAM for RedBoot * src/platform_i2c.c: Compile only if I2C channel 0 is supported
author asl
date Tue, 04 Nov 2008 16:19:07 +0000
parents 71f31d556765
children b147c0c67463
files packages/hal/arm/lpc24xx/ea2468/current/ChangeLog packages/hal/arm/lpc24xx/ea2468/current/cdl/hal_arm_lpc24xx_ea2468.cdl packages/hal/arm/lpc24xx/ea2468/current/include/pkgconf/mlt_arm_lpc24xx_ea2468_ram.h packages/hal/arm/lpc24xx/ea2468/current/include/pkgconf/mlt_arm_lpc24xx_ea2468_ram.ldi packages/hal/arm/lpc24xx/ea2468/current/src/platform_i2c.c packages/hal/arm/lpc24xx/ea2468/current/tests/i2c_eeprom.c
diffstat 6 files changed, 20 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/arm/lpc24xx/ea2468/current/ChangeLog
+++ b/packages/hal/arm/lpc24xx/ea2468/current/ChangeLog
@@ -1,3 +1,12 @@
+2008-11-01  Uwe Kindler  <uwe_kindler@web.de>
+
+	* cdl/hal_arm_lpc24xx_ea2468.cdl: Fixed typo
+	* include/pkgconf/mlt_arm_lpc24xx_ea2468_ram.h: Reserve 1 MB of
+          SDRAM for RedBoot.
+	* include/pkgconf/mlt_arm_lpc24xx_ea2468_ram.ldi: Reserve 1 MB of
+          SDRAM for RedBoot
+	* src/platform_i2c.c: Compile only if I2C channel 0 is supported       
+
 2008-09-18  Uwe Kindler  <uwe_kindler@web.de>
 
 	* cdl/hal_arm_lpc2xxx_ea2468.cdl: Added compile platform_i2c.c and
@@ -60,7 +69,6 @@ 2008-07-06  Uwe Kindler  <uwe_kindler@we
 ##
 ## This exception does not invalidate any other reasons why a work based on
 ## this file might be covered by the GNU General Public License.
-##
 ## -------------------------------------------
 #####ECOSGPLCOPYRIGHTEND####
 # ====================================================================
--- a/packages/hal/arm/lpc24xx/ea2468/current/cdl/hal_arm_lpc24xx_ea2468.cdl
+++ b/packages/hal/arm/lpc24xx/ea2468/current/cdl/hal_arm_lpc24xx_ea2468.cdl
@@ -133,7 +133,7 @@ cdl_package CYGPKG_HAL_ARM_LPC24XX_EA246
         default_value    0
         description      "
             The LPC2468 OEM board has two serial channels. The first
-            channel, UART0, ist routed to an USB-to-serial bridge and
+            channel, UART0, is routed to an USB-to-serial bridge and
             the second channel, UART1, is available on the Sub-D9
             RS232 connector. This option chooses which channel will be
             used to connect to a host running GDB."  
@@ -324,8 +324,8 @@ cdl_package CYGPKG_HAL_ARM_LPC24XX_EA246
         no_define
         calculated { "tests/i2c_eeprom" }
         description   "
-            This option specifies the set of tests for the LPC2xxx 
-            CAN device driver."
+            This option specifies the set of tests for the EA2468 
+            OEM board HAL."
     }
 
 }
--- a/packages/hal/arm/lpc24xx/ea2468/current/include/pkgconf/mlt_arm_lpc24xx_ea2468_ram.h
+++ b/packages/hal/arm/lpc24xx/ea2468/current/include/pkgconf/mlt_arm_lpc24xx_ea2468_ram.h
@@ -5,11 +5,11 @@
 #endif
 
 #define CYGMEM_REGION_sram (0x40000000)
-#define CYGMEM_REGION_sram_SIZE (0x00010000)
+#define CYGMEM_REGION_sram_SIZE (0x00100000)
 #define CYGMEM_REGION_sram_ATTR (CYGMEM_REGION_ATTR_R | CYGMEM_REGION_ATTR_W)
 
-#define CYGMEM_REGION_ram (0xA0000000)
-#define CYGMEM_REGION_ram_SIZE (0x02000000)
+#define CYGMEM_REGION_ram (0xA0100000)
+#define CYGMEM_REGION_ram_SIZE (0x01F00000)
 #define CYGMEM_REGION_ram_ATTR (CYGMEM_REGION_ATTR_R | CYGMEM_REGION_ATTR_W)
 
 #ifndef __ASSEMBLER__
--- a/packages/hal/arm/lpc24xx/ea2468/current/include/pkgconf/mlt_arm_lpc24xx_ea2468_ram.ldi
+++ b/packages/hal/arm/lpc24xx/ea2468/current/include/pkgconf/mlt_arm_lpc24xx_ea2468_ram.ldi
@@ -4,14 +4,14 @@
 MEMORY
 {
     sram   : ORIGIN = 0x40000000, LENGTH = 0x10000
-    ram    : ORIGIN = 0xA0000000, LENGTH = 0x2000000
+    ram    : ORIGIN = 0xA0100000, LENGTH = 0x1F00000
 }
 
 SECTIONS
 {
     SECTIONS_BEGIN
     SECTION_fixed_vectors (sram, 0x40000400, LMA_EQ_VMA)
-    SECTION_rom_vectors (ram, 0xA0010000, LMA_EQ_VMA)
+    SECTION_rom_vectors (ram, 0xA0100000, LMA_EQ_VMA)
     SECTION_text (ram, ALIGN (0x4), LMA_EQ_VMA)
     SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA)
     SECTION_rodata (ram, ALIGN (0x4), LMA_EQ_VMA)
--- a/packages/hal/arm/lpc24xx/ea2468/current/src/platform_i2c.c
+++ b/packages/hal/arm/lpc24xx/ea2468/current/src/platform_i2c.c
@@ -54,13 +54,13 @@
 #include <pkgconf/system.h>
 #include <cyg/infra/cyg_type.h>
 #include <cyg/hal/hal_io.h>
-#include <cyg/io/i2c.h>
-#include <cyg/io/i2c_lpc2xxx.h>
 #include <cyg/infra/cyg_ass.h>
 #include <cyg/hal/hal_endian.h>
 
 
 #ifdef CYGHWR_HAL_ARM_LPC24XX_I2C0_SUPP
+#include <cyg/io/i2c.h>
+#include <cyg/io/i2c_lpc2xxx.h>
 //=============================================================================
 // Setup I2C bus 0
 //=============================================================================
--- a/packages/hal/arm/lpc24xx/ea2468/current/tests/i2c_eeprom.c
+++ b/packages/hal/arm/lpc24xx/ea2468/current/tests/i2c_eeprom.c
@@ -53,6 +53,7 @@
 #include <cyg/infra/cyg_ass.h>          // assertion macros
 #include <cyg/infra/diag.h>
 #include <cyg/hal/hal_diag.h>
+#include <cyg/hal/hal_io.h>
 
 // Package requirements
 #if defined(CYGHWR_HAL_ARM_LPC24XX_I2C0_SUPP) && defined(CYGPKG_KERNEL)