#Default value
head-y := arch/arm/kernel/head$(MMUEXT).o arch/arm/kernel/init_task.o
-textofs-y := 0x00608000
+textofs-y := 0x00408000
textofs-$(CONFIG_ARCH_CLPS711X) := 0x00028000
# SA1111 DMA bug: we don't want the kernel to live in precious DMA-able memory
ifeq ($(CONFIG_ARCH_SA1100),y)
- zreladdr-y := 0x60608000
-params_phys-y := 0x60088000
+ zreladdr-y := 0x60408000
+params_phys-y := 0x600f8000
initrd_phys-y := 0x60800000
};
struct adc_key_data rk2818_adc_key = {
- .pin_playon = RK2818_PIN_PE1,
+ .pin_playon = RK2818_PIN_PA3,
.playon_level = 1,
.adc_empty = 900,
.adc_invalid = 20,
.adc_chn = 1,
.adc_key_table = gAdcValueTab,
.initKeyCode = gInitKeyCode,
- .adc_key_cnt = 7,
+ .adc_key_cnt = 9,
};
static void __init machine_rk2818_init_irq(void)
/*rk2818_fb gpio information*/
static struct rk2818_fb_gpio rk2818_fb_gpio_info = {
- .display_on = (GPIO_LOW<<16)|RK2818_PIN_PB1,
+ .display_on = (GPIO_LOW<<16)|RK2818_PIN_PA2,
.lcd_standby = 0,
.mcu_fmk_pin = 0,
};
};
extern struct sys_timer rk2818_timer;
-#define POWER_PIN RK2818_PIN_PH7
+#define POWER_PIN RK2818_PIN_PB1
static void rk2818_power_on(void)
{
int ret;
/* UART for LL DEBUG */
.phys_io = 0x18002000,
.io_pg_offst = ((0xFF100000) >> 18) & 0xfffc,
- .boot_params = RK2818_SDRAM_PHYS + 0x88000,
+ .boot_params = RK2818_SDRAM_PHYS + 0xf8000,
.map_io = machine_rk2818_mapio,
.init_irq = machine_rk2818_init_irq,
.init_machine = machine_rk2818_board_init,
ARRAY_SIZE(board_i2c3_devices));
#endif
platform_add_devices(devices, ARRAY_SIZE(devices));
- printk("after platform_add_devices -- begin \n");
spi_register_board_info(board_spi_devices, ARRAY_SIZE(board_spi_devices));
rk2818_mux_api_set(GPIOB4_SPI0CS0_MMC0D4_NAME,IOMUXA_GPIO0_B4); //IOMUXA_SPI0_CSN0);//use for gpio SPI CS0
rk2818_mux_api_set(GPIOB0_SPI0CSN1_MMC1PCA_NAME,IOMUXA_GPIO0_B0); //IOMUXA_SPI0_CSN1);//use for gpio SPI CS1
rk2818_mux_api_set(GPIOB_SPI0_MMC0_NAME,IOMUXA_SPI0);//use for SPI CLK SDI SDO
rk2818_mux_api_set(GPIOF5_APWM3_DPWM3_NAME,IOMUXB_GPIO1_B5);
-
if(0 != gpio_request(RK2818_PIN_PF5, NULL))
{
gpio_free(RK2818_PIN_PF5);
printk(">>>>>> RK2818_PIN_PF5 gpio_request err \n ");
}
-
- printk("after platform_add_devices -- end \n");
}
static void __init machine_rk2818_mapio(void)
int ret;
struct rk2818_battery_data *data;
- printk("enter rk2818_battery_probe\n");
ret = gpio_request(CHARGEOK_PIN, NULL);
if (ret) {
printk("failed to request charge_ok gpio\n");