1, Add CPU Windows For GPU Access 3A's DDR
2, Add UMA Micro To Reserve GPU VRAM
Target: 3A2H3 (!!!NOT SUPPORT 3A2H2)
Change-Id: I153762752e0d640e6645f1dc6c11e0ad3fca9e25
*. the panic is caused by address exception by in video_drawchars() triggered
by delay1();
*. during the shutdown triggered by kernel, the pmon does not maintain the
same context as the booting, it is not safe to manipulate device;
Change-Id: I6078c24dafec14421c7a45512cf6370f77c37e0d
the gs464 core CAN NOT access HT's memory space directly, so we need
the scache and iodma to routing the access to 0x19xxxxxx to HT's space
0xfdf8xxxxxx
Change-Id: I9d4bd747f4980fb0baf00c334e063ba11150b41c
It displays in three plays:pmon bios, before pmon command line, `sysinfo mem` command. Now all of them are right.
Change-Id: I6eaf42f3df83a2603decf32cfea131a84f773374
when we updated to gcc 4.4.0, the compiler would change the uninitialized param to 1 when ac = 3,
which is beyond our expectation. So just initialize the param.
Change-Id: I4e3f5ecd05015114eefd2307129d4a4458f5bbee
Target: 3A2H
1. Read GPIO to get the board version.
2. when it can't get MAC address from eeprom,
a random MAC address will be used.
Change-Id: If334e94dbb3dcacfea6b2f91d874a228ef99d753
Signed-off-by: Liu Shaozong <liushaozong@loongson.cn>
Originally the frequency of the I2C0 Controller
is too high to access the eeprom of ddr correctly.
Now adjust it under 100K, it is in I2C's normal
range.
Target: 3a2h 2gq2h
You can use the command of "load_2h" to programming 2h bios,
use "load_2h (your 2h pmon path)".
example:
1.Your 2h pmon at tftp://10.2.5.27/romls2h
Use the command "load_2h tftp://10.2.5.27/romls2h"
2.You 2h pmon at /dev/fs/ext2@wd0/boot/romls2h
Use the command "load_2h /dev/fs/ext2@wd0/boot/romls2h"
Target:Bonito3a2h
On 3a2h board if ls2h bios ddr initialize do not success
it can cause display huaping when start pmon,Now add a
judgment for ls2h ddr initialize whether correct.
Target:Bonito3a2h
when start pmon on 3a2h/2gq2h it can not press the "Delete" key
enter to setup BIOS interface or can enter to setup BIOS interface
but not quit,Now fixed it you can press the "Delete" key enter to
setup BIOS interface and can quit success.
Target:Bonito3a2h Bonito2gq2h
Now we store arb leveled info seperately for each MC(up to 4 MC, tow 3A/B).
If the CLKSEL pin(DDR frequency) or DIMMs is changed, then we will do arb level
again.
Branch Bonito3a/b780e, Bonito3a/bserver, Bonito3a2h, Bonito2gq2h/780e is updated.
This patch is used to fix ls2h HT controler bug which will cause
ls3a/ls2gq and ls2h HT connection fail.
Notice: ls2h bios should has corresponding code to support this patch
Thanks <wanghuandong@loongson.cn>
Target: Bonito3a2h Bontio2gq2h
Original code assume LS2H RTC always work, however some chip has
bugs that lead RTC fail to calculate CPU frequency, and halt in
the calculation. Now this bug is fixed.
Target:Bonito3a2h
This patch solves the blank screen problem. Dual putout will add
the ddr's load, make DC underflow. So it's good solution to make
DVO copy form panel1 and disable panel0.
Target: 3a+2h
On different board when set the IP address of the network card
and use "set" or "env" command will show the different NIC device
symbol such as "rte0、em0/em1、syn0/syn1",Now unified the NIC
device symbol as "eth".
Target:Bonito3a780e Bonito3b780e Bonito3aserver
Bonito3bserver Bonito3a2h
HT channel sometimes jams during DMA access from ls2h gpu, this
causes system can't respose to any interrupt. This is a hardware
bug in ls2h chip, HT channel in order is seted to decrease the
frequency of the bug.
Thanks wanghuandong@loongson.cn
Target:Bonito3a2h
Original L2X bar configuration code only support 2G/4G swiotlb, if
system memory is 8G, kernel can't boot up succesffully.It's because
the L2X bar configuration for 8G memory is from 0x80000000 rather
than 0x100000000. Now it's changed and pass test with 2G/4G/8G/ mem.
Target:Bonito3a2h
Before on different board the NIC device symbols is
different,For example on 3a780e/3b780e the NIC device
symbol is "rte0" on 3aserver/3bserver the NIC device
symbol is "em0/em1" on 3a2h the NIC device symbol is
"syn0/syn1",Now unified the NIC device symbol as "eth".
when you use the command "ifaddr" "ifconfig" followed
by "eth0/eth1",On 3a780e/3b780e 3a2h use the command
"setmac" "readrom" "writerom" followed by "eth0/eth1"
but on 3aserver/3bserver direct use the command "setmac"
"readrom" "writerom".
Target:Bonito3a780e Bonito3b780e Bonito3aserver
Bonito3bserver Bonito3a2h
This patch adds a "setmac" command used to examine and set LS2H Gmac's
Mac address. This command puts the Mac address into the eeprom device.
When the pmon boots, Gmac reads Mac address from eeprom. By the way,
this patch also adds support for eeprom.
The patch is for bug 459 and bug 460
Target: 3a+2h
The ls2h.h head file defines all registers of LS2H. If you need to access
these registers, just include this file. In the file, it provieds four
macro defines to access the registers: read_reg_word, write_reg_word,
read_reg_byte and write_reg_byte, which access registers in word or byte.
Target: 3a+2h
Use the "date" command to set time on ls3a2h the bug as
http://www.loongson.org/dev/bugzilla/show_bug.cgi?id=453
will occur,Now enable the RTC on ls3a2h to ensure "date"
command can set and display the time right.
Target:Bonito3a2h
Original only the VGA port can putout, the DVO port is not configured.
This patch add the configuration of DVO prot. At the same time, arrange
the Targets/Bonito3a2h/dev/dc.c file.
Target: 3a+2h
Original only one gmac port syn0 can be used, the other syn1 is not
configured. In this patch, add confuguration for syn1, then gmac
port syn1 is normal.
Target: 3a+2h
Original code can't support ddr auto probe and training, Now ls2h
i2c controler0 is used to detect the DIMM information, and ddr auto
training can work now. It pass test with single 2G dimm and double
2G DIMM on two DDR controler.
Target:Bonito3a2h
Before the time of scan "Del" button is too short,
resulted into set the bios of the interface.Now
extended the time of the scan "Del" button.But in
order to improve the bios of the start-up time,this
option is off by default.
Target:Bonito3a780e Bonito3aserver Bonito3b780e Bonito3bserver
Bonito3c780e Bonito2gq780e Bonito3a2h