04 Feb, 2014
6 commits
-
The PEXHC PCIe configuration mechanism ensures that the FPGA get
configured at power-up. Since all the PCIe devices should be configured
when the kernel start, u-boot has to take care that the FPGA gets
configured also in other reset scenarios, mostly because of possible
configuration change.The used mechanism is taken from the km_kirkwood design and adapted to
the kmp204x case (slightly different HW and PCIe configuration).Signed-off-by: Valentin Longchamp
Reviewed-by: York Sun -
On the previous HW revision (now unsupported), there was a need for
external DMA signals and thus the I2C3/4 signals were used
DMA1_DONE/ACK/REQ.These signals now are configured as GPIO[16:19].
Signed-off-by: Valentin Longchamp
Reviewed-by: York Sun -
According to the errata, some bits of an undocumented register in the
DCSR must be set for every core in order to avoid a possible data or
instruction corruption.This is required for the 2.0 revision of the P2041 that should be used
as soon as available in our design.Signed-off-by: Valentin Longchamp
Reviewed-by: York Sun -
This patch adds support for using some GPIOs that are connected to the
I2C bus to force the bus lines state and perform some bus deblocking
sequences.The KM common deblocking algorithm from board/keymile/common/common.c is
used. The GPIO lines used for deblocking the I2C bus are some external
GPIOs provided by the QRIO CPLD:
- SCL = GPIOA_20
- SDA = GPIOA_21The QRIO GPIOs act in an open-drain-like manner, for 0 the line is
driven low and for 1 the GPIO is set as input and the line gets
pulled-up.Signed-off-by: Rainer Boschung
Signed-off-by: Valentin Longchamp
Reviewed-by: York Sun -
The QRIO GPIO functions can be of general interest. They are thus added
to a qrio.c and their prototype are available from kmp204x.h. The QRIO
prst function are also included in this file, as well as the functions
required for the I2C deblocking support (open-drain).Signed-off-by: Valentin Longchamp
[York Sun: Remove extra blank line in board/keymile/kmp204x/qrio.c]
Signed-off-by: York Sun -
Make use of the QRIO1 32bit register at 0x20 as bootcounter register
Check for BOOTCOUNT_MAGIC pattern when before bootcounter value is readSigned-off-by: Rainer Boschung
Signed-off-by: Valentin Longchamp
[York Sun: Minor change to commit message]
Signed-off-by: York Sun
26 Nov, 2013
1 commit
-
Freescale DDR driver has been used for mpc83xx, mpc85xx, mpc86xx SoCs.
The similar DDR controllers will be used for ARM-based SoCs.Signed-off-by: York Sun
18 Nov, 2013
2 commits
-
Signed-off-by: Masahiro Yamada
-
Signed-off-by: Masahiro Yamada
01 Nov, 2013
4 commits
-
Signed-off-by: Tom Rini
-
Cc: Masahiro Yamada
Cc: Wolfgang Denk
Cc: Kim Phillips
Cc: York Sun
Signed-off-by: Tom Rini -
Signed-off-by: Masahiro Yamada
Cc: Wolfgang Denk
Cc: Kim Phillips
Cc: York Sun
Cc: Stefan Roese -
Signed-off-by: Masahiro Yamada
Cc: Albert ARIBAUD
Cc: Andreas Bießmann
Cc: Stefano Babic
Cc: Prafulla Wadaskar
Cc: Minkyu Kang
Cc: Vipin Kumar
Cc: Tom Warren
Cc: Tom Rini
25 Oct, 2013
3 commits
-
This patch introduces the support for Keymile's kmp204x reference
design. This design is based on Freescale's P2040/P2041 SoC.The peripherals used by this design are:
- DDR3 RAM with SPD support
- SPI NOR Flash as boot medium
- NAND Flash
- 2 PCIe busses (hosts 1 and 3)
- 3 FMAN Ethernet devices (FMAN1 DTSEC1/2/5)
- 3 Local Bus windows, with one dedicated to the QRIO reset/power mgmt
FPGA
- 2 HW I2C busses
- last but not least, the mandatory serial portThe board/keymile/kmp204x code is mostly based on Freescale's P2041rdb
support and was changed according to our design (that means essentially
removing what is not present on the designs and a few adaptations).There is currently only one prototype board that is based on this design
and this patch also introduces it. The board is called kmlion1.Signed-off-by: Stefan Bigler
Signed-off-by: Valentin Longchampkmp204x: update the ENV #define
The comments had to be refined as well as the total size
Signed-off-by: Valentin Longchamp
[York Sun: fix ddr.c]
Acked-by: York Sun -
This must be defined by a board support file that want to use the
keymile common.c board_eth_init function that requires ethernet_present
to be defined.Currently all the km architectures use it but the kmp204x architecture
later supported in this series does use another board_eth_init function
and thus does not define it.Signed-off-by: Valentin Longchamp
-
This must be defined for all the keymile boards that use the common
i2c_abort function that is used to "reset" the I2C bus. These are
currently km82xx and km_arm boards.The km83xx boards use other functions and thus do not need this.
This patch removes the CONFIG_SYS_I2C_INIT_BOARD from keymile-common.h
and defines it for km_arm.h and km82xx.h.Signed-off-by: Valentin Longchamp
15 Oct, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
09 Oct, 2013
3 commits
-
'actual_bank' is not used anymore, instead boot_bank is used.
Signed-off-by: Andreas Huber
-
commit a5510058 powerpc/83xx/km: make local functions and structs static
removed the staticness also from this struct. But this struct is needed
in arch/powerpc/cpu/mpc83xx/cpu_init.c and declared as extern.Signed-off-by: Holger Brunck
24 Jul, 2013
2 commits
-
The sandburst-specific i2c drivers have been deleted, conflict was just
over the SPDX conversion.Conflicts:
board/sandburst/common/ppc440gx_i2c.c
board/sandburst/common/ppc440gx_i2c.hSigned-off-by: Tom Rini
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini
23 Jul, 2013
3 commits
-
as the keymile boards use now the new i2c multibus/multiadapter
framework, remove the EEprom_ivm Environmentvar, as not longer
needed.Signed-off-by: Heiko Schocher
Cc: Holger Brunck
Tested-By: Holger Brunck -
- added to fsl_i2c driver new multibus/multiadpater support
- adapted all config files, which uses this driverSigned-off-by: Heiko Schocher
Cc: Simon Glass
Cc: Stephen Warren -
- added to soft_i2c driver new multibus/multiadpater support
- adapted all config files, which uses this driverSigned-off-by: Heiko Schocher
Cc: Simon Glass
Cc: Stephen Warren
10 Jun, 2013
1 commit
-
Signed-off-by: Holger Brunck
22 May, 2013
2 commits
-
Signed-off-by: Holger Brunck
Signed-off-by: Kim Phillips -
Errata Fix: 1.9V Output from Internal 1.8V Regulator, acc.
MV-S300889-00D.pdf , clause 4.5Signed-off-by: Holger Brunck
Signed-off-by: Kim Phillips
10 May, 2013
1 commit
-
Many boot image configuration files refer to the
appropriate documentation file, but these references
contain typos in the directory and file name. Fix
them. Also fix reference to doc/README.SPL file.Signed-off-by: Anatolij Gustschin
Cc: Prafulla Wadaskar
Cc: Stefano Babic
Acked-by: Stefano Babic
09 Mar, 2013
2 commits
-
All boards from this serie uses i2c. So we can drop these unneeded
defines.Signed-off-by: Holger Brunck
-
Signed-off-by: Holger Brunck
16 Feb, 2013
8 commits
-
There is no need for a environment variable to configure the dtt bus.
Signed-off-by: Holger Brunck
-
Replace uImage with ${uimage}.
If uimage is not set, default it to uImage.Signed-off-by: Andreas Huber
Signed-off-by: Holger Brunck -
kmvect1 has a UEC2 connection to the piggy board and a UEC0 connection
to the switch MV88E6122. This switch has a connection to a frontport
ethernet interface. The ethernet port used for network booting is
automatically selected by u-boot. If a Piggy is plugged, the Piggy
port is selected (UEC2, eth1). If the Piggy isn't present, the
Frontport is selected (UEC0, eth0).The switch reset is connected to a GPIO on the PRIO3 board FPGA (GPIO28)
and released at startup.Signed-off-by: Karlheinz Jerg
Signed-off-by: Holger Brunck -
For the the kmvect1 board we will also need a functionality to add an
offset to the IVMs MAC address, because these board will have two valid
ethernet ports for debugging purpose. So move the code to an own
function.Signed-off-by: Holger Brunck
-
For kmvect1 we need a special solution and for km_arm boards we already
have. So move the common code to the architectur specific file.Signed-off-by: Karlheinz Jerg
Signed-off-by: Holger Brunck -
This define isn't set within our setup files. So we can safely remove
the affected code.Signed-off-by: Holger Brunck
-
EEprom_ivm_addr isn't set in our environment, so remove the usage of
this.Signed-off-by: Holger Brunck
-
All boards from this serie use i2c. There is no need to #ifdef the
header.Signed-off-by: Holger Brunck
09 Jan, 2013
1 commit
-
This saves stack and code memory for local copy, and
consumes initialized data memory. For 22 of the 29
kirkwood-based boards, this results in a global saving
of about 30 bytes. For 7 of them, it results in an
increase of 6 to 14 bytes.Signed-off-by: Albert ARIBAUD