SUNXI : DE2 : H3 : Add support for setenv video-mode

2019-12-29 Thread Arjan van Vught
Is it on the roadmap adding support for setenv video-mode?

Please advice. 

Many thanks in advance, Arjan 

http://www.orangepi-dmx.org/allwinner-h3



Re: SUNXI : CONFIG_VIDEO_SUNXI is never set

2019-12-22 Thread Arjan van Vught



> Op 10 mrt. 2019, om 20:18 heeft Arjan van Vught  
> het volgende geschreven:
> 
> 
> 
>> Op 7 mrt. 2019, om 09:04 heeft Chen-Yu Tsai  het volgende 
>> geschreven:
>> 
>> On Fri, Mar 1, 2019 at 11:36 PM Arjan van Vught
>>  wrote:
>>> 
>>> Version: u-boot-2018.09
>>> 
>>> This is a follow-up for : "SUNXI : setenv video-mode not working"
>>> 
>>> Although I have added CONFIG_VIDEO_SUNXI=y in configs/orangepi_one_defconfig
>>> 
>>> the source file sunxi_display.c is not compiled. Hence the setenv
>>> video-mode is not working ?
>> 
>> That file is only used for DE 1.0, while the H3, which the Orange Pi
>> One is based
>> on, has DE 2.0.
> Is it on the roadmap adding support for DE 2.0 ?

Hi ChenYu, any updates for this issue ? Thanks, Arjan 



Re: [U-Boot] SUNXI : CONFIG_VIDEO_SUNXI is never set

2019-03-10 Thread Arjan van Vught


> Op 7 mrt. 2019, om 09:04 heeft Chen-Yu Tsai  het volgende 
> geschreven:
> 
> On Fri, Mar 1, 2019 at 11:36 PM Arjan van Vught
>  wrote:
>> 
>> Version: u-boot-2018.09
>> 
>> This is a follow-up for : "SUNXI : setenv video-mode not working"
>> 
>> Although I have added CONFIG_VIDEO_SUNXI=y in configs/orangepi_one_defconfig
>> 
>> the source file sunxi_display.c is not compiled. Hence the setenv
>> video-mode is not working ?
> 
> That file is only used for DE 1.0, while the H3, which the Orange Pi
> One is based
> on, has DE 2.0.
Is it on the roadmap adding support for DE 2.0 ?

- Arjan
> 
> ChenYu
> 
> 
>> 
>> Please advice.
>> 
>> Many thanks in advance, Arjan
>> 
>> http://www.orangepi-dmx.org/allwinner-h3
>> 
>> ___
>> U-Boot mailing list
>> U-Boot@lists.denx.de
>> https://lists.denx.de/listinfo/u-boot

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] SUNXI : CONFIG_VIDEO_SUNXI is never set

2019-03-01 Thread Arjan van Vught

Version: u-boot-2018.09

This is a follow-up for : "SUNXI : setenv video-mode not working"

Although I have added CONFIG_VIDEO_SUNXI=y in configs/orangepi_one_defconfig

the source file sunxi_display.c is not compiled. Hence the setenv 
video-mode is not working ?


Please advice.

Many thanks in advance, Arjan

http://www.orangepi-dmx.org/allwinner-h3

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] SUNXI : setenv video-mode not working

2019-03-01 Thread Arjan van Vught

Version: u-boot-2018.09

With reference to 
https://github.com/u-boot/u-boot/blob/master/doc/README.video I've set 
the following :


video-mode=sunxi:800x480-24@60,monitor=hdmi,edid=0

I am would have expect that u-boot is always using 800x480 regardless 
the (higher) resolution of the attached HDMI monitor.


However, this is not working on the Orange Pi One. It is always using 
the highest resolution from the attached HDMI monitor.


Any thought's?

Many thanks in advance, Arjan

http://www.orangepi-dmx.org/allwinner-h3

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [BUG] H2+/H3 : SPI driver : error: ‘AHB_GATE_OFFSET_SPI0’ undeclared (first use in this function)

2018-10-18 Thread Arjan van Vught

Version: u-boot-2018.09

Configuration : orangepi_zero_defconfig

In file included from include/wait_bit.h:15:0,
 from drivers/spi/sun4i_spi.c:26:
drivers/spi/sun4i_spi.c: In function 'sun4i_spi_enable_clock':
  LD  drivers/usb/musb-new/built-in.o
drivers/spi/sun4i_spi.c:246:38: error: 'AHB_GATE_OFFSET_SPI0' undeclared 
(first use in this function); did you mean 'AHB_GATE_OFFSET_MMC0'?

  setbits_le32(>ahb_gate0, (1 << AHB_GATE_OFFSET_SPI0));

AHB_GATE_OFFSET_SPI0 can be found in:

./arch/arm/include/asm/arch-sunxi/clock_sun4i.h:#define 
AHB_GATE_OFFSET_SPI0    20
./arch/arm/include/asm/arch-sunxi/clock_sun8i_a83t.h:#define 
AHB_GATE_OFFSET_SPI0   20


~/uboot/u-boot-2018.09$ grep -a CONFIG_MACH_SUN8I .config
# CONFIG_MACH_SUN8I_A23 is not set
# CONFIG_MACH_SUN8I_A33 is not set
# CONFIG_MACH_SUN8I_A83T is not set
CONFIG_MACH_SUN8I_H3=y
# CONFIG_MACH_SUN8I_R40 is not set
# CONFIG_MACH_SUN8I_V3S is not set
CONFIG_MACH_SUN8I=y

With  arch/arm/include/asm/arch/clock.h

#if defined(CONFIG_MACH_SUN8I_A83T)
#include 
#elif defined(CONFIG_MACH_SUN50I_H6)
#include 
#elif defined(CONFIG_MACH_SUN6I) || defined(CONFIG_MACH_SUN8I) || \
  defined(CONFIG_MACH_SUN50I)
#include 
#elif defined(CONFIG_MACH_SUN9I)
#include 
#else
#include 
#endif

The AHB_GATE_OFFSET_SPI0 should be defined in asm/arch/clock_sun6i.h

- Arjan


___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot