Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) // SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  *  linux/arch/arm/mach-pxa/gumstix.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  *  Support for the Gumstix motherboards.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  *  Original Author:	Craig Hughes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8)  *  Created:	Feb 14, 2008
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9)  *  Copyright:	Craig Hughes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11)  *  Implemented based on lubbock.c by Nicolas Pitre and code from Craig
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12)  *  Hughes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #include <linux/init.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) #include <linux/platform_device.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) #include <linux/interrupt.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) #include <linux/delay.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) #include <linux/mtd/mtd.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) #include <linux/mtd/partitions.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) #include <linux/gpio/machine.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) #include <linux/gpio.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) #include <linux/err.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) #include <linux/clk.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) #include <asm/setup.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) #include <asm/memory.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) #include <asm/mach-types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) #include <mach/hardware.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) #include <asm/irq.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) #include <linux/sizes.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) #include <asm/mach/arch.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) #include <asm/mach/map.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) #include <asm/mach/irq.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) #include <asm/mach/flash.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) #include "pxa25x.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) #include <linux/platform_data/mmc-pxamci.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) #include "udc.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) #include "gumstix.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) #include "generic.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) static struct resource flash_resource = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 	.start	= 0x00000000,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 	.end	= SZ_64M - 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) 	.flags	= IORESOURCE_MEM,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) static struct mtd_partition gumstix_partitions[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	{
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 		.name =		"Bootloader",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 		.size =		0x00040000,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 		.offset =	0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 		.mask_flags =	MTD_WRITEABLE  /* force read-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 	} , {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 		.name =		"rootfs",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 		.size =		MTDPART_SIZ_FULL,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 		.offset =	MTDPART_OFS_APPEND
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) static struct flash_platform_data gumstix_flash_data = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 	.map_name	= "cfi_probe",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 	.parts		= gumstix_partitions,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 	.nr_parts	= ARRAY_SIZE(gumstix_partitions),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 	.width		= 2,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) static struct platform_device gumstix_flash_device = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 	.name		= "pxa2xx-flash",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 	.id		= 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 	.dev = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 		.platform_data = &gumstix_flash_data,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 	.resource = &flash_resource,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	.num_resources = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) static struct platform_device *devices[] __initdata = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 	&gumstix_flash_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) #ifdef CONFIG_MMC_PXA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) static struct pxamci_platform_data gumstix_mci_platform_data = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 	.ocr_mask		= MMC_VDD_32_33|MMC_VDD_33_34,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) static void __init gumstix_mmc_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 	pxa_set_mci_info(&gumstix_mci_platform_data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) static void __init gumstix_mmc_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 	pr_debug("Gumstix mmc disabled\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) #ifdef CONFIG_USB_PXA25X
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) static struct gpiod_lookup_table gumstix_gpio_vbus_gpiod_table = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 	.dev_id = "gpio-vbus",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 	.table = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 		GPIO_LOOKUP("gpio-pxa", GPIO_GUMSTIX_USB_GPIOn,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 			    "vbus", GPIO_ACTIVE_HIGH),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 		GPIO_LOOKUP("gpio-pxa", GPIO_GUMSTIX_USB_GPIOx,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 			    "pullup", GPIO_ACTIVE_HIGH),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 		{ },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) static struct platform_device gumstix_gpio_vbus = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 	.name	= "gpio-vbus",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 	.id	= -1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) static void __init gumstix_udc_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 	gpiod_add_lookup_table(&gumstix_gpio_vbus_gpiod_table);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 	platform_device_register(&gumstix_gpio_vbus);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) static void gumstix_udc_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 	pr_debug("Gumstix udc is disabled\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) #ifdef CONFIG_BT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) /* Normally, the bootloader would have enabled this 32kHz clock but many
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) ** boards still have u-boot 1.1.4 so we check if it has been turned on and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) ** if not, we turn it on with a warning message. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) static void gumstix_setup_bt_clock(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) 	int timeout = 500;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 	if (!(readl(OSCC) & OSCC_OOK))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 		pr_warn("32kHz clock was not on. Bootloader may need to be updated\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 	else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 		return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 	writel(readl(OSCC) | OSCC_OON, OSCC);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 	do {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 		if (readl(OSCC) & OSCC_OOK)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 			break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 		udelay(1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 	} while (--timeout);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 	if (!timeout)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 		pr_err("Failed to start 32kHz clock\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) static void __init gumstix_bluetooth_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 	int err;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 	gumstix_setup_bt_clock();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 	err = gpio_request(GPIO_GUMSTIX_BTRESET, "BTRST");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 	if (err) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 		pr_err("gumstix: failed request gpio for bluetooth reset\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 		return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 	err = gpio_direction_output(GPIO_GUMSTIX_BTRESET, 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 	if (err) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 		pr_err("gumstix: can't reset bluetooth\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 		return;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 	gpio_set_value(GPIO_GUMSTIX_BTRESET, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 	udelay(100);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 	gpio_set_value(GPIO_GUMSTIX_BTRESET, 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) static void gumstix_bluetooth_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 	pr_debug("Gumstix Bluetooth is disabled\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) static unsigned long gumstix_pin_config[] __initdata = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 	GPIO12_32KHz,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 	/* BTUART */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 	GPIO42_HWUART_RXD,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 	GPIO43_HWUART_TXD,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 	GPIO44_HWUART_CTS,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 	GPIO45_HWUART_RTS,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 	/* MMC */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 	GPIO6_MMC_CLK,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	GPIO53_MMC_CLK,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	GPIO8_MMC_CS0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) int __attribute__((weak)) am200_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) int __attribute__((weak)) am300_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) static void __init carrier_board_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 	/*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 	 * put carrier/expansion board init here if
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 	 * they cannot be detected programatically
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 	 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 	am200_init();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 	am300_init();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) static void __init gumstix_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 	pxa2xx_mfp_config(ARRAY_AND_SIZE(gumstix_pin_config));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 	pxa_set_ffuart_info(NULL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) 	pxa_set_btuart_info(NULL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) 	pxa_set_stuart_info(NULL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) 	pxa_set_hwuart_info(NULL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) 	gumstix_bluetooth_init();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) 	gumstix_udc_init();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) 	gumstix_mmc_init();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) 	(void) platform_add_devices(devices, ARRAY_SIZE(devices));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) 	carrier_board_init();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) MACHINE_START(GUMSTIX, "Gumstix")
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) 	.atag_offset	= 0x100, /* match u-boot bi_boot_params */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) 	.map_io		= pxa25x_map_io,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) 	.nr_irqs	= PXA_NR_IRQS,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) 	.init_irq	= pxa25x_init_irq,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) 	.handle_irq	= pxa25x_handle_irq,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) 	.init_time	= pxa_timer_init,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) 	.init_machine	= gumstix_init,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) 	.restart	= pxa_restart,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) MACHINE_END