Ondrej Jirman
bb1f39e0c9
board: sunxi: Fix bdaddr generation for TBS A711
...
It doesn't have ethernet.
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-11-26 12:02:46 +01:00
Ondrej Jirman
bcf897e937
Add btaddr fixups to relevant configs
2019-11-26 11:24:19 +01:00
Andre Heider
7f2847ea84
arm: sunxi: add a config option to fixup a Bluetooth address
...
Some Bluetooth controllers, like the BCM4345C5 of the Orange Pi 3,
ship with the controller default address.
Add a config option to fix it up so it can function properly.
Signed-off-by: Andre Heider <a.heider@gmail.com >
2019-11-26 11:24:19 +01:00
Ondrej Jirman
5780fc1c3b
[WIP] LRADC driver for sunxi
...
- this is mostly just copy from linux, needs porting, doesn't compile
2019-11-26 09:32:32 +01:00
Ondrej Jirman
329d891992
sunxi: Increase CONFIG_SYS_BOOTM_LEN to 64MiB for all of sunxi (even 32bit)
2019-11-25 12:56:54 +01:00
Ondrej Jirman
33b8cc58fc
Disable serial console in PocketBook defconfig
2019-11-25 12:56:20 +01:00
Ondrej Jirman
a490b0fabd
Make my configs leaner
2019-11-20 20:03:56 +01:00
Ondrej Jirman
26ea96263b
charging fix
2019-11-20 19:58:25 +01:00
Ondrej Jirman
5779f85073
axp: Drop useless printk
...
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-11-20 04:34:30 +01:00
Ondrej Jirman
4bda813f83
axp: Allow to enable batter charging spec detection
2019-11-20 04:33:35 +01:00
Ondrej Jirman
cfb78712d3
Make sunxi timer public for use in boot time measurements
2019-11-20 02:57:58 +01:00
Ondrej Jirman
f3da29c52c
Try to make u-boot leaner by disabling things
2019-11-20 02:57:38 +01:00
Ondrej Jirman
3a5d4a5a13
Add FIT support to my boards
2019-11-20 01:27:00 +01:00
Ondrej Jirman
81340f93f3
Don't auto-enable video console
2019-11-20 01:10:17 +01:00
Ondrej Jirman
436af66692
Allow to turn on backlight on demand
2019-11-20 01:10:03 +01:00
Ondrej Jirman
c6cf32058a
pocketbook: Configure for bus-width 4 on MMC2
2019-10-08 00:16:07 +02:00
Ondrej Jirman
43f564af1f
Add minimal PocketBook Touch Lux 3 support
2019-10-08 00:16:07 +02:00
Ondrej Jirman
4489bc7fcf
sunxi: Fix stable MAC address generation when CMD_NET is disabled
2019-10-08 00:16:07 +02:00
Joe Hershberger
af27e7568b
net: Always build the string_to_enetaddr() helper
...
Part of the env cleanup moved this out of the environment code and into
the net code. However, this helper is sometimes needed even when the net
stack isn't included.
Move the helper to lib/net_utils.c like it's similarly-purposed
string_to_ip(). Also rename the moved function to similar naming.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com >
Reported-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:07 +02:00
Ondrej Jirman
223a61eefe
disable more delays
2019-10-08 00:16:07 +02:00
Ondrej Jirman
95f42fef7c
Quieter boot
2019-10-08 00:16:07 +02:00
Ondrej Jirman
cab51da2a1
board: sunxi: Get rid of useless initializations and 500ms boot delay
...
CONFIG_SATAPWR and CONFIG_MACPWR, when not used are still defined
with value "", this causes useless 500ms delay during boot when
these are not needed.
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:07 +02:00
Ondrej Jirman
557c98880f
sunxi: Increase boot frequency for TBS A711
...
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:07 +02:00
Ondrej Jirman
801a4e0488
arm: dts: Faster mmc load on TBS A711
...
Missing bus-width = <4>.
Along with DMA support, we can now do 34MiB/s in u-boot.
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:07 +02:00
Ondrej Jirman
b88c1571c1
mmc: sunxi: DDR/DMA support for SPL
2019-10-08 00:16:07 +02:00
Ondrej Jirman
11bdeed84a
mmc: sunxi: Cleanup, add support for DDR
...
With this, we can boot from eMMC with read speeds around 47.5MiB/s.
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
3093f5e4eb
mmc: sunxi: New mode needs double the frequency
...
Without this, we get 10 MiB/s instead of 23MiB/s on H6.
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
e17e2dd583
mmc: sunxi: Add support for DMA transfers
...
Allwinner MMC controller supports DMA via internal DMA controller,
use it.
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
e5422d9378
arm: sunxi: Fix clock_get_pll6() calculation
...
Off by on error. N is stored in register as N-1.
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
fdfda1b623
Fix unreliable detection of DRAM size on Orange Pi 3
...
Orange Pi 3 has 2 GiB of DRAM, that sometime get misdetected
as 4 GiB, due to false negative result from mctl_mem_matches()
when detecting number of column address bits. This leads to
u-boot detecting more address bits than there are and the
boot process hangs shortly after.
In mctl_mem_matches() we need to wait for each write to finish,
separately. Without this, the check is not reliable for some
unknown reason, probably having to do with unpredictable memory
access ordering.
Patch was made with help from André Przywara, who noticed that
my original idea about detection failing due to read-back from
cache without involving DRAM was false, because data cache is
still of at the time of the DRAM size autodetection.
Signed-off-by: Ondrej Jirman <megous@megous.com >
Cc: André Przywara <andre.przywara@arm.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
0230d626ae
Trim down u-boot for Orange Pi 3
2019-10-08 00:16:06 +02:00
Ondrej Jirman
b6ba2facdf
sunxi: Add basic Orange Pi 3 support
2019-10-08 00:16:06 +02:00
Ondrej Jirman
7336579b0e
sunxi: Sync H6 dtsi with Linux 5.2
2019-10-08 00:16:06 +02:00
Ondrej Jirman
969eef273a
pwm: sunxi-pwm: Add compatible for H3
...
A83T DTS from Linux uses allwinner,sun8i-h3-pwm.
So we need this driver to support it too.
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
ca9777d8b4
axp: Support more LED blinking modes
...
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
ce3c0f00c5
configs: tbs_a711: Enable axp command
...
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
daee5f80bf
configs: tbs_a711: Enable BMP command
...
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
e7ac19d728
configs: tbs_a711: Enable LVDS/DE2
...
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
6cc89ad805
configs: tbs_a711: Enable backlight
...
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
3eee2590b7
configs: tbs_a711: Enable touch panel and tmenu command
...
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
44849fb500
configs: tbs_a711: Enable mydbg command
...
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
9dcd240a09
configs: tbs_a711: Disable boot delay
...
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
cd55c2a7b8
configs: tbs_a711: Streamline u-boot by disabling DISTRO_DEFAULTS and NET
...
Not needed on this board.
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
46411ff285
sunxi: Enable support for BMP image format (plain and gzip compressed)
...
This is needed in order to be able to use `bmp` command on sunxi boards.
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
42faed6a52
cmd: Add axp
command for reading values from AXP81x PMIC
...
This is useful for boot scripts to be able to decide whether to
boot or not and whether to notify the user of what is wrong.
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
915048fb9f
power: axp818: Add various helper functions for accessing AXP81x PMIC status
...
These will be used by the upcomming `axp` command.
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
8099ea41e2
power: axp818: Suport DCDC6 in AXP818
2019-10-08 00:16:06 +02:00
Ondrej Jirman
dd547afc8f
sunxi: dts: Add nodes for LCD panel and backlight
...
Device tree is slightly different from Linux kernel one, because of
different ABI for display timings between u-boot and Linux.
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
b0ca2c87b5
sunxi: Enable DE2/LVDS support on A83T
...
Now that the code is in place, enable SUNXI_DE2 and LCD panel support
for MACH_SUN8I_A83T.
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00
Ondrej Jirman
9825574d21
video: sunxi: de2: Support A83T SoC
...
DE2 PLL on A83T does not have selectable parent, nor is it separately
gateable.
Signed-off-by: Ondrej Jirman <megous@megous.com >
2019-10-08 00:16:06 +02:00