Lines Matching +full:sun4i +full:- +full:a10 +full:- +full:display +full:- +full:clk

2  * (C) Copyright 2012-2013 Henrik Nordstrom <henrik@henriknordstrom.net>
5 * (C) Copyright 2007-2011
9 * Some board init for the Allwinner A10-evb board.
11 * SPDX-License-Identifier: GPL-2.0+
19 #include <asm/arch/display.h>
53 ret = gpio_request(soft_i2c_gpio_sda, "soft-i2c-sda"); in soft_i2c_board_init()
66 ret = gpio_request(soft_i2c_gpio_scl, "soft-i2c-scl"); in soft_i2c_board_init()
180 gd->bd->bi_boot_params = (PHYS_SDRAM_0 + 0x100); in board_init()
193 * write this from the non-secure world (read is OK, though). in board_init()
229 * clk, reset and pinctrl drivers land. in board_init()
240 gd->ram_size = get_ram_size((long *)PHYS_SDRAM_0, PHYS_SDRAM_0_SIZE); in dram_init()
257 /* sun4i / sun7i do have a PC23, but it is not used for nand, in nand_pinmux_setup()
269 setbits_le32(&ccm->ahb_gate0, (CLK_GATE_OPEN << AHB_GATE_OFFSET_NAND0)); in nand_clock_setup()
271 setbits_le32(&ccm->ahb_gate1, (1 << AHB_GATE_OFFSET_DMA)); in nand_clock_setup()
273 setbits_le32(&ccm->ahb_gate0, (1 << AHB_GATE_OFFSET_DMA)); in nand_clock_setup()
275 setbits_le32(&ccm->nand0_clk_cfg, CCM_NAND_CTRL_ENABLE | AHB_DIV_1); in nand_clock_setup()
296 /* SDC0: PF0-PF5 */ in mmc_pinmux_setup()
310 /* SDC1: PH22-PH-27 */ in mmc_pinmux_setup()
317 /* SDC1: PG0-PG5 */ in mmc_pinmux_setup()
325 /* SDC1: PG3-PG8 */ in mmc_pinmux_setup()
332 /* SDC1: PG0-PG5 */ in mmc_pinmux_setup()
340 /* SDC1: PD2-PD7 */ in mmc_pinmux_setup()
347 /* SDC1: PG0-PG5 */ in mmc_pinmux_setup()
361 /* SDC2: PC6-PC11 */ in mmc_pinmux_setup()
369 /* SDC2: PE4-PE9 */ in mmc_pinmux_setup()
376 /* SDC2: PC6-PC15 */ in mmc_pinmux_setup()
385 /* SDC2: PA9-PA14 */ in mmc_pinmux_setup()
392 /* SDC2: PC6-PC15, PC24 */ in mmc_pinmux_setup()
404 /* SDC2: PC6-PC15, PC24 */ in mmc_pinmux_setup()
415 /* SDC2: PC5-PC6, PC8-PC16 */ in mmc_pinmux_setup()
428 /* SDC2: PC6-PC16 */ in mmc_pinmux_setup()
442 /* SDC3: PI4-PI9 */ in mmc_pinmux_setup()
450 /* SDC3: PA9-PA14 */ in mmc_pinmux_setup()
457 /* SDC3: PC6-PC15, PC24 */ in mmc_pinmux_setup()
485 return -1; in board_mmc_init()
487 #if CONFIG_MMC_SUNXI_SLOT_EXTRA != -1 in board_mmc_init()
491 return -1; in board_mmc_init()
498 * are searched there first. Note we only do this for u-boot proper, in board_mmc_init()
503 mmc0->block_dev.devnum = 1; in board_mmc_init()
504 mmc1->block_dev.devnum = 0; in board_mmc_init()
576 gd->ram_size = sunxi_dram_init(); in sunxi_board_init()
577 printf(" %d MiB\n", (int)(gd->ram_size >> 20)); in sunxi_board_init()
578 if (!gd->ram_size) in sunxi_board_init()
607 pr_err("failed to get %s USB PHY\n", dev->name); in g_dnl_board_usb_cable_connected()
613 pr_err("failed to init %s USB PHY\n", dev->name); in g_dnl_board_usb_cable_connected()
620 return -ENODEV; in g_dnl_board_usb_cable_connected()
638 serialnr->high = (unsigned int) (serial >> 32); in get_board_serial()
639 serialnr->low = (unsigned int) (serial & 0xffffffff); in get_board_serial()
641 serialnr->high = 0; in get_board_serial()
642 serialnr->low = 0; in get_board_serial()
655 if (memcmp(spl->spl_signature, SPL_SIGNATURE, 3) != 0) in parse_spl_header()
658 uint8_t spl_header_version = spl->spl_signature[3]; in parse_spl_header()
664 if (!spl->fel_script_address) in parse_spl_header()
667 if (spl->fel_uEnv_length != 0) { in parse_spl_header()
670 * import -t" the string(s) at fel_script_address right away. in parse_spl_header()
672 himport_r(&env_htab, (char *)(uintptr_t)spl->fel_script_address, in parse_spl_header()
673 spl->fel_uEnv_length, '\n', H_NOCLEAR, 0, 0, NULL); in parse_spl_header()
676 /* otherwise assume .scr format (mkimage-type script) */ in parse_spl_header()
677 env_set_hex("fel_scriptaddr", spl->fel_script_address); in parse_spl_header()
695 * The single words 1 - 3 of the SID have quite a few bits in setup_environment()
701 * fixed mac-addresses based on only using word 3 for a in setup_environment()
702 * long time and changing a fixed mac-address with an in setup_environment()
703 * u-boot update is not good. in setup_environment()
760 setup_environment(gd->fdt_blob); in misc_init_r()
777 * ethernet aliases the u-boot copy does not have. in ft_board_setup()
796 if (spl->dt_name_offset) { in board_fit_config_name_match()
797 cmp_str += spl->dt_name_offset; in board_fit_config_name_match()
807 if (strstr(name, "-pine64") && strstr(cmp_str, "-pine64")) { in board_fit_config_name_match()
808 if ((gd->ram_size > 512 * 1024 * 1024)) in board_fit_config_name_match()