From: thomas.petazzoni@free-electrons.com (Thomas Petazzoni) Date: Sat, 14 Jun 2014 17:59:24 +0200 Subject: Adding new board support In-Reply-To: References: <1384962549.17098.1402047639167.JavaMail.open-xchange@webmail.cdac.in> Message-ID: <20140614175924.094cc0a9@free-electrons.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hello, On Sat, 7 Jun 2014 12:57:34 +0530, AYAN KUMAR HALDER wrote: > 1. Create a config file under arch/arm/configs/ for your board. You > may refer to any of the standard configuration which closely resembles > your board's configuration. To start with enable the basic > configurations such as processor, timer, uart, etc and disable SMP > which are the bare minimum requirements for the board to boot. > 2. Add a folder under arch/arm/. Add board.c > where your can register your platform devices such as pcie, nand, usb, > uart, gpio, rtc etc > 3, Under the same folder above, add timer.c to initialize your > timers.Add clock.c to enable/disable clocks and change clock rate of > various Functional Blocks. Add to initialize your > processor specific details such as global timers, arm pmu, interrupts, > cache, global dma, ACP, SCU and inter-processor interrupt( if later > you decide to enable SMP) > 4. It is advisable to refer to a standard platform (like versatile - > express ) to understand the board specific configurations in Linux. Sorry to say so, but those recommendations are quite wrong when the goal is to add the support for a new _board_ in the kernel. What you're describing here are roughly the steps to add the support for a new SoC or family of SoC. If what's needed is adding support for a new board that uses an ARM SoC already supported by the kernel, then all what's needed is either writing a Device Tree file (if the ARM SoC in question is supported through the Device Tree) or writing a board file in an existing mach- folder. Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com