Ejemplo n.º 1
0
unsigned *target_first_256M_atag(unsigned *ptr)
{
	unsigned int platform_id = board_platform_id();
	unsigned int baseband = board_baseband();

	switch (platform_id) {
		case APQ8064:
			if(baseband == BASEBAND_MDM)
			{
				/* Use 8064 Fusion 3 memory map */
				ptr = target_atag(ptr,
							apq8064_fusion_first_256M,
							ARRAY_SIZE(apq8064_fusion_first_256M));
			} else {
				/* Use 8064 standalone memory map */
				ptr = target_atag(ptr,
							apq8064_standalone_first_256M,
							ARRAY_SIZE(apq8064_standalone_first_256M));
			}
			break;

		case MPQ8064:
			ptr = target_atag(ptr, mpq8064_first_256M, ARRAY_SIZE(mpq8064_first_256M));
			break;
		case MSM8960: /* fall through */
		default:
			ptr = target_atag(ptr,
						msm8960_default_first_256M,
						ARRAY_SIZE(msm8960_default_first_256M));
			break;
	}
	return ptr;
}
Ejemplo n.º 2
0
void target_uart_init(void)
{
	unsigned target_id = board_machtype();

	switch (target_id) {
	case LINUX_MACHTYPE_8960_SIM:
	case LINUX_MACHTYPE_8960_RUMI3:
	case LINUX_MACHTYPE_8960_CDP:
	case LINUX_MACHTYPE_8960_MTP:
	case LINUX_MACHTYPE_8960_FLUID:
	case LINUX_MACHTYPE_8960_APQ:
	case LINUX_MACHTYPE_8960_LIQUID:

		if(board_baseband() == BASEBAND_SGLTE)
		{
			uart_dm_init(8, 0x1A000000, 0x1A040000);;
		}
		else
		{
			uart_dm_init(5, 0x16400000, 0x16440000);
		}
		break;

	case LINUX_MACHTYPE_8930_CDP:
	case LINUX_MACHTYPE_8930_MTP:
	case LINUX_MACHTYPE_8930_FLUID:

		uart_dm_init(5, 0x16400000, 0x16440000);
		break;

	case LINUX_MACHTYPE_8064_SIM:
	case LINUX_MACHTYPE_8064_RUMI3:
		uart_dm_init(3, 0x16200000, 0x16240000);
		break;

	case LINUX_MACHTYPE_8064_CDP:
	case LINUX_MACHTYPE_8064_MTP:
	case LINUX_MACHTYPE_8064_LIQUID:
		uart_dm_init(7, 0x16600000, 0x16640000);
		break;

	case LINUX_MACHTYPE_8064_MPQ_CDP:
	case LINUX_MACHTYPE_8064_MPQ_HRD:
	case LINUX_MACHTYPE_8064_MPQ_DTV:
		uart_dm_init(5, 0x1A200000, 0x1A240000);
		break;

	case LINUX_MACHTYPE_8627_CDP:
	case LINUX_MACHTYPE_8627_MTP:

		uart_dm_init(5, 0x16400000, 0x16440000);
		break;

	default:
		dprintf(CRITICAL, "uart gsbi not defined for target: %d\n",
			target_id);

		ASSERT(0);
	}
}
Ejemplo n.º 3
0
void* platform_mmap_report_first_256MB(void* pdata, platform_mmap_cb_t cb)
{
    uint32_t platform_id = board_platform_id();
    uint32_t baseband = board_baseband();

    switch (platform_id) {
    case APQ8064:
    case APQ8064AA:
    case APQ8064AB:
        if(baseband == BASEBAND_MDM) {
            // Use 8064 Fusion 3 memory map
            pdata = platform_mmap_report_meminfo_table(pdata, cb,
                    apq8064_fusion_first_256M,
                    ARRAY_SIZE(apq8064_fusion_first_256M));
        }
        else {
            // Use 8064 standalone memory map
            pdata = platform_mmap_report_meminfo_table(pdata, cb,
                    apq8064_standalone_first_256M,
                    ARRAY_SIZE(apq8064_standalone_first_256M));
        }
        break;

    case MPQ8064:
        pdata = platform_mmap_report_meminfo_table(pdata, cb,
                mpq8064_first_256M,
                ARRAY_SIZE(mpq8064_first_256M));
        break;

    case MSM8130:
    case MSM8230:
    case MSM8930:
    case MSM8630:
    case MSM8130AA:
    case MSM8230AA:
    case MSM8630AA:
    case MSM8930AA:
    case MSM8930AB:
    case MSM8630AB:
    case MSM8230AB:
    case MSM8130AB:
    case APQ8030AB:
    case APQ8030:
    case APQ8030AA:
        pdata = platform_mmap_report_meminfo_table(pdata, cb,
                msm8930_default_first_256M,
                ARRAY_SIZE(msm8930_default_first_256M));
        break;

    case MSM8960: // fall through
    case MSM8960AB:
    case APQ8060AB:
    case MSM8260AB:
    case MSM8660AB:
    default:
        pdata = platform_mmap_report_meminfo_table(pdata, cb,
                msm8960_default_first_256M,
                ARRAY_SIZE(msm8960_default_first_256M));
        break;
    }

    return pdata;
}
Ejemplo n.º 4
0
unsigned target_baseband()
{
	return board_baseband();
}