Lines Matching +full:bcm2835 +full:- +full:mbox
1 // SPDX-License-Identifier: GPL-2.0
3 * (C) Copyright 2012-2016 Stephen Warren
17 #include <asm/arch/mbox.h>
71 * https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md
81 DTB_DIR "bcm283x-rpi-other.dtb",
88 DTB_DIR "bcm2835-rpi-a.dtb",
93 DTB_DIR "bcm2835-rpi-b.dtb",
98 DTB_DIR "bcm2835-rpi-a-plus.dtb",
103 DTB_DIR "bcm2835-rpi-b-plus.dtb",
108 DTB_DIR "bcm2836-rpi-2-b.dtb",
113 DTB_DIR "bcm2835-rpi-cm.dtb",
118 DTB_DIR "bcm2837-rpi-3-b.dtb",
123 DTB_DIR "bcm2835-rpi-zero.dtb",
128 DTB_DIR "bcm2837-rpi-cm3.dtb",
133 DTB_DIR "bcm2835-rpi-zero-w.dtb",
138 DTB_DIR "bcm2837-rpi-3-b-plus.dtb",
143 DTB_DIR "bcm2837-rpi-3-a-plus.dtb",
148 DTB_DIR "bcm2837-rpi-cm3.dtb",
156 DTB_DIR "bcm2835-rpi-b.dtb",
161 DTB_DIR "bcm2835-rpi-b.dtb",
166 DTB_DIR "bcm2835-rpi-b-rev2.dtb",
171 DTB_DIR "bcm2835-rpi-b-rev2.dtb",
176 DTB_DIR "bcm2835-rpi-b-rev2.dtb",
181 DTB_DIR "bcm2835-rpi-a.dtb",
186 DTB_DIR "bcm2835-rpi-a.dtb",
191 DTB_DIR "bcm2835-rpi-a.dtb",
196 DTB_DIR "bcm2835-rpi-b-rev2.dtb",
201 DTB_DIR "bcm2835-rpi-b-rev2.dtb",
206 DTB_DIR "bcm2835-rpi-b-rev2.dtb",
211 DTB_DIR "bcm2835-rpi-b-plus.dtb",
216 DTB_DIR "bcm2835-rpi-cm.dtb",
221 DTB_DIR "bcm2835-rpi-a-plus.dtb",
226 DTB_DIR "bcm2835-rpi-b-plus.dtb",
231 DTB_DIR "bcm2835-rpi-cm.dtb",
236 DTB_DIR "bcm2835-rpi-a-plus.dtb",
276 BCM2835_MBOX_INIT_TAG(&msg->get_arm_mem, GET_ARM_MEMORY); in dram_init()
278 ret = bcm2835_mbox_call_prop(BCM2835_MBOX_PROP_CHAN, &msg->hdr); in dram_init()
280 printf("bcm2835: Could not query ARM memory size\n"); in dram_init()
281 return -1; in dram_init()
284 gd->ram_size = msg->get_arm_mem.body.resp.mem_size; in dram_init()
296 fdtfile = model->fdtfile; in set_fdtfile()
320 if ((gd->ram_top - fw_dtb_pointer) > SZ_64M) in board_get_usable_ram_top()
321 return gd->ram_top; in board_get_usable_ram_top()
330 if (!model->has_onboard_eth) in set_usbethaddr()
337 BCM2835_MBOX_INIT_TAG(&msg->get_mac_address, GET_MAC_ADDRESS); in set_usbethaddr()
339 ret = bcm2835_mbox_call_prop(BCM2835_MBOX_PROP_CHAN, &msg->hdr); in set_usbethaddr()
341 printf("bcm2835: Could not query MAC address\n"); in set_usbethaddr()
346 eth_env_set_enetaddr("usbethaddr", msg->get_mac_address.body.resp.mac); in set_usbethaddr()
366 env_set("board_name", model->name); in set_board_info()
380 BCM2835_MBOX_INIT_TAG_NO_REQ(&msg->get_board_serial, GET_BOARD_SERIAL); in set_serial_number()
382 ret = bcm2835_mbox_call_prop(BCM2835_MBOX_PROP_CHAN, &msg->hdr); in set_serial_number()
384 printf("bcm2835: Could not query board serial\n"); in set_serial_number()
390 msg->get_board_serial.body.resp.serial); in set_serial_number()
415 BCM2835_MBOX_INIT_TAG(&msg->get_board_rev, GET_BOARD_REV); in get_board_rev()
417 ret = bcm2835_mbox_call_prop(BCM2835_MBOX_PROP_CHAN, &msg->hdr); in get_board_rev()
419 printf("bcm2835: Could not query board revision\n"); in get_board_rev()
425 * For details of old-vs-new scheme, see: in get_board_rev()
435 revision = msg->get_board_rev.body.resp.rev; in get_board_rev()
457 printf("RPI %s (0x%x)\n", model->name, revision); in get_board_rev()
468 gd->bd->bi_boot_params = 0x100; in board_init()
474 * If the firmware passed a device tree use it for U-Boot.