From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Sun, 13 Dec 2015 21:27:08 +0100 (CET) Received: from proxima.lp0.eu ([81.2.80.65]:60620 "EHLO proxima.lp0.eu" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27008830AbbLMU1GV1TGA (ORCPT ); Sun, 13 Dec 2015 21:27:06 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fire.lp0.eu; s=exim; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject; bh=tao75H1Wib6kk5xz+3bl6Qs3Uu3MG5JpQUkMfMpcOJ8=; b=seM7qNsV0vzJcQb6Zf4F0Bdx8UEwJ7wic5NITiU9cgBBNOMmP57lcSu9gJwI5rWxNLSjrnLonSA8ccxZQZ6fhKMy/zvUZosmvD7OOFgik25lg87RgnsCtMAwBs02zj47ZN77nw+3FegezIeCDGcDRrSRaNZf4pztemxdZvxXvo6gxlKeDlvQmKrZ7TGWmpK4tE7Ze5xwhFhiubEtS0McWnLj/YQIoAxs/J2g1FSM/OHrAn5Jyf2u9zhIBF11quDjgT0XVMKZVVEZadrkRhdjAI3IWw+o51HCRrzahJT6r3OCyalTKaYC6EEBGfgMlbzYfKS1kIMqxSVhVDb9fG5iGQ==; Received: from redrum.lp0.eu ([2001:8b0:ffea:0:2e0:81ff:fe4d:2bec]:44162 ident=simon) by proxima.lp0.eu ([2001:8b0:ffea:0:205:b4ff:fe12:530]:465) with esmtpsav (UNKNOWN:DHE-RSA-AES256-SHA:256/CN=Simon Arlott) id 1a8DER-00057c-T8 (Exim); Sun, 13 Dec 2015 20:27:00 +0000 Subject: Re: [PATCH linux-next (v3) 3/3] mtd: part: Add BCM962368 CFE partitioning support To: Jonas Gorski References: <566B460F.1040603@simon.arlott.org.uk> <566B47D9.8020105@simon.arlott.org.uk> Cc: David Woodhouse , Brian Norris , Florian Fainelli , Ralf Baechle , Kevin Cernekee , Linux Kernel Mailing List , MTD Maling List , bcm-kernel-feedback-list , MIPS Mailing List , linux-api@vger.kernel.org From: Simon Arlott Message-ID: <566DD491.4030902@simon.arlott.org.uk> Date: Sun, 13 Dec 2015 20:26:57 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 50570 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: simon@fire.lp0.eu Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips On 11/12/15 23:12, Jonas Gorski wrote: > On Fri, Dec 11, 2015 at 11:02 PM, Simon Arlott wrote: >> +#define BCM63XX_CFE_MAGIC_OFFSET 0x4e0 >> +#define BCM963XX_CFE_VERSION_OFFSET 0x570 >> +#define BCM963XX_NVRAM_OFFSET 0x580 > > You should decide whether you want to call it BCM63XX (the SoC) or > BCM963XX (the Board using the SoC). Also probably better served in > bcm963xx_nvram.h I'm going to name the CFE locations, nvram and anything that is a property of the flash layout BCM963XX_*, as a theoretical board using BCM63XX with no flash wouldn't use these. The parser is still called bcm63xxpart so that's currently an anomaly. I'm working on making it support both NOR and NAND flash layouts. -- Simon Arlott