[U-Boot] [PATCH] powerpc/p1022ds: Add support for NAND and NAND boot using SPL

2013-02-18 Thread Matthew McClintock
Add defines needed to access NAND, remove second flash bank that is actually connected to NAND. Add nand booting support for P1022DS with hardcoded DDR config using SPL framework from 2011 Signed-off-by: Matthew McClintock m...@freescale.com Signed-off-by: Jerry Huang chang-ming.hu

[U-Boot] [PATCH] powerpc/p1022ds: Add support for NAND and NAND boot using SPL

2013-02-18 Thread Matthew McClintock
Add defines needed to access NAND, remove second flash bank that is actually connected to NAND. Add nand booting support for P1022DS with hardcoded DDR config using SPL framework from 2011 Signed-off-by: Matthew McClintock m...@freescale.com Signed-off-by: Jerry Huang chang-ming.hu

[U-Boot] [PATCH] powerpc/p1022ds: Add support for NAND and NAND boot using SPL

2013-02-14 Thread Matthew McClintock
Add defines needed to access NAND, remove second flash bank that is actually connected to NAND. Add nand booting support for P1022DS with hardcoded DDR config using SPL framework from 2011 Signed-off-by: Matthew McClintock m...@freescale.com Signed-off-by: Jerry Huang chang-ming.hu

[U-Boot] [PATCH 5/6] nand_spl: p1023rds: wait before enabling DDR controller

2012-08-13 Thread Matthew McClintock
We have a requirement to wait a period of time before enabling the DDR controller Signed-off-by: Matthew McClintock m...@freescale.com --- nand_spl/board/freescale/p1023rds/Makefile|6 +- nand_spl/board/freescale/p1023rds/nand_boot.c | 14 -- 2 files changed, 17

[U-Boot] [PATCH 1/6] p1014rdb: set ddr bus width properly depending on SVR

2012-08-13 Thread Matthew McClintock
Currently, for NAND boot for the P1010/4RDB we hard code the DDR configuration. We can still dynamically set the DDR bus width in the nand spl so the P1010/4RDB boards can boot from the same u-boot image Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/include/asm

[U-Boot] [PATCH 3/6] powerpc/p1010rdb: nandboot: compare SVR properly

2012-08-13 Thread Matthew McClintock
We were not comparing the SVRs properly previously. This comparison will properly shift the SVR and mask off the E bit This fixes the boot output to show the correct DDR bus width: 512 MiB (DDR3, 16-bit, CL=5, ECC off) instead of 512 MiB (DDR3, 32-bit, CL=5, ECC off) Signed-off-by: Matthew

[U-Boot] [PATCH 6/6] nand_spl: change out_be32 to raw_writel and depend on subsequent sync

2012-08-13 Thread Matthew McClintock
This change reduces the SPL size by removing the redundant syncs produced by out_be32 and just replies on one final sync Done with: sed -r '/in_be32/b; s/(out_be32)\(([^,]*),\s+(.*)\)/__raw_writel(\3, \2)/g' -i `git grep --name-only sdram_init nand_spl/` Signed-off-by: Matthew McClintock m

[U-Boot] [PATCH 2/6] p1010rdb: fix ddr values for p1014rdb (setting bus width to 16bit)

2012-08-13 Thread Matthew McClintock
There was an extra 0 in front of the value we were using to mask, remove it to improve the code. Also fix the value written to ddr_sdram_cfg to set the bus width properly to 16 bits Signed-off-by: Matthew McClintock m...@freescale.com --- board/freescale/p1010rdb/ddr.c |7 --- 1 file

[U-Boot] [PATCH 4/6] nand_spl: update udelay for Freescale boards

2012-08-13 Thread Matthew McClintock
but it pulls in a lot of code as well as depends on the gd struct and would require a lot of rework Signed-off-by: Matthew McClintock m...@freescale.com --- nand_spl/board/freescale/common.c | 36 + nand_spl/board/freescale/p1010rdb/Makefile|6

[U-Boot] [PATCH v2 5/6] nand_spl: p1023rds: wait before enabling DDR controller

2012-08-13 Thread Matthew McClintock
We have a requirement to wait a period of time before enabling the DDR controller Signed-off-by: Matthew McClintock m...@freescale.com --- v2: change global bus_clk to use gd-bus_clk nand_spl/board/freescale/p1023rds/Makefile|6 +- nand_spl/board/freescale/p1023rds/nand_boot.c

[U-Boot] [PATCH v2 4/6] nand_spl: update udelay for Freescale boards

2012-08-13 Thread Matthew McClintock
but it pulls in a lot of code as well as depends on the gd struct and would require a lot of rework Signed-off-by: Matthew McClintock m...@freescale.com --- v2: Change global bus_clk to use gd-bus_clk nand_spl/board/freescale/common.c | 35 + nand_spl/board/freescale

[U-Boot] [PATCH v3 4/6] nand_spl: update udelay for Freescale boards

2012-08-13 Thread Matthew McClintock
but it pulls in a lot of code and would require quite a bit of work to keep us within the very small space constrains we currently have Signed-off-by: Matthew McClintock m...@freescale.com --- v2: Change global bus_clk to use gd-bus_clk v3: Update commit message a bit Fixed code formatting issues

[U-Boot] [PATCH] Fix typo from 'mb_alloc' - 'lmb_alloc'

2011-07-18 Thread Matthew McClintock
From commit a28afca57df7875f3334407bc47bd66b98701534 Signed-off-by: Matthew McClintock m...@freescale.com --- common/image.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/image.c b/common/image.c index c6cd85e..5c7d4f4 100644 --- a/common/image.c +++ b/common

[U-Boot] [PATCH v2 2/4] build/mkconfig: Add EXTRA_OPTS argument to make to modify build

2011-06-03 Thread Matthew McClintock
Allow users to pass in extra defines via make so they can modify the build. Example make P1022DS EXTRA_OPTS=NAND is equivalent to make P1022DS_NAND Signed-off-by: Matthew McClintock m...@freescale.com --- v2: Fix tab indention, fix posix compliance mkconfig |8 +++- 1 files changed

[U-Boot] [PATCH v3 2/4] build/mkconfig: Add EXTRA_OPTS argument to make to modify build

2011-06-03 Thread Matthew McClintock
Allow users to pass in extra defines via make so they can modify the build. Example make P1022DS EXTRA_OPTS=NAND is equivalent to make P1022DS_NAND Signed-off-by: Matthew McClintock m...@freescale.com --- v2: Fix tab indention, fix posix compliance v3: Move appending $EXTRA_OPTS up higher

[U-Boot] [PATCH 1/4] common/env_common: Add CONFIG_SILENT_CONSOLE_AT_BOOT env option

2011-06-02 Thread Matthew McClintock
Just setting CONFIG_SILENT_CONSOLE does not make the CONSOLE silent without the silent env variable set. This adds a new define to add this to the default environment easily Signed-off-by: Matthew McClintock m...@freescale.com --- README |4 common/env_common.c |3

[U-Boot] [PATCH 3/4] nand_spl/spiboot/sdboot: Add ability to have smaller middle loader

2011-06-02 Thread Matthew McClintock
and SPI via the on chip rom but instead it goes from on-chip-rom to MPL to full version of u-boot. Depends on previous icache/dcache command changes and various build fixes for add cases that occur when trying to build an extremely minimal image Signed-off-by: Matthew McClintock m...@freescale.com

[U-Boot] [PATCH 4/4] Add P1021MDS board support

2011-06-02 Thread Matthew McClintock
Signed-off-by: Mohit Kumar mohit.ku...@freescale.com Signed-off-by: Yu Liu yu@freescale.com Signed-off-by: Kai Jiang kai.ji...@freescale.com Signed-off-by: Zhao Chenhui b35...@freescale.com Signed-off-by: Matthew McClintock m...@freescale.com --- This patch requires some previously sent patches

[U-Boot] [PATCH 2/4] build/mkconfig: Add EXTRA_OPTS argument to make to modify build

2011-06-02 Thread Matthew McClintock
Allow users to pass in extra defines via make so they can modify the build. Example make P1022DS EXTRA_OPTS=NAND is equivalent to make P1022DS_NAND Signed-off-by: Matthew McClintock m...@freescale.com --- mkconfig |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git

[U-Boot] [PATCH v2 2/3] common/cmd_nand.c: add ifdef protection for do_bootm

2011-05-24 Thread Matthew McClintock
Right now we do not check if do_bootm is actually built into this u-boot. Instead check define and only call do_bootm if it's actually available. Signed-off-by: Matthew McClintock m...@freescale.com --- v2: Add ifdef protect for the whole autostart/autoboot block as it's not supported when

[U-Boot] [PATCH 2/3] common/cmd_nand.c: add ifdef protection for do_bootm

2011-05-23 Thread Matthew McClintock
Right now we do not check if do_bootm is actually built into this u-boot. Instead check define and only call do_bootm if it's actually available. Signed-off-by: Matthew McClintock m...@freescale.com --- common/cmd_nand.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

[U-Boot] [PATCH 1/2] command/cmd_cache.c: Add optional flush arguments

2011-05-23 Thread Matthew McClintock
It might be desirable to have the ability to flush icache/dcache within u-boot, this patch gives each arch the ability to provide a flush_dcache/flush_icache function to let u-boot flush caches from the prompt Signed-off-by: Matthew McClintock m...@freescale.com --- There are some checkpatch.pl

[U-Boot] [PATCH 2/2] powerpc/85xx: provide 85xx flush_icache for cmd_cache

2011-05-23 Thread Matthew McClintock
This provides a function that will override the weak function flush_icache to let 85xx boards to flush the icache cc: Kumar Gala kumar.g...@freescale.com Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/cpu/mpc85xx/start.S |2 ++ 1 files changed, 2 insertions(+), 0

[U-Boot] [PATCH 3/3] common/cmd_ximg.c: add ifdef protection for gzip uncompression

2011-05-23 Thread Matthew McClintock
Print a message if we do not have the ability to uncompress a gzip image. Before, u-boot would just assume the routines were available Signed-off-by: Matthew McClintock m...@freescale.com --- common/cmd_ximg.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/common

[U-Boot] [PATCH 1/3] disk/part.c: Make features optional

2011-05-23 Thread Matthew McClintock
If we don't want to build support for any partition types we can now add #undef CONFIG_PARTITIONS in a board config file to keep this from being compiled in. Otherwise boards assume this is compiled in by default Signed-off-by: Matthew McClintock m...@freescale.com --- common/cmd_mmc.c

[U-Boot] [PATCH v2 1/3] disk/part.c: Make features optional

2011-05-23 Thread Matthew McClintock
If we don't want to build support for any partition types we can now add #undef CONFIG_PARTITIONS in a board config file to keep this from being compiled in. Otherwise boards assume this is compiled in by default Signed-off-by: Matthew McClintock m...@freescale.com --- v2: Fix patch to apply

[U-Boot] [PATCH] powerpc/85xx: Don't set FT_FSL_PCI_SETUP if CONFIG_PCI is not set

2011-04-25 Thread Matthew McClintock
FT_FSL_PCI_SETUP around CONFIG_PCI so we can remove CONFIG_PCI and boards will still build properly. cc: Kumar Gala kumar.g...@freescale.com Signed-off-by: Matthew McClintock m...@freescale.com --- arch/powerpc/include/asm/fsl_pci.h |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git

[U-Boot] [PATCH] nand/spl: Assuming a static nand page size to reduce code size

2011-04-05 Thread Matthew McClintock
Change variables to const to reduce code size, these values are hardcoded via defines anyways so we might as well assume they are constants Signed-off-by: Matthew McClintock m...@freescale.com cc: Scott Wood scottw...@freescale.com --- With this change we can reduce the size of the nand_spl

[U-Boot] [PATCH v1 2/2] nand/spl: Assuming a static nand page size to reduce code size

2011-04-05 Thread Matthew McClintock
Change variables to const to reduce code size, these values are hardcoded via defines anyways so we might as well assume they are constants Signed-off-by: Matthew McClintock m...@freescale.com cc: Scott Wood scottw...@freescale.com --- With this change we can reduce the size of the nand_spl

[U-Boot] [PATCH v1 1/2] powerpc/85xx: rename NAND prefixes to CONFIG_SYS

2011-04-05 Thread Matthew McClintock
renaming 85xx define CONFIG_NAND_OR_PRELIM to CONFIG_SYS_NAND_OR_PRELIM and CONFIG_NAND_BR_PRELIM to CONFIG_SYS_NAND_BR_PRELIM to use the more appropriate CONFIG_SYS prefix as well as be consistent with 83xx Signed-off-by: Matthew McClintock m...@freescale.com cc: Scott Wood scottw

[U-Boot] [RFC] I2C: change CONFIG_SYS_SPD_BUS_NUM to CONFIG_I2C_DEFAULT_BUS_NUM

2011-03-14 Thread Matthew McClintock
The bus that the i2c api can access before relocating from flash is defined via CONFIG_SYS_SPD_BUS_NUM, however we want to use the i2c bus before relocating from flash for non-SPD related reasons. Therefore, we rename this define to something more appropriate --- We are trying to access the I2C

[U-Boot] [PATCH] p1022ds: enable reginfo command

2010-12-17 Thread Matthew McClintock
From: Matthew McClintock mat...@right.am.freescale.net Add reginfo as a default command for p1022ds boards Signed-off-by: Matthew McClintock m...@freescale.com --- include/configs/P1022DS.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/configs/P1022DS.h b

[U-Boot] [PATCH] net: e1000: typo using wrong argument to sizeof

2010-11-15 Thread Matthew McClintock
Typo from 4b29bdb0ed08412d225a8be94f61fc6c37a59dd5 Signed-off-by: Matthew McClintock m...@freescale.com --- drivers/net/e1000.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c index 18584ef..60b04c2 100644 --- a/drivers/net

[U-Boot] [PATCH] common/fdt_support.c: fix compile error

2010-10-12 Thread Matthew McClintock
-by: Matthew McClintock m...@freescale.com --- common/fdt_support.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index 9b65a8a..cb0ad3b 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -1190,7 +1190,7 @@ int

[U-Boot] [PATCH v2] common/fdt_support.c: fix compile error

2010-10-12 Thread Matthew McClintock
-by: Matthew McClintock m...@freescale.com --- v2 - move fdt_increase_size out of CONFIG_FDT_FIXUP_PARTITIONS common/fdt_support.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index 9b65a8a..46e93a2 100644

[U-Boot] [PATCH V2] mpx85xx/fdt: Add cpu-release-addr for all cores

2010-08-19 Thread Matthew McClintock
We currently do not add a cpu-release-addr for core 0, this is needed when we want to reset core 0 and later restart it from Linux Signed-off-by: Matthew McClintock m...@freescale.com --- v2: Mark boot cpu status as okay arch/powerpc/cpu/mpc85xx/fdt.c | 15 --- 1 files changed, 8

[U-Boot] [PATCH] mpx85xx/fdt: Add cpu-release-addr for all cores

2010-08-18 Thread Matthew McClintock
We currently do not add a cpu-release-addr for core 0, this is needed when we want to reset core 0 and later restart it from Linux --- arch/powerpc/cpu/mpc85xx/fdt.c | 21 - 1 files changed, 8 insertions(+), 13 deletions(-) diff --git a/arch/powerpc/cpu/mpc85xx/fdt.c

[U-Boot] [PATCH] Fix condition where bootm_size not set and wrong memory size reported

2010-07-08 Thread Matthew McClintock
a relocatable kernel and the memory is reported as an offset and size in the device tree, and the size needs to be adjusted accordingly. Signed-off-by: Matthew McClintock m...@freescale.com --- common/image.c | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/common

[U-Boot] [PATCH] Fix condition where bootm_size not set and wrong memory size reported

2010-07-07 Thread Matthew McClintock
a relocatable kernel and the memory is reported as an offset and size in the device tree, and the size needs to be adjusted accordingly. Signed-off-by: Matthew McClintock m...@freescale.com --- common/image.c | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/common