From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Thu, 23 Aug 2012 11:19:23 +0200 Subject: [U-Boot] [PATCH V2 1/1] mx31/mx35/mx51/mx53/mx6: add watchdog In-Reply-To: <50352561.4020807@boundarydevices.com> References: <1345503784-18559-1-git-send-email-troy.kisky@boundarydevices.com> <50332699.6040701@denx.de> <5033CAAF.90303@boundarydevices.com> <503488A6.2030300@denx.de> <50352561.4020807@boundarydevices.com> Message-ID: <5035F59B.5050905@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 22/08/2012 20:30, Troy Kisky wrote: > On 8/22/2012 12:22 AM, Stefano Babic wrote: >> On 21/08/2012 19:51, Troy Kisky wrote: >>> On 8/20/2012 11:11 PM, Stefano Babic wrote: >>>> On 21/08/2012 01:03, Troy Kisky wrote: >>>> Hi Troy, >>> So, you are saying CONFIG_ options don't belong in imx-regs.h, or >>> you didn't notice I stuck it there, or both??? >> I didn't notice, but CONFIG_ options do not belong to imx-regs.h. They >> must be define only inside the board configuration file. >> >> Best regards, >> Stefano >> > Would it be acceptable to put > #if defined(CONFIG_MX31) || defined(CONFIG_MX35) || defined(CONFIG_MX51) \ > || defined(CONFIG_MX53) || defined(CONFIG_MX6Q) > #define CONFIG_IMX_WATCHDOG /* cpu_reset implemented in watchdog */ > #endif > > > at the bottom of config_cmd_default.h or do you have a better place in > mind? > I do not think this will be accepted by Wolfgang. config_cmd_default.h is a general file and should not have any reference to SOC specific details. We have discussed recently how we can put common code across CPU boundaries. I mean, code generic for all i.MXs (as in this case) that is then replicated under cpu/arm1136, cpu/arm926ejs,... Maybe we can start a new thread and ask Albert (I am already asking him..) what he thinks about a arch/arm/cpu/plat-imx. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================