Re: [U-Boot] [PATCH 2/2] spi: add common spi3 controller driver

2014-11-18 Thread Scott Jiang
2014-11-17 3:23 GMT+08:00 Jagan Teki : > Hi Scott, > > On 25 September 2014 14:55, Scott Jiang wrote: >> SPI3 controller is not only used on BF609 platform. So we add a common >> controller >> driver and leave machine specific configuration in board drivers. >

Re: [U-Boot] [PATCH 2/2] spi: add common spi3 controller driver

2014-11-12 Thread Scott Jiang
add the driver to dm-spi. > > Please see any info to doc/driver-model/spi-howto.txt > > Let me know for any inputs/questions. > > On 25 September 2014 14:55, Scott Jiang wrote: >> SPI3 controller is not only used on BF609 platform. So we add a common >> controller >&

[U-Boot] [PATCH 2/3 v2] adi_i2c: convert to use general io accessors.

2014-11-12 Thread Scott Jiang
Signed-off-by: Scott Jiang --- drivers/i2c/adi_i2c.c | 145 ++--- 1 file changed, 77 insertions(+), 68 deletions(-) diff --git a/drivers/i2c/adi_i2c.c b/drivers/i2c/adi_i2c.c index cb74062..71077c5 100644 --- a/drivers/i2c/adi_i2c.c +++ b/drivers/i2c

[U-Boot] [PATCH 3/3 v2] blackfin: convert to use CONFIG_SYS_I2C framework

2014-11-12 Thread Scott Jiang
Signed-off-by: Scott Jiang --- drivers/i2c/adi_i2c.c | 202 +++ include/configs/bct-brettl2.h |2 +- include/configs/bf518f-ezbrd.h |2 +- include/configs/bf526-ezbrd.h |2 +- include/configs/bf527-ad7160-eval.h |2

[U-Boot] [PATCH 1/3 v2] blackfin: rename bfin-twi_i2c driver to adi_i2c

2014-11-12 Thread Scott Jiang
Signed-off-by: Scott Jiang --- drivers/i2c/Makefile |2 +- drivers/i2c/{bfin-twi_i2c.c => adi_i2c.c} |7 +++ include/configs/bct-brettl2.h |2 +- include/configs/bf518f-ezbrd.h|2 +- include/configs/bf526-ezbrd.h |

Re: [U-Boot] [PATCH 2/2] spi: add common spi3 controller driver

2014-11-06 Thread Scott Jiang
Ping. Scott 2014-09-25 17:25 GMT+08:00 Scott Jiang : > SPI3 controller is not only used on BF609 platform. So we add a common > controller > driver and leave machine specific configuration in board drivers. > Remove obsolete spi6xx.h and select new board driver in configuration file

Re: [U-Boot] [PATCH 1/2] blackfin: spi: move spi max chip select to spi.h

2014-11-06 Thread Scott Jiang
Ping. Scott 2014-09-25 17:25 GMT+08:00 Scott Jiang : > This macro is only related to spi. So it's better to place it in spi.h. > > Signed-off-by: Scott Jiang > --- > arch/blackfin/include/asm/config-pre.h |3 --- > arch/blackfin/include/asm/mach-common/b

Re: [U-Boot] [PATCH] blackfin: rename blackfin i2c driver to adi

2014-10-31 Thread Scott Jiang
Hi Heiko, >> static int wait_for_completion(struct i2c_msg *msg) >> { >> - uint16_t int_stat; >> + u16 int_stat, ctl; > > > This change is not related to the subject of the patch, > please split this into seperate patches ... > >> ulong timebase = get_timer(0); >> >>

[U-Boot] [PATCH] blackfin: rename blackfin i2c driver to adi

2014-10-30 Thread Scott Jiang
This driver is not only used on blackfin. So it's better to rename it and access i2c registers by standard io functions. Fix coding style as well. Signed-off-by: Scott Jiang --- drivers/i2c/Makefile |2 +- drivers/i2c/{bfin-twi_i2c.c => adi_i2c.c

[U-Boot] [PATCH 1/2] blackfin: spi: move spi max chip select to spi.h

2014-09-24 Thread Scott Jiang
This macro is only related to spi. So it's better to place it in spi.h. Signed-off-by: Scott Jiang --- arch/blackfin/include/asm/config-pre.h |3 --- arch/blackfin/include/asm/mach-common/bits/spi.h |1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a

[U-Boot] [PATCH 2/2] spi: add common spi3 controller driver

2014-09-24 Thread Scott Jiang
SPI3 controller is not only used on BF609 platform. So we add a common controller driver and leave machine specific configuration in board drivers. Remove obsolete spi6xx.h and select new board driver in configuration file. Signed-off-by: Scott Jiang --- drivers/spi/Makefile

[U-Boot] [PATCH 2/3] blackfin: spi clock is in sysclk1 domain instead of sysclk0

2014-06-05 Thread Scott Jiang
Signed-off-by: Scott Jiang --- arch/blackfin/include/asm/clock.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/blackfin/include/asm/clock.h b/arch/blackfin/include/asm/clock.h index 59d3faa..05ae03c 100644 --- a/arch/blackfin/include/asm/clock.h +++ b/arch/blackfin

[U-Boot] [PATCH 3/3] spi: add common spi3 controller driver

2014-06-05 Thread Scott Jiang
SPI3 controller is not only used on BF609 platform. So we add a common controller driver and leave machine specific configuration in board drivers. Remove obsolete spi6xx.h and select new board driver in configuration file. Signed-off-by: Scott Jiang --- drivers/spi/Makefile

[U-Boot] [PATCH 1/3] blackfin: spi: move spi max chip select to spi.h

2014-06-05 Thread Scott Jiang
Signed-off-by: Scott Jiang --- arch/blackfin/include/asm/config-pre.h |3 --- arch/blackfin/include/asm/mach-common/bits/spi.h |1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/blackfin/include/asm/config-pre.h b/arch/blackfin/include/asm/config-pre.h

Re: [U-Boot] [PATCH 2/2] spi: bfin_spi6xx: Remove unnecessary test for bus and pins[bus]

2013-12-01 Thread Scott Jiang
break; > #endif > default: > + debug("%s: invalid bus %u\n", __func__, bus); > return NULL; > } > Acked-by: Scott Jiang ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 1/2] spi: bfin_spi: Remove unnecessary test for bus and pins[bus]

2013-12-01 Thread Scott Jiang
f SPI2_CTL > - case 2: mmr_base = SPI2_CTL; break; > + case 2: > + mmr_base = SPI2_CTL; break; > #endif > - default: return NULL; > + default: > + debug("%s: invalid bus %u\n&qu

Re: [U-Boot] [PATCH v1 1/2] bfin: Remove spi dma function in bf5xx.

2013-03-12 Thread Scott Jiang
Frysinger : > On Monday 04 March 2013 02:20:08 Sonic Zhang wrote: >> From: Scott Jiang >> >> BF5xx rx dma causes spi flash random read error. >> Accually spi controller has problems both on tx and rx dma. >> So remove spi dma support in u-boot. > > this is w