[PATCH 3/4] MIPS: add qemu malta board support to barebox
Antony Pavlov
antonynpavlov at gmail.com
Thu Jun 30 06:34:56 EDT 2011
On 30/06/2011, Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com> wrote:
>> + * GNU General Public License for more details.
>> + *
>> + * You should have received a copy of the GNU General Public License
>> + * along with this program; if not, write to the Free Software
>> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
>> + * MA 02111-1307 USA
>> + *
>> + */
>> +
>> +#include <common.h>
>> +#include <types.h>
>> +#include <driver.h>
>> +#include <init.h>
>> +#include <ns16550.h>
>> +#include <mach/hardware.h>
>> +#include <asm/io.h>
>> +
>> +/** to work with the 8250 UART driver implementation we need this
>> function */
>> +static unsigned int malta_uart_read(unsigned long base, unsigned char
>> reg_idx)
>> +{
>> + return readb((char *)base + reg_idx);
>> +}
>> +
>> +/** to work with the 8250 UART driver implementation we need this
>> function */
>> +static void malta_uart_write(unsigned int val, unsigned long base,
>> unsigned char reg_idx)
>> +{
>> + writeb(val, (char *)base + reg_idx);
>> +}
>> +
>> +static struct NS16550_plat serial_plat = {
>> + .clock = 1843200, /* no matter */
> I check the kernel and they use 3686400
>
> furture more there is no qemu-malta as the malta is a real hw
> emulation even on qemu
Honesty is the best policy.
I have no real malta board, but I have qemu-malta pseudo-board.
I can test barebox on the emulator, but I can't give a warranty that
barebox will work on real malta board.
The MIPS Malta is a reconfigurable device
(http://www.linux-mips.org/wiki/Mips_Malta).
It can be used with very different core cards.
So, I have separated qemu-malta barebox board directory, and nobody
can imagine to run it on real malta board.
But if I have malta barebox board directory, anybody can be misled.
--
Best regards,
Antony Pavlov
More information about the barebox
mailing list