open mini netbook

open project of mini netbook, 7'' ARM netbook


You are not connected. Please login or register

Kernel Patches for AK - straight from China!

View previous topic View next topic Go down  Message [Page 1 of 1]

Tarkin


Doing some more googling, came across this:
groups DOT google DOT com/group/szlug/browse_thread/thread/f8a6f4f4cb579479

After decompressing, I found that the patches refer to AK8802,
not AK7802 that is in the Google Groups thread title.

This may be as good a point as any for reverse engineering this SoC...

TTFN,
Tarkin

Tarkin


arch/arm/mach-ak880x/include/mach/map.h

Code:
#ifndef __ASM_ARCH_MAP_H
#define __ASM_ARCH_MAP_H

#include <plat/map.h>
#include <plat/map-base.h>
#include <mach/map.h>

#define AK880X_ADDR(x)    ANYKA_ADDR(x)

#define AK880X_VA_SYS  ANYKA_VA_SYS
#define AK880X_PA_SYS  (0x08000000)
#define AK880X_SZ_SYS    SZ_64K

#define AK880X_SYS_ADDR(x)  (AK880X_VA_SYS+(x))

#define AK880X_RESET_CLK  AK880X_SYS_ADDR(0x0c)
#define AK880X_VA_IRQ  AK880X_SYS_ADDR(0x34)
#define AK880X_VA_GPIO    AK880X_SYS_ADDR(0x7c)

#define AK880X_VA_DEV  ANYKA_VA_DEV
#define AK880X_PA_DEV  (0x20020000)
#define AK880X_SZ_DEV  SZ_64K

#define AK880X_DEV_ADDR(x)  (AK880X_VA_DEV+(x))

#define AK880X_VA_UART    AK880X_DEV_ADDR(0x6000)
#define AK880X_PA_UART    ((0x6000)+AK880X_PA_DEV)

#define AK880X_VA_L2BUF  ANYKA_VA_MEM
#define AK880X_PA_L2BUF  (0x48000000)
#define AK880X_SZ_L2BUF  SZ_8K


/* USB host controller */
#define AK880X_PA_USBHOST (0x49000000)

/* DMA controller */
#define AK880X_PA_DMA    (0x4B000000)
#define AK880X_SZ_DMA    SZ_1M

/* Clock and Power management */
#define AK880X_PA_CLKPWR  (0x4C000000)

/* LCD controller */
#define AK880X_PA_LCD    (0x4D000000)
#define AK880X_SZ_LCD    SZ_1M

/* NAND flash controller */
#define AK880X_PA_NAND    (0x4E000000)

/* IIC hardware controller */
#define AK880X_PA_IIC    (0x54000000)

/* IIS controller */
#define AK880X_PA_IIS    (0x55000000)

/* RTC */
#define AK880X_PA_RTC    (0x57000000)
#define AK880X_SZ_RTC    SZ_1M

/* ADC */
#define AK880X_PA_ADC    (0x58000000)

/* SPI */
#define AK880X_PA_SPI    (0x59000000)

/* SDI */
#define AK880X_PA_SDI    (0x5A000000)

/* CAMIF */
#define AK880X_PA_CAMIF  (0x4F000000)
#define AK880X_SZ_CAMIF  SZ_1M

/* AC97 */

#define AK880X_PA_AC97    (0x5B000000)
#define AK880X_SZ_AC97    SZ_1M

/* AK880X High-speed SD/MMC */
#define AK880X_PA_HSMMC  (0x4A800000)
#define AK880X_SZ_HSMMC  (256)

/* AK880X memory and IO controls */
#define AK880X_PA_SSMC  (0x4F000000)
#define AK880X_VA_SSMC  ANYKA_ADDR_CPU(0x00000000)

#define AK880X_PA_EBI (0x48800000)
#define AK880X_VA_EBI ANYKA_ADDR_CPU(0x00010000)

/* physical addresses of all the chip-select areas */

#define AK880X_CS0 (0x00000000)
#define AK880X_CS1 (0x08000000)
#define AK880X_CS2 (0x10000000)
#define AK880X_CS3 (0x18000000)
#define AK880X_CS4 (0x20000000)
#define AK880X_CS5 (0x28000000)
#define AK880X_CS6 (0x30000000)
#define AK880X_CS7 (0x38000000)

#define AK880X_SDRAM_PA    (AK880X_CS6)

#define ANYKA_PA_IIC          AK880X_PA_IIC
#define ANYKA_PA_UART    AK880X_PA_UART
#define ANYKA_PA_USBHOST  AK880X_PA_USBHOST
#define ANYKA_PA_HSMMC0    AK880X_PA_HSMMC
#define ANYKA_PA_NAND    AK880X_PA_NAND

#define AK880X_VA_ISA_WORD  (0x02000000)
#define AK880X_VA_ISA_BYTE  (0x03000000)

#endif /* __ASM_ARCH_MAP_H */

The above is Copyright (c) 2003 Simetec Electronics / Ben Dooks

If this is accurate, it should prove useful in further modifying burntool...

TTFN,
Tarkin

Oto


Master
Master
nice find. Seems that he tries to use simetec as template.

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum