From: qianfan Zhao
Add clock/reset definitions for THS peripherals.
Signed-off-by: qianfan Zhao
---
drivers/clk/sunxi/clk_h3.c | 5 +
drivers/clk/sunxi/clk_h6.c | 4
drivers/clk/sunxi/clk_r40.c | 5 +
3 files changed, 14 insertions(+)
diff --git a/drivers/clk/sunxi/clk_h3.c
From: qianfan Zhao
Portting sun8i_thermal.c from linux-5.15 drivers and drop interrupt
features. Next is an example from allwinner T3:
=> temperature get thermal-sensor@1c24c00
thermal-sensor@1c24c00: 39437 C
=>
thermal-sensor@1c24c00: 39776 C
=>
thermal-sensor@1c24c00: 39437 C
Signed-off-by:
From: qianfan Zhao
The host will report such error message if the fastboot device work in
full-speed mode: "Duplicate descriptor for config 1 interface 0
altsetting 0, skipping"
Fastboot device ack both full and high speed interface descriptors when
work in full-speed mode, that's will cause
From: qianfan Zhao
watchdog will reset when 'mmc read' or 'ext4load' a large file from mmc
device. Reset watchdog when accessing mmc device.
Signed-off-by: qianfan Zhao
---
drivers/mmc/mmc.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index
From: qianfan Zhao
Not all Android tools use the id field for signing the image with sha1,
so make this feature as optional and disabled default.
Signed-off-by: qianfan Zhao
---
common/Kconfig.boot| 14 +++
common/image-android.c | 55 +-
2
From: qianfan Zhao
Not all Android tools use the id field for signing the image with sha1,
so make this feature as optional and disabled default.
Signed-off-by: qianfan Zhao
---
common/Kconfig.boot| 14 +++
common/image-android.c | 55 +-
2
From: qianfan Zhao
dm_spi_claim_bus run spi_set_speed_mode first and then ops->claim_bus,
but spi clock is enabled when sun4i_spi_claim_bus, that will make
sun4i_spi_set_speed doesn't work.
Fix it.
Signed-off-by: qianfan Zhao
---
drivers/spi/spi-sunxi.c | 78
From: qianfan Zhao
linux system will die if we offline one of the cpu on R40 based board:
eg: echo 0 > /sys/devices/system/cpu/cpu3/online
Fixed sunxi_power_switch based on allwinner lichee 3.10 kernel driver.
Signed-off-by: qianfan Zhao
---
v2 changes: Fix the commit message, the source code
From: qianfan Zhao
linux system will dead if we offline one of the cpu on R40 based board:
eg: echo 0 > /sys/devices/system/cpu/cpu3/online
Fixed sunxi_power_switch based on allwinner lichee 3.10 kernel driver.
Signed-off-by: qianfan Zhao
---
arch/arm/cpu/armv7/sunxi/psci.c | 24
From: qianfan Zhao
Add splash_mmc_read_raw for loading splash from mmc's raw partition.
Signed-off-by: qianfan Zhao
---
common/splash_source.c | 90 ++
1 file changed, 90 insertions(+)
diff --git a/common/splash_source.c b/common/splash_source.c
index
From: qianfan Zhao
spi-sunxi driver will init pins based on "pinctrl-0", but the
implementation is very limited.
Adding an Kconfig option if you really need this feature, or disable it
and config pinmux at board's board_init.
Signed-off-by: qianfan Zhao
---
drivers/spi/Kconfig | 10
From: qianfan Zhao
The board is not configurable if use sunxi soc. Add Kconfig items and
make custom board available.
Signed-off-by: qianfan Zhao
---
arch/arm/mach-sunxi/Kconfig | 17 +
1 file changed, 17 insertions(+)
diff --git a/arch/arm/mach-sunxi/Kconfig
From: qianfan Zhao
eth_device_priv maybe unaccessable after @stop handler due to eth device
is removed in @stop, touch it will trigger data abort.
Fix data abort bug when run dhcp or tftp command via usbnet.
Signed-off-by: qianfan Zhao
---
net/eth-uclass.c | 11 +--
1 file changed, 9
From: qianfan Zhao
tftp_handler do eth_halt when TFTP_ERROR, but eth_halt will remove eth
device if it is an usb network. usbeth's private data will be unaccessable
when usb_eth_free_pkt, touch it will trigger data abort.
Next is the console messages:
=> tftp xxx
...
Loading: *
TFTP error:
From: qianfan Zhao
6x8 bitmap font has better display effect on smaller lcd screen.
Signed-off-by: qianfan Zhao
---
drivers/video/Kconfig|3 +
include/video_font.h |4 +-
include/video_font_6x8.h | 2580 ++
3 files changed, 2586
From: qianfan Zhao
CONFIG_VIDEO_FONT_4x6 is referenced in include/video_font.h, but doesn't
has a Kconfig configuration.
Add it.
Signed-off-by: qianfan Zhao
---
drivers/video/Kconfig| 15 +++
include/video_font_4x6.h | 2 +-
2 files changed, 16 insertions(+), 1 deletion(-)
From: qianfan Zhao
Add support \\, \r, \n, \t and \b.
eg:
=> lcdputs "hello\nworld"
Signed-off-by: qianfan Zhao
---
drivers/video/vidconsole-uclass.c | 34 +--
1 file changed, 32 insertions(+), 2 deletions(-)
diff --git a/drivers/video/vidconsole-uclass.c
From: qianfan Zhao
CONFIG_VIDEO_FONT_4x6 is referenced in include/video_font.h, but doesn't
has a Kconfig configuration.
Add it.
Signed-off-by: qianfan Zhao
---
drivers/video/Kconfig| 8
include/video_font_4x6.h | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git
From: qianfan Zhao
Add support \\, \r, \n, \t and \b.
eg:
=> lcdputs "hello\nworld"
Signed-off-by: qianfan Zhao
---
drivers/video/vidconsole-uclass.c | 34 +--
1 file changed, 32 insertions(+), 2 deletions(-)
diff --git a/drivers/video/vidconsole-uclass.c
From: qianfan Zhao
tftp_handler do eth_halt when TFTP_ERROR, but eth_halt will remove eth
device if it is an usb network. usbeth's private data will be unaccessable
when usb_eth_free_pkt, touch it will trigger data abort.
Next is the console messages:
=> tftp xxx
...
Loading: *
TFTP error:
From: qianfan Zhao
eth_device_priv maybe unaccessable after @stop handler due to eth device
is removed in @stop. Setting private data before @stop handler.
This also fix data abort bug when run dhcp or tftp command via usbnet.
Signed-off-by: qianfan Zhao
---
net/eth-uclass.c | 9 +++--
1
From: qianfan Zhao
eth_device_priv maybe unaccessable after @stop handler due to eth device
is removed in @stop. Setting private data before @stop handler.
This also fix data abort bug when run dhcp or tftp command via usbnet.
Signed-off-by: qianfan Zhao
---
net/eth-uclass.c | 9 +++--
1
no malloc messages even if i remove the _DEBUG marco check in assert. maybe it
can’t detected by do_check_inuse_chunk().
> 在 2022年3月23日,18:12,Heinrich Schuchardt 写道:
> On 3/23/22 11:07, qianfan wrote:
>>
>> 在 2022/3/23 17:51, Heinrich Schuchardt 写道:
>>> On 3/23/22 10:13, qianfan wrote:
在
From: qianfan Zhao
find_dev_and_part return 0 on success, 1 otherwise.
So fastboot_nand_get_part_info follow this rule.
Signed-off-by: qianfan Zhao
---
drivers/fastboot/fb_getvar.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/fastboot/fb_getvar.c
From: qianfan Zhao
CHUNK_TYPE_RAW buffer is not aligned, and flash sparse images by
fastboot will report "Misaligned operation" if DCACHE is enabled.
Flashing Sparse Image
CACHE: Misaligned operation at range [8428, 84001028]
CACHE: Misaligned operation at range [84001034, 84002034]
CACHE:
From: qianfan Zhao
Fix fastboot flash bug.
If the downloading file size is equal to the partition size, "fastboot
flash" can't work, at least in sunxi platform, because used an
uninitalized point: ep->desc.
This patch also fixed 'data abort' bug in am335x platform.
Reproduce: fastboot flash
From: qianfan Zhao
CHUNK_TYPE_RAW buffer is not aligned, and flash sparse images by
fastboot will report "Misaligned operation" if DCACHE is enabled.
Flashing Sparse Image
CACHE: Misaligned operation at range [8428, 84001028]
CACHE: Misaligned operation at range [84001034, 84002034]
CACHE:
From: qianfan Zhao
Fix fastboot flash bug.
If the downloading file size is equal to the partition size, "fastboot
flash" can't work, at least in sunxi platform, because used an
uninitalized point: ep->desc.
Reproduce: fastboot flash loader1 spl/sunxi-spl.bin.
Signed-off-by: qianfan Zhao
---
From: qianfan Zhao
CHUNK_TYPE_RAW buffer is not aligned, and flash sparse images by
fastboot will report "Misaligned operation" if DCACHE is enabled.
Flashing Sparse Image
CACHE: Misaligned operation at range [8428, 84001028]
CACHE: Misaligned operation at range [84001034, 84002034]
CACHE:
From: qianfan Zhao
CHUNK_TYPE_RAW buffer is not aligned, and flash sparse images by
fastboot will report "Misaligned operation" if DCACHE is enabled.
Flashing Sparse Image
CACHE: Misaligned operation at range [8428, 84001028]
CACHE: Misaligned operation at range [84001034, 84002034]
CACHE:
From: qianfan Zhao
The work of SPL did is init DRAM, which can be replaced with DCD scripts.
This is very helpful to start u-boot directly through USB.
Signed-off-by: qianfan Zhao
---
arch/arm/mach-imx/mx6/Kconfig| 1 +
board/myir/mys_6ulx/Kconfig | 3 +
From: qianfan Zhao
If the downloading file size is equal to the partition size, "fastboot
flash" can't work, at least in sunxi platform, because used an
uninitalized point: ep->desc.
Reproduce: fastboot flash loader1 spl/sunxi-spl.bin.
Fix it.
Signed-off-by: qianfan Zhao
---
From: qianfan Zhao
Since the usb otg driver support R40 device, we enable usb gadget
functions and ums.
Signed-off-by: qianfan Zhao
---
configs/Bananapi_M2_Ultra_defconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configs/Bananapi_M2_Ultra_defconfig
From: qianfan Zhao
bpi-m2u has a hardware usb_otg, let's enable it in dts.
Signed-off-by: qianfan Zhao
---
arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts | 5 +
arch/arm/dts/sun8i-r40.dtsi | 14 ++
2 files changed, 19 insertions(+)
diff --git
From: qianfan Zhao
the r40 has the same configurations with a33, disable enable_pmu_unk1 and
phy0_dual_route feature.
Signed-off-by: qianfan Zhao
---
drivers/phy/allwinner/phy-sun4i-usb.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c
From: qianfan Zhao
The address of sun8i_r40's phyctrl is 0x01c13404, also fixed
enable_pmu and dual_route.
Signed-off-by: qianfan Zhao
---
drivers/phy/allwinner/phy-sun4i-usb.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c
From: qianfan Zhao
bpi-m2u has a hardware usb_otg, let's enable it in dts.
Signed-off-by: qianfan Zhao
---
arch/arm/dts/sun8i-r40-bananapi-m2-ultra.dts | 4
arch/arm/dts/sun8i-r40.dtsi | 13 +
2 files changed, 17 insertions(+)
diff --git
From: qianfan Zhao
R40 has 8 user-configurable endpoints and 8KB FIFO for EPs.
Signed-off-by: qianfan Zhao
---
drivers/usb/musb-new/sunxi.c | 31 ++-
1 file changed, 30 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/musb-new/sunxi.c
From: qianfan Zhao
Since the usb otg driver support R40 device, we enable usb gadget
functions and ums.
Signed-off-by: qianfan Zhao
---
configs/Bananapi_M2_Ultra_defconfig | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/configs/Bananapi_M2_Ultra_defconfig
39 matches
Mail list logo