9
0
Fork 0
Commit Graph

12167 Commits

Author SHA1 Message Date
Lucas Stach 802abe8434 arm: imx: iim/ocotp: fix link error when !CONFIG_NET
Don't try to attach mac to device if there is no net support selected.
Fixes:
undefined reference to `dev_add_param_mac' in both iim and ocotp drivers.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 17:12:40 +01:00
Lucas Stach cdb0d02b87 rtc: select GREGORIAN_CALENDER
Fixes:
drivers/rtc/rtc-lib.c:109: undefined reference to `mktime'

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 17:12:39 +01:00
Lucas Stach 88628367db usb: musb: only build musb_barebox if host is enabled
musb_barebox.c contains code that is only ever used if CONFIG_MUSB_HOST
is set. Building it uncoditionally breaks the build depending on the link
order.

Fixes:
drivers/usb/musb/musb_barebox.c:64: undefined reference to `musb_urb_enqueue'

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 17:12:39 +01:00
Sascha Hauer 18895514dc kconfig: update to v3.18-rc6
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 15:42:07 +01:00
Sascha Hauer 3a0e9bfd0a scripts/Makefile.host: Update to Linux-3.18-rc6
Needed for new Kconfig.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 15:42:07 +01:00
Masahiro Yamada 22b3745f97 kbuild: handle multi-objs dependency appropriately
The comment in scripts/Makefile.build says as follows:

  We would rather have a list of rules like
        foo.o: $(foo-objs)
  but that's not so easy, so we rather make all composite objects depend
  on the set of all their parts

This commit makes it possible!

For example, assume a Makefile like this

  obj-m = foo.o bar.o
  foo-objs := foo1.o foo2.o
  bar-objs := bar1.o bar2.o

Without this patch, foo.o depends on all of
foo1.o foo2.o bar1.o bar2.o.
It looks funny that foo.o is regenerated when bar1.c is updated.

Now we can handle the dependency of foo.o and bar.o separately.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
2014-11-27 15:42:07 +01:00
Sascha Hauer 1b6d26af3c ARM: i.MX: update imx_v7_defconfig
Enable support for the i.MX6sx sabresdb and the KaRo Tx6x.
The sabresdb needs regulator support, so enable this aswell.
Also enable usbserial support.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 15:15:45 +01:00
Sascha Hauer 2fd1b13969 command: dmesg: depend on !CONSOLE_NONE
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 14:34:01 +01:00
Sascha Hauer 8c3b230807 command: passwd: depend on CMD_LOGIN rather than selecting it
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 14:33:57 +01:00
Sascha Hauer d014f7fd0f command: login: depend on !CONSOLE_NONE
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 14:33:52 +01:00
Sascha Hauer 9196cac0bd ARM: i.MX: Add i.MX6sx sabresdb support
This adds support for the Freescale i.MX6sx sabresdb board.

Tested are:

- UART
- The three SD card slots
- USB host
- USB otg (host and device mode)
- FEC (both)

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 11:26:02 +01:00
Sascha Hauer 0c08fa3bd2 ARM: i.MX: Add i.MX6sx support
Add some cpu type defines and clock support. The clock support
is very different from other i.MX variants, so it's a separate
file, like done in the kernel.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 11:25:52 +01:00
Sascha Hauer 1abc1202d0 ARM: i.MX: ocotp: Add i.MX6sx compatible entry
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 11:25:37 +01:00
Sascha Hauer f154e9ca76 ARM: i.MX: ocotp: Fix MAC address provider for unaligned addresses
The current algorithm assumes the MAC address starts at a 4 byte
aligned address. Unfortunately this is not always the case. On the
i.MX6sx the MAC Address for the second FEC starts at offset 0x632.
The register space for the fuse map has holes, only the 16 byte
aligned words contain data. This means we have to skip the holes.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 11:25:33 +01:00
Sascha Hauer f2142fb6da pinctrl: Add i.MX6sx compatible entry
To let the driver probe on i.MX6sx.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 11:25:28 +01:00
Sascha Hauer ee2a559afd imx-usb-loader: Add i.MX6sx support
Not much to do here, only add the Product ID.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 11:25:23 +01:00
Sascha Hauer 5753074866 net: fec_imx: Add i.MX6sx compatible entry
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 11:25:13 +01:00
Sascha Hauer 6ed8916e90 serial: i.MX: Use "per" clk
Which is the correct clock for the baud rate.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 11:25:02 +01:00
Sascha Hauer 9e7c0e3176 mci: imx-esdhc: Add i.MX6sl compatible
Which will also be used for the i.MX6sx.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 11:24:58 +01:00
Sascha Hauer df17efad59 mci: imx-esdhc: Fix Interrupt enable register for i.MX6sx
The reset default of this register has changed on i.MX6sx. Explicitly
write the value we want to have to make it work on i.MX6sx.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 11:24:52 +01:00
Wadim Egorov 4d6e582c7f ARM: dts: phyCORE-AM335x: Remove unused pin in nandflash pinmuxing
Pin 0x74 (gpmc_wpn.gpio0_30) is not used on the phyCORE SOM.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-27 11:22:41 +01:00
Lucas Stach 0f1078d5cc usb: host: only activate Efika MX ULPI workaround if ULPI is selected
Fixes a build failure with disabled ULPI support.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-26 19:21:09 +01:00
Lucas Stach 3127a942b7 blspec: depend on, not select flexible bootargs
Blspec is a consumer of the flexible bootargs mechanism, so it should
depend on it rather than select it.

Fixes:
warning: (BLSPEC && DEFAULT_ENVIRONMENT_GENERIC_NEW) selects FLEXIBLE_BOOTARGS
which has unmet direct dependencies (COMMAND_SUPPORT && CMD_GLOBAL)

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-26 19:21:09 +01:00
Lucas Stach b1da773d9e net: ethoc: depend on OPENRISC
This driver currently only works on OpenRISC, as it uses
the cache flush/invalidate functions of this arch.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-26 19:21:09 +01:00
Lucas Stach 85383d2115 envfs: include errno.h
Fixes: include/envfs.h:124:10: error: 'ENOSYS' undeclared

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-26 19:21:09 +01:00
Lucas Stach 154c0b70f0 arm: imx: pca100: only try to enable USB if USB_ULPI is configured
Avoids a build failure if the config does not include ULPI support.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-26 19:21:09 +01:00
Dmitry Lavnikevich 54961378f0 imx6: clk: Gate off ENFC clock before setting clock rate
This fixes NAND initialization issue which appears occasionally on
some i.MX6 SoCs (particulary was observed on phyCARD-i.MX6 with
i.MX6Solo).

Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-26 16:43:12 +01:00
Lucas Stach 93b7459e1c lib: decompress_xz: fix function header to match prototype
Fixes:
lib/uncompress.c:124:10: warning: assignment from incompatible pointer type

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-24 14:04:11 +01:00
Lucas Stach 2d22fca0e7 usb: gadget: fastboot: select BANNER
Fastboot gadget needs the 'release_string' which is available only
if CONFIG_BANNER is set.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-24 14:04:11 +01:00
Lucas Stach ceac6c7e14 common: menu needs PROCESS_ESCAPE_SEQUENCE
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-24 14:04:10 +01:00
Lucas Stach 14b53a11c7 arm: fill BUILTIN_DTB_NAME for boards that still use this option
There are only a few users of BUILTIN_DTB left, but those should
alsways fill thr name properly. Avoids lots of failures in the
randconfig builds.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-24 14:04:10 +01:00
Lucas Stach 9f46d31f81 arm: don't allow to select BUILTIN_DTB when building multiimage
It doesn't make sense to allow building in a single DTB into a
multiimage barebox, so we can spare the user this option.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-24 14:04:10 +01:00
Lucas Stach 557b403d85 mci: esdhc: add back PIO_TIMEOUT
This got lost during bd1bf53b34
(mci: imx-esdhc: factor out common sdhci registers). Seems the PIO
option isn't too heavily used.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-24 14:04:10 +01:00
Lucas Stach 0d18871f4b video: ipuv3: select OFDEVICE for HDMI and LVDS
Both components need the OF display timings helpers.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-24 14:04:10 +01:00
Lucas Stach 57b584d748 arm: imx: nand update handler depends on MTD layer
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-24 14:04:10 +01:00
Lucas Stach c617f53768 arm: imx: select I2C for all boards that need it in their board init
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-24 14:04:09 +01:00
Lucas Stach 4bd07a1039 arm: imx: select MFD_MC13XXX for all boards that need it
This was only done for some of the boards and while it is ok to build
those boards without regulator support it may potentially yield non-working
barebox binaries. This is clearly not what the user wanted.

Also select the appropriate bus support needed for the MC13xxx.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-24 14:04:08 +01:00
Lucas Stach 79f2b8a7c9 common: firmware: include libfile
Fixes
common/firmware.c:206:2: error: implicit declaration of function 'copy_file'
in a number of configuration where this file isn't pulled in through
other headers.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-24 14:04:08 +01:00
Lucas Stach 0233462687 firmware: altera-serial: fix printf message
Fixes:
.../altera_serial.c:118:2: warning: too many arguments for format

Also sz is of type size_t, so use proper format specifier.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-24 14:04:07 +01:00
Lucas Stach b7782cc79f firmware: altera-serial: don't try to check void return value
Fixes:
.../altera_serial.c:84:6: error: void value not ignored as it ought to be

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-24 14:04:07 +01:00
Lucas Stach 7376942e46 firmware: altera-serial: depend on SPI
This driver uses SPI bus functions.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-24 14:04:06 +01:00
Lucas Stach b525454de5 firmware: socfpga: depend on ARCH_SOCFPGA
This driver uses a lot of arch specific functionality and
fails to build on anything but SOCFPGA.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-24 14:04:06 +01:00
Dmitry Lavnikevich 36d08119e9 ARM i.MX: add 2-bit gate clock support
Based on kernel clk-gate2 and barebox clk-gate implementations.

Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-24 13:42:26 +01:00
Andrey Smirnov 074960339e i.MX6: esdctl: Fix a bug in memory probing code
Old version of imx6_mmdc_add_mem did not use 64-bit arithmetic and
thus was prone to overflow on systems with 4GB of memory. It also did
not take into account the fact that i.MX6 does not support more than
3.8GB of memory and would report incorrect memory size. This commit
fixes both issues.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-20 14:57:19 +01:00
Sascha Hauer a56dcaa9d4 ARM: i.MX51 efikasb: register init callback for PMIC init
So that the PMIC initialisation is called once it's available.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-20 14:57:18 +01:00
Sascha Hauer f1b3619759 ARM: i.MX51 efikasb: Use defaultenv_append_directory
To have the smartbook specific env available in the multi image.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-20 14:57:17 +01:00
Sascha Hauer c7f122830d ARM: i.MX51: Add pwm aliases to device tree
Needed for accessing the PWMs in barebox.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-20 14:57:17 +01:00
Sascha Hauer 0437a24c58 ARM: i.MX51: Setup MIPI
Setting up the MIPI unit is necessary for proper IPU support,
so set this up here. This is only needed for graphics in barebox,
the Kernel repeats this setup during booting.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-20 14:57:17 +01:00
Sascha Hauer 2a407b25d0 ARM: i.MX: print silicon revision with pr_info
So that this message can be silenced by reducing the loglevel.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-20 14:57:16 +01:00
Christian Hemp e8f9f5b131 imx6: Add support for phyBOARD-SUBRA
Add support for phyBOARD-SUBRA which use a phyFLEX-i.MX6 (pfla02) module.
	- i.MX6 SOLO with 512MB RAM

Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-11-20 14:57:14 +01:00