omap3logic.c (d5abcf94c7123167725fc22ace342f0d455093c1) omap3logic.c (15fde737fc1dd1b796903dd33989defff3598f19)
1/*
2 * (C) Copyright 2011
3 * Logic Product Development <www.logicpd.com>
4 *
5 * Author :
6 * Peter Barada <peter.barada@logicpd.com>
7 *
8 * Derived from Beagle Board and 3430 SDP code by

--- 22 unchanged lines hidden (view full) ---

31#include <linux/errno.h>
32#include <linux/usb/ch9.h>
33#include <linux/usb/gadget.h>
34#include <linux/usb/musb.h>
35#include "omap3logic.h"
36
37DECLARE_GLOBAL_DATA_PTR;
38
1/*
2 * (C) Copyright 2011
3 * Logic Product Development <www.logicpd.com>
4 *
5 * Author :
6 * Peter Barada <peter.barada@logicpd.com>
7 *
8 * Derived from Beagle Board and 3430 SDP code by

--- 22 unchanged lines hidden (view full) ---

31#include <linux/errno.h>
32#include <linux/usb/ch9.h>
33#include <linux/usb/gadget.h>
34#include <linux/usb/musb.h>
35#include "omap3logic.h"
36
37DECLARE_GLOBAL_DATA_PTR;
38
39#define CONTROL_WKUP_CTRL 0x48002a5c
40#define GPIO_IO_PWRDNZ (1 << 6)
41#define PBIASLITEVMODE1 (1 << 8)
42
43/*
44 * two dimensional array of strucures containining board name and Linux
45 * machine IDs; row it selected based on CPU column is slected based
46 * on hsusb0_data5 pin having a pulldown resistor
47 */
48
39/* This is only needed until SPL gets OF support */
40#ifdef CONFIG_SPL_BUILD
49static const struct ns16550_platdata omap3logic_serial = {
50 .base = OMAP34XX_UART1,
51 .reg_shift = 2,
52 .clock = V_NS16550_CLK,
53 .fcr = UART_FCR_DEFVAL,
54};
55
56U_BOOT_DEVICE(omap3logic_uart) = {
57 "ns16550_serial",
58 &omap3logic_serial
59};
41static const struct ns16550_platdata omap3logic_serial = {
42 .base = OMAP34XX_UART1,
43 .reg_shift = 2,
44 .clock = V_NS16550_CLK,
45 .fcr = UART_FCR_DEFVAL,
46};
47
48U_BOOT_DEVICE(omap3logic_uart) = {
49 "ns16550_serial",
50 &omap3logic_serial
51};
52#endif
60
53
54/*
55 * two dimensional array of strucures containining board name and Linux
56 * machine IDs; row it selected based on CPU column is slected based
57 * on hsusb0_data5 pin having a pulldown resistor
58 */
61static struct board_id {
62 char *name;
63 int machine_id;
64 char *fdtfile;
65} boards[2][2] = {
66 {
67 {
68 .name = "OMAP35xx SOM LV",

--- 532 unchanged lines hidden ---
59static struct board_id {
60 char *name;
61 int machine_id;
62 char *fdtfile;
63} boards[2][2] = {
64 {
65 {
66 .name = "OMAP35xx SOM LV",

--- 532 unchanged lines hidden ---