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.
>
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
>&
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
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
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 |
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
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
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);
>>
>>
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
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
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
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
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
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
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
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
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
17 matches
Mail list logo