From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24894 invoked by alias); 9 Nov 2010 09:53:44 -0000 Received: (qmail 24872 invoked by uid 22791); 9 Nov 2010 09:53:42 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,TRACKER_ID X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 09 Nov 2010 09:53:37 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 374F32F78011 for ; Tue, 9 Nov 2010 09:53:34 +0000 (GMT) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e+le9U0-vqme; Tue, 9 Nov 2010 09:53:28 +0000 (GMT) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1001070] BSP for Olimex LPC-L2294-8M X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Patches and contributions X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: sergei.gavrikov@gmail.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 09 Nov 2010 09:53:00 -0000 Message-Id: <20101109095328.D7E042F78003@mail.ecoscentric.com> Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2010-11/txt/msg00007.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001070 Sergei Gavrikov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sergei.gavrikov@gmail.com --- Comment #1 from Sergei Gavrikov 2010-11-09 09:53:26 GMT --- Hi Jean-Francois, I plan to work on your patch as I have similar hardware. I have only one comment on the patch. My concern is about using new CDL option: CYGHWR_HAL_ARM_LPC2XXX_OLPCL2294_RAMSIZE This CDL option (=name) is used 1) to fix the memory layout files, 2) to set new bus timings both for RAM and NVRAM components, and 3) to select proper FLASH parts for the hardware variant. As I said I would prefer to see in HAL just one eCos CDL component which wraps one or more CDL options, something like this (draft, not tested) cdl_componet CYGHWR_HAL_ARM_LPC2XXX_OLPCL2294_VARIANT { display "OLPCL2294 variant used" flavor data default_value { "OLPCL2294_1M" } legal_values { "OLPCL2294_1M" "OLPCL2294_8M" } define -file system.h CYGHWR_BOARD description " Blah, blah, blah." cdl_option CYGHWR_HAL_ARM_LPC2XXX_OLPCL2294_RAMSIZE { display "External RAM size" flavor data calculated { is_substr(CYGHWR_HAL_ARM_LPC2XXX_OLPCL2294_VARIANT, "1M") ? 0x100000 : 0x800000 } description " Blah, blah, blah." } # More CDL options? } So, your code would use CYGHWR_BOARD_OLPCL2294_xM checks anywhere and CDL option CYGHWR_HAL_ARM_LPC2XXX_OLPCL2294_RAMSIZE can be used in MLT only. If you want you would add more CDL options in this component to implement your TODOs (like overwriting those config values for LPC BANKx registers in HAL startup code, but, IMO, it is excessively). Also, it will be nice to manage HAL_PLATFORM_EXTRA definition, to set its value in either "1M" or "8M", that would show a proper hint in RedBoot (however, it is beyond the scope your patch). If you are familiar with CDL, can you, please, fix the patch (at least to wrap RAMSIZE option in CDL component)? Otherwise, I would help to make some changes. Sergei -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.