Skip to content

Commit

Permalink
ARM: davinci: clean up platform support
Browse files Browse the repository at this point in the history
With the board file support gone, and the platform using
DT only, a lot of the remaining code is no longer referenced
and can be removed.

Technically, the DT file only references DA850, but since that
is very similar to DA830, I'm leaving the latter.

Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Arnd Bergmann committed Jan 12, 2023
1 parent c3848db commit dec85a9
Show file tree
Hide file tree
Showing 18 changed files with 11 additions and 3,053 deletions.
16 changes: 0 additions & 16 deletions arch/arm/mach-davinci/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,18 @@ comment "DaVinci Core Type"

config ARCH_DAVINCI_DA830
bool "DA830/OMAP-L137/AM17x based system"
depends on AUTO_ZRELADDR && ARM_PATCH_PHYS_VIRT
depends on ATAGS
select ARCH_DAVINCI_DA8XX
# needed on silicon revs 1.0, 1.1:
select CPU_DCACHE_WRITETHROUGH if !CPU_DCACHE_DISABLE
select DAVINCI_CP_INTC

config ARCH_DAVINCI_DA850
bool "DA850/OMAP-L138/AM18x based system"
depends on AUTO_ZRELADDR && ARM_PATCH_PHYS_VIRT
depends on ATAGS
select ARCH_DAVINCI_DA8XX
select DAVINCI_CP_INTC

config ARCH_DAVINCI_DA8XX
bool

comment "DaVinci Board Type"

config MACH_DA8XX_DT
bool "Support DA8XX platforms using device tree"
default y
depends on ARCH_DAVINCI_DA850
select PINCTRL
help
Say y here to include support for TI DaVinci DA850 based using
Flattened Device Tree. More information at Documentation/devicetree

config DAVINCI_MUX
bool "DAVINCI multiplexing support"
depends on ARCH_DAVINCI
Expand Down
9 changes: 4 additions & 5 deletions arch/arm/mach-davinci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
#
#
# Common objects
obj-y := serial.o usb.o common.o sram.o
obj-y := common.o sram.o devices-da8xx.o

obj-$(CONFIG_DAVINCI_MUX) += mux.o

# Chip specific
obj-$(CONFIG_ARCH_DAVINCI_DA830) += da830.o devices-da8xx.o usb-da8xx.o
obj-$(CONFIG_ARCH_DAVINCI_DA850) += da850.o devices-da8xx.o usb-da8xx.o
obj-$(CONFIG_ARCH_DAVINCI_DA830) += da830.o
obj-$(CONFIG_ARCH_DAVINCI_DA850) += da850.o pdata-quirks.o

# Board specific
obj-$(CONFIG_MACH_DA8XX_DT) += da8xx-dt.o pdata-quirks.o
obj-y += da8xx-dt.o

# Power Management
obj-$(CONFIG_CPU_IDLE) += cpuidle.o
Expand Down
57 changes: 0 additions & 57 deletions arch/arm/mach-davinci/asp.h

This file was deleted.

7 changes: 2 additions & 5 deletions arch/arm/mach-davinci/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

#include <asm/irq.h>

#define DAVINCI_INTC_START NR_IRQS
#define DAVINCI_INTC_IRQ(_irqnum) (DAVINCI_INTC_START + (_irqnum))
#define DAVINCI_INTC_START NR_IRQS
#define DAVINCI_INTC_IRQ(_irqnum) (DAVINCI_INTC_START + (_irqnum))

struct davinci_gpio_controller;

Expand All @@ -45,9 +45,6 @@ struct davinci_soc_info {
unsigned gpio_num;
unsigned gpio_irq;
unsigned gpio_unbanked;
struct davinci_gpio_controller *gpio_ctlrs;
int gpio_ctlrs_num;
struct emac_platform_data *emac_pdata;
dma_addr_t sram_dma;
unsigned sram_len;
};
Expand Down
21 changes: 0 additions & 21 deletions arch/arm/mach-davinci/cputype.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,4 @@ struct davinci_id {
#define DAVINCI_CPU_ID_DA830 0x08300000
#define DAVINCI_CPU_ID_DA850 0x08500000

#define IS_DAVINCI_CPU(type, id) \
static inline int is_davinci_ ##type(void) \
{ \
return (davinci_soc_info.cpu_id == (id)); \
}

IS_DAVINCI_CPU(da830, DAVINCI_CPU_ID_DA830)
IS_DAVINCI_CPU(da850, DAVINCI_CPU_ID_DA850)

#ifdef CONFIG_ARCH_DAVINCI_DA830
#define cpu_is_davinci_da830() is_davinci_da830()
#else
#define cpu_is_davinci_da830() 0
#endif

#ifdef CONFIG_ARCH_DAVINCI_DA850
#define cpu_is_davinci_da850() is_davinci_da850()
#else
#define cpu_is_davinci_da850() 0
#endif

#endif
Loading

0 comments on commit dec85a9

Please sign in to comment.