u-boot-brain/arch/arm/include/asm/arch-omap5
Semen Protsenko 00bbe96eba arm: omap: Unify get_device_type() function
Refactor OMAP3/4/5 code so that we have only one get_device_type()
function for all platforms.

Details:
 - Add ctrl variable for AM33xx and OMAP3 platforms (like it's done for
   OMAP4/5), so we can obtain status register in common way
 - For now ctrl structure for AM33xx/OMAP3 contains only status register
   address
 - Run hw_data_init() in order to assign ctrl to proper structure
 - Remove DEVICE_MASK and DEVICE_GP definitions as they are not used
   (DEVICE_TYPE_MASK and GP_DEVICE are used instead)
 - Guard structs in omap_common.h with #ifdefs, because otherwise
   including omap_common.h on non-omap4/5 board files breaks compilation

Buildman script was run for all OMAP boards. Result output:
    arm: (for 38/616 boards)
        all +352.5
        bss -1.4
        data +3.5
        rodata +300.0
        spl/u-boot-spl:all +284.7
        spl/u-boot-spl:data +2.2
        spl/u-boot-spl:rodata +252.0
        spl/u-boot-spl:text +30.5
        text +50.4
    (no errors to report)

Tested on AM57x EVM and BeagleBoard xM.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
[trini: Rework the guards as to not break TI81xx]
Signed-off-by: Tom Rini <trini@konsulko.com>
2017-06-09 20:34:53 -04:00
..
clock.h omap5: Migrate CONFIG_OMAP_PLATFORM_RESET_TIME_MAX_USEC to Kconfig 2017-05-15 10:39:57 -04:00
cpu.h ti: wdt: omap5: Define WDT_BASE for omap5+ SoC 2017-04-08 21:32:49 -04:00
dra7xx_iodelay.h ARM: OMAP5/DRA7: Expose do_set_iodelay 2016-03-27 09:12:15 -04:00
ehci.h arm: omap5: echi: Add GPL-2.0+ SPDX-License-Identifier 2013-09-20 10:30:54 -04:00
gpio.h ARM: OMAP5+: GPIO: Add GPIO_TO_PIN() macro 2017-03-20 17:56:21 -04:00
hardware.h ARM: DRA7x/AM57xx: Get rid of CONFIG_AM57XX 2016-12-03 13:21:11 -05:00
i2c.h omap5/dra7: i2c: correct register offset for sync register 2016-07-26 08:39:23 +02:00
mem.h board/ti/dra7xx: add support for parallel NOR 2014-08-25 10:48:12 -04:00
mmc_host_def.h omap: consolidate common mmc definitions 2013-03-08 16:41:12 -05:00
mux_dra7xx.h board: ti: am572x: Add pinmux for X15/GPEVM SR2.0 using latest PMT 2016-12-04 13:54:55 -05:00
mux_omap5.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
omap.h arm: omap: Unify get_device_type() function 2017-06-09 20:34:53 -04:00
sata.h ARM: O5/dra7xx: Add SATA boot support 2014-02-19 10:47:45 -05:00
spl.h dra7x: boot: add dfu bootmode support 2016-09-27 23:30:20 +02:00
sys_proto.h arm: omap: Introduce vcores_init function 2016-06-02 21:42:18 -04:00