summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/pcm038/pcm038.c
Commit message (Collapse)AuthorAgeFilesLines
* ARM: rename boards to more consistent namingSascha Hauer2014-02-031-377/+0
| | | | | | | | | | This renames the Freescale and Phytec board directories and defconfig files to a common naming scheme. The board directories are named <vendor>-<board> and the defconfig files are named <vendor>-<board>_defconfig. Also the DataModul realq7 is renamed to its Marketing Name eDM-QMX6. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: remove armlinux_set_bootparams() calls from boardsSascha Hauer2014-01-061-1/+0
| | | | | | | As the place for the atags now is determined automatically the call from the boards can be removed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/boardinfo'Sascha Hauer2013-09-051-0/+3
|\ | | | | | | | | | | | | Conflicts: arch/mips/boards/qemu-malta/init.c commands/bootm.c drivers/of/base.c
| * Set model and hostname at boardlevelSascha Hauer2013-08-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | With multiboard support the compiletime generated BOARDINFO string gets more and more meaningless. This removes it from Kconfig and replaces it with a variable that can be set at boardlevel. Also many boards have a standard setting for the hostname in the environment. This patch also moves the standard to C code by calling barebox_set_hostname(). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: include <gpio.h> instead of <mach/gpio.h>Sascha Hauer2013-08-161-1/+1
|/ | | | | | The gpio api should be used from <gpio.h> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: mc13xxx: Separate query_revision function for each supported ICAlexander Shiyan2013-07-151-1/+1
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx'Sascha Hauer2013-07-011-7/+11
|\ | | | | | | | | Conflicts: drivers/usb/imx/chipidea-imx.c
| * ARM: pcm038: Add setup for MC13783 IRQ pinAlexander Shiyan2013-06-171-6/+9
| | | | | | | | | | | | | | | | | | Kernel does not have pinctrl driver for i.MX27 yet. When we using DT, this cause to unable setup pins to desired function. This patch adds a setup for MC13783 IRQ pin to avoid this issue. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: pcm038: Avoid warning if gadget support not compiled inAlexander Shiyan2013-06-171-1/+2
| | | | | | | | | | | | | | | | Without this patch the chipidea driver reports 'No supported role' during runtime. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM: pcm038: Fix partition size definitionsAlexander Shiyan2013-06-111-10/+8
|/ | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: pcm038: Add support for USB OTG deviceAlexander Shiyan2013-05-301-2/+15
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: PCM970: Add definition for SPI CS1Alexander Shiyan2013-05-301-2/+11
| | | | | | | | | This chipselect is used on RDK Zigbee connector. Since we cannot define additional chipselect after SPI is initialized, define this one in main SPI initialization in PCM038 SOM. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: pcm038: Add definition for FEC resetAlexander Shiyan2013-05-041-0/+3
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: pcm038: Add definition for SPI chipselect 0Alexander Shiyan2013-05-041-2/+4
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: pcm038: Add descriptions for pin-groupsAlexander Shiyan2013-05-041-1/+4
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/fec'Sascha Hauer2013-04-041-1/+1
|\
| * net: fec: use standard phy type definesSascha Hauer2013-03-091-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | bootsource: create arch independent bootsource frameworkMarc Kleine-Budde2013-04-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | This patch seperates the imx independent from the arch independent code. The following functions and enums are renamed: - imx_bootsource() -> bootsource_get() - imx_set_bootsource() -> bootsource_set() - enum imx_bootsource -> enum bootsource Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM i.MX bootsource: convert enums from enum imx_bootsource to uppercaseMarc Kleine-Budde2013-03-261-1/+1
|/ | | | | | | Enums are in the same way as defines, so write them in uppercase. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: pcm038: Using "get_ram_size" for determine SRAM sizeAlexander Shiyan2013-02-251-3/+7
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: pcm038: Fix serial number IIM-addressAlexander Shiyan2013-02-251-1/+1
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM pcm038: Specify pr_fmt and change messages to pr_*Sascha Hauer2013-01-271-2/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX boards: use esdctl code to detect sdram sizeSascha Hauer2012-12-061-10/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX: get rid of imx-regs.hSascha Hauer2012-10-171-1/+1
| | | | | | | | | - remove now unused __REG definitions - include individual SoC register files instead of imx-regs.h - move IMX_GPIO_NR to generic.h - finally remove imx-regs.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX27: Cleanup remaining unprefixed registersSascha Hauer2012-10-171-7/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/clk' into for-next/imxSascha Hauer2012-10-171-4/+0
|\ | | | | | | | | Conflicts: drivers/net/fec_imx.c
| * ARM i.MX: Enable clocks in common placeSascha Hauer2012-10-101-4/+0
| | | | | | | | | | | | | | | | On i.MX we enable all necessary clocks during startup of the clock controller driver, so we do not need the register hacking in the drivers anymore. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ARM i.MX: rework bootsource settingSascha Hauer2012-10-151-5/+3
|/ | | | | | | | | | This moves the known i.MX bootsource settings to a single file so that the code can be shared. Also we add a enum for the different boot sources so that it can be used in C Code and not only on the shell. The pcm038 board is changed to use it instead of digging in the registers manually. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX: Add header file for WEIM cs setupSascha Hauer2012-10-041-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-171-4/+0
| | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* devices: fix missing conversion to DEVICE_ID_DYNAMICJean-Christophe PLAGNIOL-VILLARD2012-08-121-1/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/pcm038'Sascha Hauer2012-08-011-2/+33
|\
| * PCM038: Added setup for OTG host pinsAlexander Shiyan2012-07-241-0/+13
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mc13xxx: Added dummy definitions if CONFIG_MFD_MC13XXX is not setAlexander Shiyan2012-07-241-2/+0
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * PCM038: Read UID from fuses and pass this value to kernel as serial numberAlexander Shiyan2012-07-201-0/+4
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * PCM970: Add MMC supportAlexander Shiyan2012-07-201-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here is a test output: barebox 2012.07.0-00136-ge3ab4bc-dirty #23 Tue Jul 3 23:10:44 MSK 2012 Board: Phytec phyCORE-i.MX27 mc13xxx-spi@mc13xxx-spi0: Found MC13783 ID: 0x00009b [Rev: 3.1] cfi_flash@cfi_flash0: found cfi flash at c0000000, size 33554432 NAND device: Manufacturer ID: 0x20, Chip ID: 0x36 (ST Micro NAND 64MiB 1,8V 8-bit) Bad block table found at page 131040, version 0x01 Bad block table found at page 131008, version 0x01 imxfb@imxfb0: i.MX Framebuffer driver cfi_protect: protect 0xc0080000 (size 1048576) Using environment in NOR Flash Found NXP ISP150x ULPI transceiver (0x04cc:0x1504). ehci@ehci0: USB EHCI 1.00 imx-mmc@mci0: registered as mci0 Malloc space: 0xa6f00000 -> 0xa7efffff (size 16 MB) Stack space : 0xa6ef8000 -> 0xa6f00000 (size 32 kB) running /env/bin/init... Hit m for menu or any other key to stop autoboot: 3 type exit to get to the menu barebox@Phytec phyCORE-i.MX27:/ mci0.probe=1 mci@mci0: registered disk0 barebox@Phytec phyCORE-i.MX27:/ devinfo mci0 resources: driver: mci Card: Attached is an SD Card (Version: 1.10) Capacity: 1962 MiB CID: 1C535653-44432020-1000013C-7E007200 CSD: 005E0032-5F5A83D5-2DB7FFBF-96800000 Max. transfer speed: 25000000 Hz Manufacturer ID: 1C OEM/Application ID: 5356 Product name: 'SDC ' Product revision: 1.0 Serial no: 81022 Manufacturing date: 2.2007 Parameters: probe = 1 barebox@Phytec phyCORE-i.MX27:/ mkdir /d barebox@Phytec phyCORE-i.MX27:/ mount /dev/disk0.0 fat /d barebox@Phytec phyCORE-i.MX27:/ ls /d barebox.bin barebox@Phytec phyCORE-i.MX27:/ Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mc13xxx: Define maximum SPI clock frequency global to driverAlexander Shiyan2012-07-201-1/+0
|/ | | | | | | | | | This patch provide setup for SPI clk frequency global to driver. For MC13783 maximum clock frequency is 20 MHz, for MC13892 maximum clock frequency is 26 MHz, so we define 20 MHz as a maximum SPI clk. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCM038: Remove now unused preset for SPI chipselect.Alexander Shiyan2012-05-161-2/+0
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCM038: Removed unnecessary call to gpio_set_valueAlexander Shiyan2012-05-141-1/+0
| | | | | | | The value already is set by calling gpio_direction_output. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCM038: Move USBH2 initialization to PCM970Alexander Shiyan2012-05-141-40/+0
| | | | | | | Actually ISP1504 ULPI chip are installed on PCM970 development board. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Removed duplicate definition for DEVFS_PARTITION_xxxAlexander Shiyan2012-05-131-4/+4
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCM038: Initial PCM970 development board supportAlexander Shiyan2012-05-131-3/+0
| | | | | | | | Some devices need to be moved to the PCM970 source file later, because in fact these devices are not installed on the main unit PCM038. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCM038: Remove unused includesAlexander Shiyan2012-05-131-3/+0
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCM038: Call power_init() after initializing SPI.Alexander Shiyan2012-05-131-77/+63
| | | | | | | Power and frequency should be setup before initialize other devices. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Final switch to use combined driver mc13xxxAlexander Shiyan2012-04-111-5/+32
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCM-038: fix SRAM device nameAlexander Shiyan2012-04-101-1/+1
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2012-04-051-11/+5
|\
| * i.MX27: Added helper for setup chipselect control registerAlexander Shiyan2012-04-021-9/+3
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Completely migrate option ISP1504 to ULPIAlexander Shiyan2012-04-021-2/+2
| | | | | | | | | | | | | | Since we do not have ISP1504-related functions, we migrated to ULPI. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | pcm038: increase size of barebox partitionTeresa Gámez2012-03-151-4/+8
|/ | | | | | | | The image built with pcm038_defconfig is >256k so increase the size of the barebox partition. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>