/* * arch/arm/mach-ep93xx/vision_ep9307.c * Vision Engraving Systems EP9307 SoM support. * * Copyright (C) 2008-2011 Vision Engraving Systems * H Hartley Sweeten * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "soc.h" /************************************************************************* * Static I/O mappings for the FPGA *************************************************************************/ #define VISION_PHYS_BASE EP93XX_CS7_PHYS_BASE #define VISION_VIRT_BASE 0xfebff000 static struct map_desc vision_io_desc[] __initdata = { { .virtual = VISION_VIRT_BASE, .pfn = __phys_to_pfn(VISION_PHYS_BASE), .length = SZ_4K, .type = MT_DEVICE, }, }; static void __init vision_map_io(void) { ep93xx_map_io(); iotable_init(vision_io_desc, ARRAY_SIZE(vision_io_desc)); } /************************************************************************* * Ethernet *************************************************************************/ static struct ep93xx_eth_data vision_eth_data __initdata = { .phy_id = 1, }; /************************************************************************* * Framebuffer *************************************************************************/ #define VISION_LCD_ENABLE EP93XX_GPIO_LINE_EGPIO1 static int vision_lcd_setup(struct platform_device *pdev) { int err; err = gpio_request_one(VISION_LCD_ENABLE, GPIOF_INIT_HIGH, dev_name(&pdev->dev)); if (err) return err; ep93xx_devcfg_clear_bits(EP93XX_SYSCON_DEVCFG_RAS | EP93XX_SYSCON_DEVCFG_RASONP3 | EP93XX_SYSCON_DEVCFG_EXVC); return 0; } static void vision_lcd_teardown(struct platform_device *pdev) {