9
0
Fork 0
Commit Graph

4109 Commits

Author SHA1 Message Date
Harald Welte 9bd8556fcf sysmocom-odu: We have a 24C02 EEPROM at 0x50
... and not the eeprom of the phyCORE AM335x reference platform.
2014-12-19 05:10:26 +01:00
Holger Hans Peter Freyther 03773b8729 odu: Send a LLDP frame on boot
We need to wait some time between activating the ethernet and
being able to send the first frame. I have not investigated why
that is the case.

Fixes: SYS#488
2014-11-20 21:31:22 +01:00
Holger Hans Peter Freyther 1a06d18910 odu: Enable a login timeout and set a password
The default password is "odu-stop" in this case. The trailing
whitespace is copied from a barebox copy.

Fixes: SYS#487
2014-11-20 19:58:22 +01:00
Holger Hans Peter Freyther 84eef9382b misc: Save it as defconfig and enable the "login"/"passwd" command
We want to be able to force a token to enable the cli. This is
to avoid accidental interupts of the boot process.

Fixes: SYS#487
2014-11-20 19:42:19 +01:00
Holger Hans Peter Freyther 85e580bc59 misc: Rename config to show up during make help
Fix the config name so we can save the config and apply it
easily. The meta-sysmocom-bsp file needs to be updated when
the SRCREV is increased.
2014-11-20 19:39:17 +01:00
Holger Hans Peter Freyther de2b004a25 pcm051: Our units only have 256 MB of RAM modify the code 2014-07-15 18:42:15 +02:00
Holger Hans Peter Freyther 7e009ab9ac pcm051: The SoM has a variable amount of flash and less than configured
Deal with systems that only have 128 mb of nand flash. Let the
bootloader grow the partition to the end of the nand.

Signed-off-by: Holger Hans Peter Freyther <hfreyther@sysmocom.de>
2014-07-15 18:15:30 +02:00
Teresa Gámez 79a975077c ARM: am335x Phytec phyCORE: Enable ethernet
With an update of the am33xx.dtsi (commit 9313920df6) the mdio and mac
nodes are not enabled on default any more. Enable them explicit
in the board dts now.

Signed-off-by: Teresa Gámez <t.gamez at phytec.de>
2014-07-14 11:27:27 +02:00
Holger Hans Peter Freyther 21ddb3c528 pcm051: Add config files as used by the ODU device 2014-07-11 17:55:55 +02:00
Holger Hans Peter Freyther b6676d7db0 pcm051: Load a oftree if it exists
For forward compability with later kernels and device tree check
if there is a dtb inside the rootfs and use it.
2014-07-11 17:06:40 +02:00
Holger Hans Peter Freyther 492a4be72d pcm051: Horrible hacks to get our old kernel to boot
init/mtdparts-nand is not read so let's set the cmdline like this
and add a backup boot in case the ubifs is failing.
2014-07-11 15:58:52 +02:00
Holger Hans Peter Freyther c7b3d21c96 pcm051: Call the built-in kernel backup_kernel
For our main system we will boot the kernel that is inside the
rootfs but if that is failing we will load the other kernel.
2014-07-11 14:18:00 +02:00
Holger Hans Peter Freyther a6f894835c pcm051/omap: Hack and make bch8 mean HW_ROMCODE here
Changing the arch/arm/dts/am335x-phytec-phycore.dts would be
another option but that would break loading a mainline kernel.
The idea/patch is coming from Jan.
2014-07-11 14:17:17 +02:00
Sascha Hauer 9d7b0ba957 Revert "ARM: OMAP: Do not show MLO/SPI image options with OMAP_MULTI_BOARDS"
The assumption that OMAP_BUILD_IFT is unused for multi board support
is wrong. It is indeed used, so revert the patch.

This reverts commit d1ec6fb0c9.
2014-07-11 07:38:12 +02:00
Teresa Gámez 9794ccaa8e PCM051: Update RAM timings
Updated timings for new MT41J256M16HA15EIT RAM.
Timings are backward compatible to the MT41J256M8HX15E RAMs

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-09 14:11:28 +02:00
Sascha Hauer d1ec6fb0c9 ARM: OMAP: Do not show MLO/SPI image options with OMAP_MULTI_BOARDS
The MLO/SPI image options have no effect with OMAP_MULTI_BOARDS
enabled, so do not show them.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-07 14:15:02 +02:00
Robert P. J. Day 600d312707 at91mux: Fix both help info and Kconfig info.
Correct options are, in fact, -p and -b.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-07 10:02:11 +02:00
Sascha Hauer efa4d684d8 Merge branch 'for-next/misc'
Conflicts:
	arch/arm/boards/chumby_falconwing/falconwing.c
	arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c
	arch/x86/mach-x86.dox
	scripts/setupmbr/setupmbr.c
2014-07-04 17:27:06 +02:00
Sascha Hauer 45d593bc5e Merge branch 'for-next/mips' 2014-07-04 17:26:05 +02:00
Sascha Hauer 6724928c69 Merge branch 'for-next/marvell'
Conflicts:
	arch/arm/boards/Makefile
	arch/arm/dts/Makefile
2014-07-04 17:26:02 +02:00
Sascha Hauer 8da9a22b52 Merge branch 'for-next/imx' 2014-07-04 17:19:41 +02:00
Sascha Hauer ca7a800c1f Merge branch 'for-next/dts' 2014-07-04 17:19:41 +02:00
Sascha Hauer ce1b0d4ae3 Merge branch 'for-next/doc' 2014-07-04 17:19:40 +02:00
Sascha Hauer d9e2694a65 Merge branch 'for-next/clps711x' 2014-07-04 17:19:40 +02:00
Sascha Hauer 06b5693bdc Merge branch 'for-next/arm-versatile' 2014-07-04 17:19:40 +02:00
Sascha Hauer 9bcf0bcc06 Merge branch 'for-next/arm-errata'
Conflicts:
	arch/arm/boards/phytec-phyflex-imx6/lowlevel.c
2014-07-04 17:19:38 +02:00
Sascha Hauer d44edfe4f9 ARM: i.MX6 Phytec phyFLEX: Add watchdog reset workaround
phyFLEX boards beginning with 1362.2 have a workaround for this
i.MX6 bug:

ERR006282 ROM code uses nonreset PFDs to generate clocks, which may
lead to random boot failures

On these boards the SD4_DAT3 pin os connected to the CMIC. The CMIC
will reset the board after 10s when the pin isn't toggled.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-04 07:44:38 +02:00
Antony Pavlov 988ecf4269 MIPS: qemu-malta_defconfig: enable PCI & network stuff
qemu usage:

  # ifconfig br0:1 172.20.0.1
  # qemu-system-mips -nodefaults -nographic -M malta -m 256 \
    -serial stdio -monitor null \
    -bios ./barebox-flash-image \
    -net nic,vlan=0,model=rtl8139 \
    -net tap,vlan=0,script=net_br0.sh

  ...

  barebox:/ eth0.ipaddr=172.20.0.2
  barebox:/ eth0.serverip=172.20.0.1
  barebox:/ ping 172.20.0.1
  phy0: Link is up - 100/Full
  host 172.20.0.1 is alive
  barebox:/

Sample net_br0.sh (for connecting to br0 interface, so you can
connect barebox to your real network):

  #!/bin/sh

  brctl addif br0 $1
  ifconfig $1 up

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-04 07:36:16 +02:00
Antony Pavlov 657f7eac3f MIPS: add PCI support for GT64120-based Malta board
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-04 07:36:16 +02:00
Antony Pavlov eb062ecbdf MIPS: add dma_alloc_coherent()
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-04 07:35:47 +02:00
Lucas Stach f3127d1c1f arm: imx6: rename hummingboard directory to microsom
The rule in barebox is to name the directories after
the modules. As hummingboard is just one of the
carriers for the MicroSOM module, name the directory
accordingly.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-01 08:41:44 +02:00
Lucas Stach 691211c8bb arm: imx6: move imx6_init_lowlevel to single initcall
Instead of repeating the same lowlevel init for every board
move it to it's own initcall.

Avoids code bloat and shaves off almost 1.5kB of uncompressed
barebox size for a default imx_v7_defconfig build.

For boards wherethe hostname setup was done in  the postcore
initcall we move this to a device initcall to get it out of
the way.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-01 08:41:44 +02:00
Robert P. J. Day 4076817b88 sdma.h: Typo, "interupt" -> "interrupt"
Fix only two "interupt" misspellings in entire barebox codebase.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-30 17:57:22 +02:00
Robert P. J. Day ac705a462f Fix misspellings of "persistant" -> "persistent" in various places
Fix misspellings of "persistent", including the renaming of a function
to "register_persistant_environment".

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-30 08:16:00 +02:00
Christian Hemp 14552dddce imx6: add new chip revisions
Add new chip revisions for the new tap-out TO1.5 (i.MX6Q/D) and TO1.2
(i.MX6DL/S)

Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-30 08:14:26 +02:00
Antony Pavlov ba9b3bc6b9 MIPS: ritmix-rzx50_defconfig: enable gpio stuff
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-27 21:40:07 +02:00
Antony Pavlov 187e4c4eb8 MIPS: dts: jz4755.dtsi: add gpio
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-27 21:40:07 +02:00
Antony Pavlov 62d8a2a0ea MIPS: XBurst: use gpiolib
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-27 21:40:07 +02:00
Christian Hemp d1360672e8 imx6:phyFLEX: Fix ENTRY_FUNCTION
For some phyFLEX-i.MX6 modules the call __barebox_arm_head() was not removed.
With this function the barebox does not start.

Signed-off-by: Christian Hemp <christian.hemp@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-26 21:38:17 +02:00
Holger Schurig eab148a80c sandbox: add bit manipulation stuff
The functions are already in the sandbox, just the #defines are
missing.

Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-26 21:24:41 +02:00
Sascha Hauer 98360be0fe Documentation: remove doxygen documentation
The doxygen documentation is long outdated. Remove it. It will
be replaced with sphinx based documentation later.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-26 10:09:52 +02:00
Lucas Stach db158af8cd arm: tegra: enable ARM errata workarounds
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-26 08:05:21 +02:00
Lucas Stach 3acaa78fd8 arm: imx6: use imx6 specific cpu init function
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-26 08:05:21 +02:00
Lucas Stach 0dd421f272 arm: imx6: add cpu lowlevel init function
Enables all relevant errata workarounds for the
i.MX6 SoC.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-26 08:05:21 +02:00
Lucas Stach 2412f46dd3 arm: add errata workarounds
Header only implementation, so they can be pulled
into the individual SoC cpu init functions.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-26 08:05:21 +02:00
Sebastian Hesselbarth 02e14a60ab pinctrl: mvebu: add pinctrl drivers for Dove and Kirkwood
This adds pinctrl drivers for Marvell Dove and Kirkwood SoCs based
on a common driver stub. This design is based on the corresponding
Linux driver and should ease additional drivers for Marvell Armada
SoCs.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-26 07:57:54 +02:00
Antony Pavlov 204e863d48 MIPS: mach-ath79: drop extra 'select HAVE_CLK'
We already have 'select COMMON_CLK' so 'select HAVE_CLK'
is redundant.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-25 09:10:09 +02:00
Sebastian Hesselbarth 8c4d121201 ARM: mvebu: determine SoC id and revision from PCIe nodes
Marvell MVEBU SoC id and revision can be read out from any PCIe port
registers. This adds corresponding code to read out id and revision
and provides a helper function for drivers to use it.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-25 08:44:49 +02:00
Sebastian Hesselbarth 2042d9130b ARM: mvebu: select PCI specific DT bus translator
Marvell MVEBU DT files contain some nodes mapped to PCI address space,
add the translator Kconfig to be able to iomap those node's addresses.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-25 08:44:49 +02:00
Antony Pavlov 79027ee88e MIPS: qemu-malta_defconfig: enable gpio & i2c stuff
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-06-25 08:34:52 +02:00