Commit Graph

37880 Commits

Author SHA1 Message Date
Stefan Eichenberger 8fef81eb07 netbird_v2: load nbhw16-nb800 devicetree file 2016-12-28 09:36:10 +01:00
Stefan Eichenberger 7a6e5f10f8 netbird_v2: Do a correct enable of the external USB PWR
The external USB Port needs to power on first the Regulator and then
enable the Load Switch.
2016-12-27 12:05:59 +01:00
Stefan Eichenberger 4413b6d2b6 bdparser: remove faulty debugging code
There was some debugging code in the bdparser, that delayed the boot up
and was missbehaving on the new hardware.
2016-12-27 12:03:39 +01:00
Stefan Eichenberger a02ad82a18 netbird_v2: correct some muxings 2016-12-23 11:33:35 +01:00
Stefan Eichenberger 5590a82b6d netbird: add netbird version 2
Add the netbird version 2 configuration, this is the prototype release
of the final NB800 product.
2016-12-14 15:02:53 +01:00
Stefan Eichenberger ea6c758e46 mux: configure unused sysboot pins
Configure unused sysboot pins, remove dead code.
2016-08-22 16:27:04 +02:00
Stefan Eichenberger 13976f5c93 netbird: update sdram timings for 512MB RAM
The old SDRAM timings were not working for the new 512MB chip, this
commit fixes the timing settings, so that it works for 256 and 512 MB
chips.
2016-08-16 13:38:10 +02:00
Stefan Eichenberger 046cd824c1 netbird: set V_OSCK to 0, this will autodetect the clock
This patch uses the autodetection of the Oszillator frequency from
sysboot1.
2016-08-12 16:48:31 +02:00
Stefan Eichenberger 0353db9168 nbhw16: take clock from sysboot1
Take the clock read from sysboot1, this is what the HW engineers set,
and should be correct.
2016-08-12 16:48:31 +02:00
Stefan Eichenberger f04af26024 board: move nm stuff to board_late init 2016-08-09 17:03:39 +02:00
Stefan Eichenberger 2ce88153b0 nbhw16: defconfig use s as stopstring 2016-08-09 17:02:39 +02:00
Stefan Eichenberger 0f113cb0d5 bdparser: remove windows line endings \r\n 2016-08-09 16:39:34 +02:00
Marcel Reichmuth d799d21b6e nbhw16: fixed auto boot for sdprod script
nbhw16: added nbsw style u-boot environment settings
nbhw16: added factory reset and recovery boot support via reset button
nbhw16: set hardware version on kernel command line
nbhw16: removed dummy u-boot partition
2016-07-11 16:16:43 +02:00
Stefan Eichenberger 705d166512 nbhw16: configure CLK_OUT1 in mux.c
A HW design option is to enable CLK_OUT1 for the PHYs.
2016-07-06 17:07:06 +02:00
Stefan Eichenberger ac41d11958 nbhw16: create a separate board under nm/netbird
Because i2c must be available extremly early (before RAM setup) to get
the board configuration, I decided to create a new board instead of
adding everything to the am335 stuff rom ti. This is not uncommon (see
baltos)
Now the a reset will start the SPL correctly again.
2016-07-06 16:27:56 +02:00
Stefan Eichenberger de6cd2da88 nbhw16: move u-boot env to eeprom 2016-07-05 14:35:23 +02:00
Stefan Eichenberger f91d77603f nbhw16: correct bootcommands to work with root_part 2016-07-04 20:02:30 +02:00
Stefan Eichenberger 0393225ec7 nbhw16: add root partition selection
The rootpartition is selected trough the partition table or trough the
boot_part flag.
2016-07-01 16:48:49 +02:00
Stefan Eichenberger 114d6a3472 nbhw16: set mac from boarddescritpor 2016-07-01 13:10:52 +02:00
Stefan Eichenberger 0ac4b38566 nbhw16: add proper gsm modem poweron
The gsm modem need a power on signal >1s < 7s...
2016-06-30 15:55:15 +02:00
Stefan Eichenberger 2960a17a4a nbhw16: don't enable wlan and bt in u-boot 2016-06-24 13:25:55 +02:00
Stefan Eichenberger 555bfd5165 nbhw16: clear PFM bit in pmci for dcdc4 2016-06-24 11:33:44 +02:00
Stefan Eichenberger fb8611d7c0 nbhw16: change mux settings
Correct the mux settings for i2c and sysboot
2016-06-24 10:13:09 +02:00
Stefan Eichenberger 3e725c050c nbhw16: set correct i2c timings 2016-06-24 09:24:21 +02:00
Stefan Eichenberger c571abc51c netbird: power on modem correctly, change ram timings
Power on the modem correctly, change ram timings to the ones from the
ddr3 tuning program, enable memtest
2016-06-23 17:48:55 +02:00
Stefan Eichenberger e0c59bc1fa am335x: changes after bringup
This changes were made to bringup nbhw16.
2016-06-22 13:09:16 +02:00
Stefan Eichenberger f3366b72db board.c: use dram timings from training 2016-06-17 10:36:18 +02:00
Stefan Eichenberger b326743f88 netbird: use actual timings from ddr3 RAM sheet 2016-06-16 18:26:11 +02:00
Stefan Eichenberger 58755b912e xmodem: increase upload start speed 2016-06-16 17:28:18 +02:00
Stefan Eichenberger 35270578b2 netbird: fix compilation errors 2016-06-14 11:59:47 +02:00
mr e6539d6c79 added ddr timings 2016-06-13 14:05:51 +02:00
mr 211d964c6f read mac addresses from bd 2016-06-13 08:10:35 +02:00
mr c52db0fa6b set default netbox environment 2016-06-08 16:40:32 +02:00
mr c306eb66df pinmux fixes 2016-06-07 16:41:53 +02:00
mr f5a8f7e759 remove ti eeprom stuff 2016-06-07 12:01:35 +02:00
mr da86d5f219 Added netbird specific settings 2016-06-03 10:24:36 +02:00
mr ce337590fc Added netbird target 2016-06-02 12:37:48 +02:00
Lokesh Vutla 8b528709c5 spl: fit: Fix load address of fit header
When loading fit header, it should be loaded to a previous address
aligned to ARCH_DMA_MINALIGN and not 8. Fixing the same.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2016-06-01 07:12:38 -04:00
Tom Rini da6e2fab5d Merge branch 'master' of git://git.denx.de/u-boot-mips 2016-05-31 10:26:14 -04:00
Tom Rini 653bb0d92e Merge git://www.denx.de/git/u-boot-marvell 2016-05-31 10:26:02 -04:00
Andreas Fenkart 14070e69ad tools/env: allow to pass NULL for environment options
If users of the library are happy with the default, e.g. config file
name. They can pass NULL as the opts pointer. This simplifies the
transition of existing library users.
FIXES a compile error. since common_args has been removed by
a previous patch

Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
2016-05-31 10:23:10 -04:00
Masahiro Yamada 6f41751f46 Revert "image.h: Tighten up content using handy CONFIG_IS_ENABLED() macro."
This reverts commit 56adbb3872.

Since commit 56adbb3872 ("image.h: Tighten up content using handy
CONFIG_IS_ENABLED() macro."), I found my boards fail to boot Linux
because the commit changed the logic of macros it touched.  Now,
IMAGE_ENABLE_RAMDISK_HIGH and IMAGE_BOOT_GET_CMDLINE are 0 for all
the boards.

As you can see in include/linux/kconfig.h, CONFIG_IS_ENABLE() (and
IS_ENABLED() as well) can only take a macro that is either defined
as 1 or undefined.  This is met for boolean options defined in
Kconfig.  On the other hand, CONFIG_SYS_BOOT_RAMDISK_HIGH and
CONFIG_SYS_BOOT_GET_CMDLINE are defined without any value in
arch/*/include/asm/config.h .  This kind of clean-up is welcome,
but the options should be moved to Kconfig beforehand.

Moreover, CONFIG_IS_ENABLED(SPL_CRC32_SUPPORT) looks weird.
It should be either CONFIG_IS_ENABLED(CRC32_SUPPORT) or
IS_ENABLED(CONFIG_SPL_CRC32_SUPPORT).  But, I see no define for
CONFIG_SPL_CRC32_SUPPORT anywhere.  Likewise for the other three.

The logic of IMAGE_OF_BOARD_SETUP and IMAGE_OF_SYSTEM_SETUP were
also changed for SPL.  This can be a problem for boards defining
CONFIG_SPL_OF_LIBFDT.  I guess it should have been changed to
IS_ENABLED(CONFIG_OF_BOARD_SETUP).

In the first place, if we replace the references in C code,
the macros IMAGE_* will go away.

  if (IS_ENABLED(CONFIG_OF_BOARD_SETUP) {
          ...
  }

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2016-05-31 10:20:14 -04:00
Wills Wang f1b65c98b0 mips: ath79: ap143: Reset ethernet on boot
This patch reset the ethernet controller for ap143 board

Signed-off-by: Wills Wang <wills.wang@live.com>
2016-05-31 10:17:54 +02:00
Wills Wang ca09e66b04 mips: ath79: Use AR933X_PLL_SWITCH_CLOCK_CONTROL_REG macro define
Add AR933X_PLL_SWITCH_CLOCK_CONTROL_REG define for ar933x chip.

Signed-off-by: Wills Wang <wills.wang@live.com>
2016-05-31 10:17:54 +02:00
Wills Wang cdeb68e292 mips: ath79: Add support for ungating USB and ethernet on qca953x
Add code to ungate USB and ethernet controller on qca953x

Signed-off-by: Wills Wang <wills.wang@live.com>
2016-05-31 10:17:54 +02:00
Wills Wang ad5b48abfe mips: ath79: Use 8MB flash profile for mtd partition by default
Change bootm flash address and mtd partition table for 8MB flash profile.

Signed-off-by: Wills Wang <wills.wang@live.com>
2016-05-31 10:17:54 +02:00
Wills Wang 04583c686e mips: ath79: ap121: Enable ethernet
This patch enable network function for ap121 board.

Signed-off-by: Wills Wang <wills.wang@live.com>
Acked-by: Marek Vasut <marex@denx.de>
2016-05-31 10:17:54 +02:00
Wills Wang 375239174c mips: ath79: Rename get_bootstrap into ath79_get_bootstrap
Add a platform prefix for function name in order to make more readable,
and move it into ath79.h

Signed-off-by: Wills Wang <wills.wang@live.com>
Acked-by: Marek Vasut <marex@denx.de>
2016-05-31 10:17:54 +02:00
Daniel Schwierzeck d58de3157e MIPS: malta: add defconfigs for MIPS64
Add defconfigs for recently introduced MIPS64 support on
Malta boards to get more build coverage for MIPS64.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
2016-05-31 09:49:08 +02:00
Paul Burton fb64cda579 MIPS: Abstract cache op loops with a macro
The various cache maintenance routines perform a number of loops over
cache lines. Rather than duplicate the code for performing such loops,
abstract it out into a new cache_loop macro which performs an arbitrary
number of cache ops on a range of addresses. This reduces duplication in
the existing L1 cache maintenance code & will allow for not adding
further duplication when introducing L2 cache support.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
2016-05-31 09:44:24 +02:00