Re: [PATCH 1/2] PCI: rework BAR size calculation

2015-06-24 Thread Sascha Hauer
On Tue, Jun 23, 2015 at 09:30:38PM +0200, Lucas Stach wrote: > The probe code now does a much better job at detecting bad BARs. > Also make sure to preserve any previous content of the BAR > registers if we don't relocate them. > > Signed-off-by: Lucas Stach > --- > I hope this fixes the problems

Re: [RFC V2 3/3] add decode command (SPD EEPROM data decoder)

2015-06-24 Thread Sascha Hauer
On Wed, Jun 24, 2015 at 03:57:29PM +0300, Alexander Smirnov wrote: > decode-dimms perl script is used as prototype > (see https://github.com/groeck/i2c-tools/blob/master/eeprom/decode-dimms). > > Here is a sample decode output: > > barebox@barebox sandbox:/ decode env/crucial_pc2-6400_ddr2 > Deco

Re: [RFC V2 2/3] ddr_spd: add routune for printing SPD contents in human readable format

2015-06-24 Thread Sascha Hauer
On Wed, Jun 24, 2015 at 03:57:28PM +0300, Alexander Smirnov wrote: > Signed-off-by: Alexander Smirnov > --- > +void prin(uint8_t *record) Please use a more meaningful name. > +{ > + int highestCAS = 0; > + int cas[256]; > + int i, i_i, k, x, y; > + int ddrclk, tbits, pcclk; > +

Re: Compiling barebox for newest Yocto/meta-freescale

2015-06-24 Thread Fabio Estevam
On Wed, Jun 24, 2015 at 11:33 AM, Jan Lübbe wrote: > Gyorgy, could you point us to the Yocto side of the discussion, if it > was on some list? https://www.mail-archive.com/meta-freescale@yoctoproject.org/msg14197.html Regards, Fabio Estevam ___ bare

[PATCH] ARM: tegra: jump to maincluster earlier

2015-06-24 Thread Lucas Stach
There is no point in repeating the board setup on the main cluster. It is done either in the AVP startup path or from a first stage loader. Signed-off-by: Lucas Stach --- arch/arm/mach-tegra/include/mach/lowlevel.h | 15 +-- arch/arm/mach-tegra/tegra_avp_init.c| 3 --- 2 fil

Re: [PATCH 3/6] System restart: add a scope value to the system restart feature

2015-06-24 Thread Sascha Hauer
Hi Jürgen, On Mon, Jun 22, 2015 at 12:33:21PM +0200, Juergen Borleis wrote: > Some systems have more than one feature to restart it. Maybe these restarts > features are all equal or it is very important which restart feauture is used > to restart the system in a reliable manner. For example if ext

Re: [RFC V2 3/3] add decode command (SPD EEPROM data decoder)

2015-06-24 Thread Antony Pavlov
On Wed, 24 Jun 2015 15:57:29 +0300 Alexander Smirnov wrote: > decode-dimms perl script is used as prototype > (see https://github.com/groeck/i2c-tools/blob/master/eeprom/decode-dimms). > > Here is a sample decode output: > > barebox@barebox sandbox:/ decode env/crucial_pc2-6400_ddr2 > Decoding

Re: Compiling barebox for newest Yocto/meta-freescale

2015-06-24 Thread Jan Lübbe
On Di, 2015-06-23 at 21:30 +0200, Lucas Stach wrote: > Also you don't have a hard-float only environment, your toolchain is > perfectly able to build with the soft-float ABI, it's just that Yocto > apparently passes the mfloat-abi=hard flag everywhere instead of > setting a reasonable toolchain def

[RFC V2 1/3] common: move DDR_SPD to common/Kconfig

2015-06-24 Thread Alexander Smirnov
This patch makes it possible to use ddr_spd-related routines in any arch not only in ppc. Signed-off-by: Alexander Smirnov --- arch/ppc/mach-mpc85xx/Kconfig | 4 common/Kconfig| 4 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/ppc/mach-mpc85xx/Kcon

[RFC V2 0/3] add decode command (SPD EEPROM data decoder)

2015-06-24 Thread Alexander Smirnov
Alexander Smirnov (3): common: move DDR_SPD to common/Kconfig ddr_spd: add routune for printing SPD contents in human readable format add decode command (SPD EEPROM data decoder) arch/ppc/mach-mpc85xx/Kconfig | 4 - commands/Kconfig | 7 ++ commands/Makefile

[RFC V2 2/3] ddr_spd: add routune for printing SPD contents in human readable format

2015-06-24 Thread Alexander Smirnov
Signed-off-by: Alexander Smirnov --- common/ddr_spd.c | 245 ++ include/ddr_spd.h | 1 + 2 files changed, 246 insertions(+) diff --git a/common/ddr_spd.c b/common/ddr_spd.c index ea0b529..8a98cc4 100644 --- a/common/ddr_spd.c +++ b/common/dd

[RFC V2 3/3] add decode command (SPD EEPROM data decoder)

2015-06-24 Thread Alexander Smirnov
decode-dimms perl script is used as prototype (see https://github.com/groeck/i2c-tools/blob/master/eeprom/decode-dimms). Here is a sample decode output: barebox@barebox sandbox:/ decode env/crucial_pc2-6400_ddr2 Decoding EEPROM: env/crucial_pc2-6400_ddr2 ---=== SPD EEPROM Information ===--- EEPR

Re: [PATCH 1/2] PCI: rework BAR size calculation

2015-06-24 Thread Antony Pavlov
On Tue, 23 Jun 2015 21:30:38 +0200 Lucas Stach wrote: > The probe code now does a much better job at detecting bad BARs. > Also make sure to preserve any previous content of the BAR > registers if we don't relocate them. > > Signed-off-by: Lucas Stach > --- > I hope this fixes the problems seen

Re: [PATCH 1/5] Reset reason: add a scope value to the reset reason feature

2015-06-24 Thread Juergen Borleis
Hi Sascha, On Wednesday 24 June 2015 08:32:47 Sascha Hauer wrote: > [...] > > +void reset_source_set(enum reset_src_type st, enum f_scope scope) > > +{ > > + if ((int)scope <= reset_source_scope) > > + return; /* just ignore this setting */ > > + > > + reset_source = (int)st; > > +