lpc176x: Minor rework of HAVE_CHIPID kconfig
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
bab27651a1
commit
d8b6ff5c5e
17
src/Kconfig
17
src/Kconfig
|
@ -50,10 +50,6 @@ config SERIAL_BAUD
|
||||||
Specify the baud rate of the serial port. This should be set
|
Specify the baud rate of the serial port. This should be set
|
||||||
to 250000. Read the FAQ before changing this value.
|
to 250000. Read the FAQ before changing this value.
|
||||||
|
|
||||||
config HAVE_CHIPID
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
# Generic configuration options for USB
|
# Generic configuration options for USB
|
||||||
menu "USB ids"
|
menu "USB ids"
|
||||||
depends on USBSERIAL
|
depends on USBSERIAL
|
||||||
|
@ -64,13 +60,13 @@ config USB_VENDOR_ID
|
||||||
config USB_DEVICE_ID
|
config USB_DEVICE_ID
|
||||||
hex "USB device ID"
|
hex "USB device ID"
|
||||||
default 0xabcd
|
default 0xabcd
|
||||||
config USB_SERIAL_NUMBER
|
|
||||||
string "USB serial number" if !USB_SERIAL_NUMBER_CHIPID
|
|
||||||
default "12345"
|
|
||||||
config USB_SERIAL_NUMBER_CHIPID
|
config USB_SERIAL_NUMBER_CHIPID
|
||||||
depends on HAVE_CHIPID
|
depends on HAVE_CHIPID
|
||||||
bool "USB serial number from CHIPID"
|
bool "USB serial number from CHIPID"
|
||||||
default y
|
default y
|
||||||
|
config USB_SERIAL_NUMBER
|
||||||
|
string "USB serial number" if !USB_SERIAL_NUMBER_CHIPID
|
||||||
|
default "12345"
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
@ -108,8 +104,8 @@ config INITIAL_PINS
|
||||||
pins will be set to output high - preface a pin with a '!'
|
pins will be set to output high - preface a pin with a '!'
|
||||||
character to set that pin to output low.
|
character to set that pin to output low.
|
||||||
|
|
||||||
# The HAVE_GPIO_x options allow boards to disable support for some
|
# The HAVE_x options allow boards to disable support for some commands
|
||||||
# commands if the hardware does not support the feature.
|
# if the hardware does not support the feature.
|
||||||
config HAVE_GPIO
|
config HAVE_GPIO
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
@ -128,6 +124,9 @@ config HAVE_GPIO_HARD_PWM
|
||||||
config HAVE_GPIO_BITBANGING
|
config HAVE_GPIO_BITBANGING
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
config HAVE_CHIPID
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
config INLINE_STEPPER_HACK
|
config INLINE_STEPPER_HACK
|
||||||
# Enables gcc to inline stepper_event() into the main timer irq handler
|
# Enables gcc to inline stepper_event() into the main timer irq handler
|
||||||
|
|
|
@ -10,6 +10,7 @@ config LPC_SELECT
|
||||||
select HAVE_GPIO_I2C
|
select HAVE_GPIO_I2C
|
||||||
select HAVE_GPIO_SPI
|
select HAVE_GPIO_SPI
|
||||||
select HAVE_GPIO_BITBANGING
|
select HAVE_GPIO_BITBANGING
|
||||||
|
select HAVE_CHIPID
|
||||||
|
|
||||||
config BOARD_DIRECTORY
|
config BOARD_DIRECTORY
|
||||||
string
|
string
|
||||||
|
@ -66,8 +67,4 @@ config SERIAL
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config HAVE_CHIPID
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue