Skip to content

Commit

Permalink
Add support for ZTE Gen1 bootloader
Browse files Browse the repository at this point in the history
  • Loading branch information
TomGiordano committed Jul 22, 2011
1 parent 5188e36 commit a67d474
Show file tree
Hide file tree
Showing 14 changed files with 82 additions and 55 deletions.
22 changes: 21 additions & 1 deletion arch/arm/mach-msm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,25 @@ config MACH_MSM8X60_FFA

endmenu

choice
prompt "Kernel Offset"
default ZTE_GEN2

config ZTE_GEN1
bool "ZTE Generation 1"
help
This option is used to indicate if the kernel is to be compiled
for a ZTE Blade Generation 1 (phone that is sold with Android 2.1
and loads the kernel to 0x02A00000.)

config ZTE_GEN2
bool "ZTE Generation 2"
help
This option is used to indicate if the kernel is to be compiled
for a ZTE Blade Generation 1 (phone that is sold with Android 2.1

This comment has been minimized.

Copy link
@sej7278

sej7278 Jul 22, 2011

shouldn't this say "Generation 2" ?

could we clarify the usage case for gen1 phones that have been TPT'd to gen2, such as mine that seems to work fine at 0x02A

This comment has been minimized.

Copy link
@TomGiordano

TomGiordano via email Jul 22, 2011

Author Owner
and loads the kernel to 0x02600000.)
endchoice

config MSM_STACKED_MEMORY
bool "Stacked Memory"
default y
Expand All @@ -448,7 +467,8 @@ config MSM_STACKED_MEMORY
#ZTE_BOOT_HUANGYANJUN_20100903_01 0x2A00000 ->0x02600000
config PHYS_OFFSET
hex
default "0x02600000" if !MSM_STACKED_MEMORY
default "0x02A00000" if !MSM_STACKED_MEMORY && ZTE_GEN1
default "0x02600000" if !MSM_STACKED_MEMORY && ZTE_GEN2
default "0x00000000" if ARCH_QSD8X50 && MSM_SOC_REV_A
default "0x20000000" if ARCH_QSD8X50
default "0x40200000" if ARCH_MSM8X60
Expand Down
7 changes: 7 additions & 0 deletions arch/arm/mach-msm/Makefile.boot
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,17 @@ initrd_phys-$(CONFIG_ARCH_MSM7X01A) := 0x10800000
params_phys-$(CONFIG_ARCH_MSM7X25) := 0x00200100
initrd_phys-$(CONFIG_ARCH_MSM7X25) := 0x0A000000

ifeq ($(CONFIG_ZTE_GEN1),y)
# MSM7x27
zreladdr-$(CONFIG_ARCH_MSM7X27) := 0x02A08000
params_phys-$(CONFIG_ARCH_MSM7X27) := 0x02A00100
initrd_phys-$(CONFIG_ARCH_MSM7X27) := 0x0A000000
else
# MSM7x27
zreladdr-$(CONFIG_ARCH_MSM7X27) := 0x02608000
params_phys-$(CONFIG_ARCH_MSM7X27) := 0x02600100
initrd_phys-$(CONFIG_ARCH_MSM7X27) := 0x0A000000
endif

# MSM7x30
zreladdr-$(CONFIG_ARCH_MSM7X30) := 0x00208000
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/board-zte-amigo.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ when who what, where, why comment tag
#endif

#ifdef CONFIG_ANDROID_RAM_CONSOLE
#define MSM_RAM_CONSOLE_PHYS 0x02500000
#define MSM_RAM_CONSOLE_PHYS (PHYS_OFFSET - 0x100000)
#define MSM_RAM_CONSOLE_SIZE SZ_1M
#endif

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/board-zte-blade.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ when who what, where, why comment tag
#endif

#ifdef CONFIG_ANDROID_RAM_CONSOLE
#define MSM_RAM_CONSOLE_PHYS 0x02500000
#define MSM_RAM_CONSOLE_PHYS (PHYS_OFFSET - 0x100000)
#define MSM_RAM_CONSOLE_SIZE SZ_1M
#endif

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/board-zte-joe.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ when who what, where, why comment tag
#endif

#ifdef CONFIG_ANDROID_RAM_CONSOLE
#define MSM_RAM_CONSOLE_PHYS 0x02500000
#define MSM_RAM_CONSOLE_PHYS (PHYS_OFFSET - 0x100000)
#define MSM_RAM_CONSOLE_SIZE SZ_1M
#endif

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/board-zte-joecdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ when who what, where, why comment tag
#endif

#ifdef CONFIG_ANDROID_RAM_CONSOLE
#define MSM_RAM_CONSOLE_PHYS 0x02500000
#define MSM_RAM_CONSOLE_PHYS (PHYS_OFFSET - 0x100000)
#define MSM_RAM_CONSOLE_SIZE SZ_1M
#endif

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/board-zte-mooncake.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ extern struct atmel_i2c_platform_data atmel_data;
#endif

#ifdef CONFIG_ANDROID_RAM_CONSOLE
#define MSM_RAM_CONSOLE_PHYS 0x02500000
#define MSM_RAM_CONSOLE_PHYS (PHYS_OFFSET - 0x100000)
#define MSM_RAM_CONSOLE_SIZE SZ_1M
#endif

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/board-zte-r750.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ when who what, where, why comment tag
#endif

#ifdef CONFIG_ANDROID_RAM_CONSOLE
#define MSM_RAM_CONSOLE_PHYS 0x02500000
#define MSM_RAM_CONSOLE_PHYS (PHYS_OFFSET - 0x100000)
#define MSM_RAM_CONSOLE_SIZE SZ_1M
#endif

Expand Down

0 comments on commit a67d474

Please sign in to comment.